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

    RFC 1918 Traffic leaving the WAN interface

    Scheduled Pinned Locked Moved General pfSense Questions
    42 Posts 5 Posters 3.2k 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.
    • IsaacFLI
      IsaacFL
      last edited by

      The problem with blocking the RFC 1918 traffic is that now all local traffic is getting blocked also, which is fine on an IOT network.

      Probably this would require a floating rule on the WAN network.

      What is the problem with adding the null route I had before? This seems to me more of a routing problem vs a firewall problem.

      1 Reply Last reply Reply Quote 0
      • PippinP
        Pippin
        last edited by

        Do your neighbours have Apple products?
        https://www.reddit.com/r/HomeKit/comments/bk1ee9/home_app_tries_to_communicate_with_random_ip_on/

        I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
        Halton Arp

        IsaacFLI 1 Reply Last reply Reply Quote 0
        • IsaacFLI
          IsaacFL @Pippin
          last edited by

          @Pippin said in RFC 1918 Traffic leaving the WAN interface:

          Do your neighbours have Apple products?
          https://www.reddit.com/r/HomeKit/comments/bk1ee9/home_app_tries_to_communicate_with_random_ip_on/

          I don't know for sure but they probably do. That was my concern is that there might be an actual device outside my network.

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by johnpoz

            @IsaacFL said in RFC 1918 Traffic leaving the WAN interface:

            The problem with blocking the RFC 1918 traffic is that now all local traffic is getting blocked also

            What the F you think could happen with your nonsense routing stuff to null?

            If you want vlan on 192.168.X to talk to another vlan 192.168.Y for example - then allow that traffic above your block rule.. As shown in my example I allow to talk to my plex server on a different rfc1918 vlan.. I allow devices to talk to my ntp that is on another rfc1918 vlan. Just allow what rfc1918 traffic you want to allow before you block..

            If you want lan to talk to your dmz net for example, then put that rule above where you block rfc1918.

            Rules are evaluated, top down, first rule to trigger wins..

            If all you have is 1 network, there is no other vlans to talk to using rfc1918.. Devices on your network don't talk to pfsense to talk to something on their own network.

            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 24.11 | Lab VMs 2.8, 24.11

            IsaacFLI 1 Reply Last reply Reply Quote 1
            • IsaacFLI
              IsaacFL @johnpoz
              last edited by

              @johnpoz said in RFC 1918 Traffic leaving the WAN interface:

              @IsaacFL said in RFC 1918 Traffic leaving the WAN interface:

              The problem with blocking the RFC 1918 traffic is that now all local traffic is getting blocked also

              What the F you think could happen with your nonsense routing stuff to null?

              If you want vlan on 192.168.X to talk to another vlan 192.168.Y for example - then allow that traffic above your block rule.. As shown in my example I allow to talk to my plex server on a different rfc1918 vlan.. I allow devices to talk to my ntp that is on another rfc1918 vlan. Just allow what rfc1918 traffic you want to allow before you block..

              If you want lan to talk to your dmz net for example, then put that rule above where you block rfc1918.

              Rules are evaluated, top down, first rule to trigger wins..

              If all you have is 1 network, there is no other vlans to talk to using rfc1918.. Devices on your network don't talk to pfsense to talk to something on their own network.

              I think it is just as much nonsense to route it out the WAN interface when the RFC explicitly says not to do that.

              I have much more than 1 subnet.

              When you route to null, the router just drops the packet.

              So if I create a static route for 10.0.0.0/8 to Null4 - 127.0.0.1 and pfSense has already auto created routes for each defined interface ie. 10.23.30.1/24 etc.

              The router knows to always pick the most explicit route.

              But I am willing to hear why that might be an issue that I don't understand?

              JKnottJ 1 Reply Last reply Reply Quote 0
              • JKnottJ
                JKnott @IsaacFL
                last edited by

                @IsaacFL said in RFC 1918 Traffic leaving the WAN interface:

                I think it is just as much nonsense to route it out the WAN interface when the RFC explicitly says not to do that.

                Those addresses are just as routeable as any other. What if the WAN side was also in RFC 1918 address space? They should be blocked from the Internet though, which can be done with appropriate filters.

                PfSense running on Qotom mini PC
                i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                UniFi AC-Lite access point

                I haven't lost my mind. It's around here...somewhere...

                IsaacFLI 1 Reply Last reply Reply Quote 1
                • chpalmerC
                  chpalmer
                  last edited by

                  @IsaacFL said in RFC 1918 Traffic leaving the WAN interface:

                  RFC explicitly says not to do that.

                  Yes. And your ISP handles that for you. 🛂

                  You will not find a single SOHO router that blocks out of subnet traffic from going out the gateway.

                  What is borked is a device that is trying to reach an RFC 1918 that is not in your network somewhere. Id be wanting to fix that and not be trying to band-aid the problem.

                  Triggering snowflakes one by one..
                  Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                  IsaacFLI JKnottJ 2 Replies Last reply Reply Quote 0
                  • IsaacFLI
                    IsaacFL @JKnott
                    last edited by

                    @JKnott said in RFC 1918 Traffic leaving the WAN interface:

                    @IsaacFL said in RFC 1918 Traffic leaving the WAN interface:

                    I think it is just as much nonsense to route it out the WAN interface when the RFC explicitly says not to do that.

                    Those addresses are just as routeable as any other. What if the WAN side was also in RFC 1918 address space? They should be blocked from the Internet though, which can be done with appropriate filters.

                    If my ISP was using RFC 1918 address space, then when PfSense received the DHCP address wouldn't it would create a default route to the gateway address provided by the ISP even if it was RFC1918?

                    JKnottJ 1 Reply Last reply Reply Quote 0
                    • IsaacFLI
                      IsaacFL @chpalmer
                      last edited by

                      @chpalmer said in RFC 1918 Traffic leaving the WAN interface:

                      @IsaacFL said in RFC 1918 Traffic leaving the WAN interface:

                      RFC explicitly says not to do that.

                      Yes. And your ISP handles that for you. 🛂

                      You will not find a single SOHO router that blocks out of subnet traffic from going out the gateway.

                      What is borked is a device that is trying to reach an RFC 1918 that is not in your network somewhere. Id be wanting to fix that and not be trying to band-aid the problem.

                      I am not suggesting that pfSense should do that by default. It just seems to me that in my case, just having a default route to drop all undefined RFC 1918 traffic can be done in one place with one static route.

                      I can't think of any downside?

                      1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator
                        last edited by johnpoz

                        @IsaacFL said in RFC 1918 Traffic leaving the WAN interface:

                        I can't think of any downside?

                        Not being able to see what is doing it... because if something is doing it, then there is something wrong..

                        Do what you want.. I would never do it that way when it takes all of 2 seconds to create a firewall rule to do exactly what you want... And now you have control and visibility of exactly what is happening..

                        Another downside of routing to nowhere, with a firewall rule I can send a reject telling the client hey you can not freaking get there!!! Now it doesn't have to wait for timeout, now it would be sending retrans, etc..

                        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 24.11 | Lab VMs 2.8, 24.11

                        IsaacFLI 2 Replies Last reply Reply Quote 1
                        • chpalmerC
                          chpalmer
                          last edited by

                          @IsaacFL said in RFC 1918 Traffic leaving the WAN interface:

                          I can't think of any downside?

                          ^^ what Johnpoz said ^^ +1

                          Good luck!

                          Triggering snowflakes one by one..
                          Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                          1 Reply Last reply Reply Quote 0
                          • IsaacFLI
                            IsaacFL @johnpoz
                            last edited by

                            @johnpoz said in RFC 1918 Traffic leaving the WAN interface:

                            @IsaacFL said in RFC 1918 Traffic leaving the WAN interface:

                            I can't think of any downside?

                            Not being able to see what is doing it... because if something is doing it, then there is something wrong..

                            Do what you want.. I would never do it that way when it takes all of 2 seconds to create a firewall rule to do exactly what you want... And now you have control and visibility of exactly what is happening..

                            Another downside of routing to nowhere, with a firewall rule I can send a reject telling the client hey you can not freaking get there!!! Now it doesn't have to wait for timeout, now it would be sending retrans, etc..

                            I am still logging it with a firewall rule. I log all local traffic.

                            1 Reply Last reply Reply Quote 0
                            • IsaacFLI
                              IsaacFL @johnpoz
                              last edited by

                              @johnpoz said in RFC 1918 Traffic leaving the WAN interface:

                              @IsaacFL said in RFC 1918 Traffic leaving the WAN interface:

                              I can't think of any downside?

                              Not being able to see what is doing it... because if something is doing it, then there is something wrong..

                              Do what you want.. I would never do it that way when it takes all of 2 seconds to create a firewall rule to do exactly what you want... And now you have control and visibility of exactly what is happening..

                              Another downside of routing to nowhere, with a firewall rule I can send a reject telling the client hey you can not freaking get there!!! Now it doesn't have to wait for timeout, now it would be sending retrans, etc..

                              I guess I can send a bug report to Apple and see what their response is. I think it is something to do with HomeKit or Airplay since I am seeing that other people have seen the same thing I am seeing.

                              I am already rejecting the traffic and it still keeps trying.

                              johnpozJ 1 Reply Last reply Reply Quote 0
                              • JKnottJ
                                JKnott @chpalmer
                                last edited by

                                @chpalmer said in RFC 1918 Traffic leaving the WAN interface:

                                What is borked is a device that is trying to reach an RFC 1918 that is not in your network somewhere.

                                How would a device know an address wasn't used by you somewhere? The only thing it can do is tell the address is not on it's local LAN and has to be sent to the router.

                                PfSense running on Qotom mini PC
                                i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                                UniFi AC-Lite access point

                                I haven't lost my mind. It's around here...somewhere...

                                chpalmerC 1 Reply Last reply Reply Quote 0
                                • JKnottJ
                                  JKnott @IsaacFL
                                  last edited by

                                  @IsaacFL said in RFC 1918 Traffic leaving the WAN interface:

                                  If my ISP was using RFC 1918 address space, then when PfSense received the DHCP address wouldn't it would create a default route to the gateway address provided by the ISP even if it was RFC1918?

                                  Yep. That's another example of why you can't just keep those addresses from being routed.

                                  PfSense running on Qotom mini PC
                                  i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                                  UniFi AC-Lite access point

                                  I haven't lost my mind. It's around here...somewhere...

                                  1 Reply Last reply Reply Quote 0
                                  • johnpozJ
                                    johnpoz LAYER 8 Global Moderator @IsaacFL
                                    last edited by johnpoz

                                    @IsaacFL said in RFC 1918 Traffic leaving the WAN interface:

                                    I guess I can send a bug report to Apple and see what their response is

                                    You know for a fact its your iphone device? I see some talk of airplay looking for shit on 7000.

                                    You already sniffed it, did you open it in wireshark to see what it might be looking for if its airplay traffic.

                                    Maybe something like

                                    GET /info RTSP/1.0
                                    X-Apple-ProtocolVersion: 1
                                    Content-Length: 70
                                    Content-Type: application/x-apple-binary-plist
                                    CSeq: 0
                                    DACP-ID: 70658D74F8C202C9
                                    Active-Remote: 882070098
                                    User-Agent: AirPlay/383.4.3 
                                    

                                    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 24.11 | Lab VMs 2.8, 24.11

                                    IsaacFLI 1 Reply Last reply Reply Quote 0
                                    • IsaacFLI
                                      IsaacFL @johnpoz
                                      last edited by

                                      @johnpoz Yeah, I have verified that every iOS (I don't have any macs) device I have does it periodically.

                                      The Apple TVs (I have 2) are most by volume.

                                      I have also have 3 iPhones and 2 iPads that I have also logged instances of it happening but I haven't been able to figure out a series of actions that trigger it.

                                      IsaacFLI 1 Reply Last reply Reply Quote 0
                                      • IsaacFLI
                                        IsaacFL @IsaacFL
                                        last edited by

                                        What I have done in the mean time, is disabled my static route to null, since I am being advised against that.

                                        I have created an alias "Private_Networks" with values of "192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8, fc00::/7 " (I added ipv6 ULAs too).

                                        I then created a Floating Rule to reject the Private Networks Out of the WAN

                                        Annotation 2020-01-12 195941.png

                                        This is working, but for logging it is not so great as the source address is always my WAN ipv4 address..

                                        johnpozJ 1 Reply Last reply Reply Quote 0
                                        • chpalmerC
                                          chpalmer @JKnott
                                          last edited by chpalmer

                                          @JKnott said in RFC 1918 Traffic leaving the WAN interface:

                                          How would a device know an address wasn't used by you somewhere? The only thing it can do is tell the address is not on it's local LAN and has to be sent to the router.

                                          Right. to a point. The only thing it can do is tell the address is not on it's local LAN and has to be sent to the router.

                                          Anything else should be outside of RFC 1918! Period. No reason to do otherwise unless directed by you. Nothing in RFC 1918 should be hard coded.

                                          Change my mind.

                                          Triggering snowflakes one by one..
                                          Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                                          1 Reply Last reply Reply Quote 0
                                          • johnpozJ
                                            johnpoz LAYER 8 Global Moderator @IsaacFL
                                            last edited by johnpoz

                                            @IsaacFL said in RFC 1918 Traffic leaving the WAN interface:

                                            This is working, but for logging

                                            Thats why you do it on the lan side interface.. Also not sure what good rejecting on the outbound direction does?

                                            Nothing in RFC 1918 should be hard coded.

                                            Nothing in public space should be hard coded either.. You need to get to something you should look it up via its fqdn

                                            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 24.11 | Lab VMs 2.8, 24.11

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