Alias type URL Table loading error



  • Using release 2.0 and created an alias of type URL Table pointing to a PG2 file to block a country such as https://www.countryipblocks.net/e_country_data/AW_pg2.txt when I apply the change I am getting the bellow error any help on why I am getting this is appreciated I have also tried it with a CIDR formatted file and same issue:

    php: : The command '/sbin/pfctl -o basic -f /tmp/rules.debug' returned exit code '1', the output was 'no IP address found for ARUBA:190.104.96.0-190.104.111.255 /tmp/rules.debug:16: file "/var/db/aliastables/Aruba.txt" contains bad data pfctl: Syntax error in config file: pf rules not loaded'

    php: : New alert found: There were error(s) loading the rules: no IP address found for ARUBA:190.104.96.0-190.104.111.255 /tmp/rules.debug:16: file "/var/db/aliastables/Aruba.txt" contains bad data pfctl: Syntax error in config file: pf rules not loaded The line in question reads [190.104.96.0-190.104.111.255 /tmp/rules.debug]

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


  • Rebel Alliance Developer Netgate

    That file is not in the right format for the URL table code.

    The file must be in CIDR only format so it contains only the IPs or CIDR subnets.



  • Thank you, so does this mean that the commented lines are not ignored and must not exist in the file?

    @jimp:

    That file is not in the right format for the URL table code.

    The file must be in CIDR only format so it contains only the IPs or CIDR subnets.


  • Rebel Alliance Developer Netgate

    Lines starting with a # are ignored but that's all it considers a comment.


Locked