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

    Generate rules

    Scheduled Pinned Locked Moved IPv6
    6 Posts 4 Posters 4.9k 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.
    • M
      Michael Sh.
      last edited by

      Hi!
      Please, add point to line 2422 in /etc/inc/filter.inc

      ...
                      case "dhcp6":
                              $ipfrules .= << <eod<br># allow our DHCPv6 client out to the {$oc['descr']}
      ...</eod<br> 
      

      otherwise generate bad rules and a high risk to security.

      1 Reply Last reply Reply Quote 0
      • D
        databeestje
        last edited by

        Good catch, fix pushed out.
        https://github.com/bsdperimeter/pfsense/commit/7d3eeb8c2e88593aeec5a70f6aafc0a974663bed

        1 Reply Last reply Reply Quote 0
        • M
          Michael Sh.
          last edited by

          Please add braces for block in the line number 2334 file /etc/inc/filter.inc. Otherwise, table <bogonsv6>is loaded multiple times if 2 or more interfaces have been the allowed blocking bogons.

          
          ...
          if($bogontableinstalled == 0) {
              $ipfrules .= "table <bogons>persist file \"/etc/bogons\"\n";
              $ipfrules .= "table <bogonsv6>persist file \"/etc/bogonsv6\"\n;
          }    
          $ipfrules .= <<<eod<br>...</eod<br></bogonsv6></bogons> 
          ```</bogonsv6>
          1 Reply Last reply Reply Quote 0
          • I
            iFloris
            last edited by

            My installation was also having errors with bogons(v6).
            By following Michael Sh.'s suggestions I edited the filter.inc file as follows:

            		if($bogontableinstalled == 0) {
                $ipfrules .= "table <bogons> persist file \"/etc/bogons\"\n";
                $ipfrules .= "table <bogonsv6> persist file \"/etc/bogonsv6\"\n";
            }</bogonsv6></bogons>
            

            The above code works fine for me. I had to add "; to the end of line 2337.```
               $ipfrules .= "table <bogonsv6>persist file "/etc/bogonsv6"\n</bogonsv6>

            one layer of information
            removed

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

              Fixed:
              https://github.com/bsdperimeter/pfsense/commit/b8f855afda86e1bc46eb3fefff6885a9235d89e4

              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
              • M
                Michael Sh.
                last edited by

                @iFloris:

                The above code works fine for me. I had to add "; to the end of line 2337.```
                   $ipfrules .= "table <bogonsv6>persist file "/etc/bogonsv6"\n</bogonsv6>

                I'm sorry, ";" was eaten by copy-paste.

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