Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    RFC1918 Best Practices: Hardening WAN Egress Alias with APIPA/CGNAT on Static IP Connections?

    Scheduled Pinned Locked Moved Firewalling
    rfc1918egress
    9 Posts 6 Posters 438 Views 8 Watching
    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.
    • JonathanLeeJ Offline
      JonathanLee
      last edited by

      Hello fellow Netgate community members,

      I am currently hardening a pfSense that has a dedicated Static Public IP assigned directly to the WAN interface.

      Following the official Netgate recipe for Preventing RFC 1918 Traffic from Exiting a WAN Interface, I created a dedicated RFC1918 network alias to apply to my outbound WAN block rules. (floating rule)

      eca9130b-c5ef-4f57-8f6a-52ac6900d02f-image.png

      To make it as comprehensive as possible for catching local information leaks or misbehaving local DHCP configurations, I included the main subnets along with the standard APIPA Link-Local block:

      • 10.0.0.0/8 (Class A Private)
      • 172.16.0.0/12 (Class B Private)
      • 192.168.0.0/16 (Class C Private)
      • 169.254.0.0/16 (Link-Local / APIPA)

      My Questions for the Community:
      Given that I have a true static IP setup (completely bypassing Carrier-Grade NAT on my side), is there any security benefit to manually injecting the CGNAT range (100.64.0.0/10) directly into this specific alias, or should it be left out to keep the alias strictly clean?

      Is it preferred to handle CGNAT/APIPA entirely via the global "Block Bogon Networks" checkbox on the WAN interface settings page rather than nesting non-RFC1918 parameters inside a custom alias?

      Would love to hear how other engineers structure this block for clean rule management. Thanks in advance for the advice!

      654fd178-ad04-4626-97ae-f4824c05c6f9-image.png

      Ref:
      https://docs.netgate.com/pfsense/en/latest/recipes/rfc1918-egress.html

      Make sure to upvote

      chpalmerC 1 Reply Last reply Reply Quote 0
      • chpalmerC Offline
        chpalmer @JonathanLee
        last edited by

        @JonathanLee "Given that I have a true static IP setup (completely bypassing Carrier-Grade NAT on my side), is there any security benefit to manually injecting" any private LAN type address?

        No. Other than if you don't want to see the attempts. The WAN is already default block all unless you build a rule to allow something.

        I personally would like any such attempts on my WAN side to show up in the "firewall logs". I rarely to never see any unless someone has erroneously (or for ill intent) did/does something dumb.. (like the local fire department did one time a few years ago.. ๐Ÿ™„ )

        Triggering snowflakes one by one..
        Primary- Intel(R) Pentium(R) CPU G4400 @ 3.30GHz on an M470 WG box. pfSense CE 2.8.1
        Lab Unit- Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box. pfSense+

        1 Reply Last reply Reply Quote 0
        • M Offline
          marcosm Netgate
          last edited by

          FYI there's already a built-in alias for those networks. See Firewall > Aliases > All

          JonathanLeeJ 1 Reply Last reply Reply Quote 0
          • JonathanLeeJ Offline
            JonathanLee @marcosm
            last edited by

            @marcosm There is only onees I made in there.... must be something new right?

            Make sure to upvote

            patient0P 1 Reply Last reply Reply Quote 0
            • patient0P Offline
              patient0 @JonathanLee
              last edited by

              @JonathanLee said in RFC1918 Best Practices: Hardening WAN Egress Alias with APIPA/CGNAT on Static IP Connections?:

              There is only onees I made in there.... must be something new right?

              I think you gotta mention (in every thread) that you're on an ancient pfSense+ version with your 2100 ;).
              The built-in alias' are a relatively new thing, yes.

              JonathanLeeJ 1 Reply Last reply Reply Quote 4
              • JonathanLeeJ Offline
                JonathanLee @patient0
                last edited by JonathanLee

                @patient0

                680d0272-4c1a-45cd-afd9-2400818e9666-image.png

                It basically works fine .... I mean just type go to alias right?

                Make sure to upvote

                johnpozJ patient0P 2 Replies Last reply Reply Quote 2
                • johnpozJ Offline
                  johnpoz LAYER 8 Global Moderator @JonathanLee
                  last edited by

                  @JonathanLee I am not exactly sure when the new built in aliases started, but they do include apipa and cgnat ranges - along with a few others

                  _reserved4_ 	Network(s) 	IPv4 networks reserved for local use.
                  
                  0.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12,
                  192.0.0.0/24, 192.0.2.0/24, 192.88.99.0/24, 192.168.0.0/16, 198.18.0.0/15,
                  198.51.100.0/24, 203.0.113.0/24, 224.0.0.0/4, 240.0.0.0/4, 255.255.255.255/32 
                  

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 26.07 | Lab VMs 2.9.0, 26.07

                  tinfoilmattT 1 Reply Last reply Reply Quote 0
                  • patient0P Offline
                    patient0 @JonathanLee
                    last edited by

                    @JonathanLee said in RFC1918 Best Practices: Hardening WAN Egress Alias with APIPA/CGNAT on Static IP Connections?:

                    @patient0
                    <snip>
                    It basically works fine .... I mean just type go to alias right?

                    ๐Ÿ˜

                    1 Reply Last reply Reply Quote 0
                    • tinfoilmattT Offline
                      tinfoilmatt LAYER 8 @johnpoz
                      last edited by

                      Pretty sure it was only somewhat recently with the 2.8.x/25.xx releases.

                      block out log on { ix0 } inet from any to any
                      block out log on { ix0 } inet6 from any to any

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                      Privacy Policy · Cookie Policy