Bug #1991

URL Table aliases issue after config restore

Added by Dim Hatz over 1 year ago. Updated over 1 year ago.

Status:New Start date:11/04/2011
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Rules/NAT
Target version:-
Affected version:2.0 Affected Architecture:

Description

In a freshly installed 2.0 system, when restoring a previous config.xml, there seems to be an issue with error-handling when creating a table alias file under /var/db/aliastables/

Excerpt from config.xml

<alias>
  <name>spamhaus_drop</name>
  <url>http://www.domain.tld/sample-net4096-8host-subnets2.txt</url>
  <updatefreq>7</updatefreq>
  <address/>
  <descr><![CDATA[SpamHaus DROP (Don't Route Or Peer)]]></descr>
  <type>urltable</type>
  <detail/>
</alias>

results in a /var/db/aliastables/spamhaus_drop.txt

grep: /var/db/aliastables/spamhaus_drop.txt.tmp: No such file or directory

And a filter reload error of:

There were error(s) loading the rules: no IP address found for grep:/tmp/rules.debug:30: file "/var/db/aliastables/spamhaus_drop.txt" contains bad data pfctl: Syntax error in config file: pf rules not loaded - The line in question reads [ /tmp/rules.debug]: ...

History

#1 Updated by Chris Buechler over 1 year ago

  • Subject changed from Error-handling of URL Table alias to URL Table aliases issue after config restore
  • Category set to Rules/NAT

Also available in: Atom PDF