Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Alias type URL Table loading error

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 2 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Farsheed
      last edited by

      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]:

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        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.

        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • F
          Farsheed
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

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

            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.