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

    Can I disable packet filtering while still keeping NAT to white list countries?

    Scheduled Pinned Locked Moved pfBlockerNG
    36 Posts 5 Posters 3.5k 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.
    • P
      paul2019
      last edited by

      I currently use pfBlocker to white-list countries that can reach our network (pfBlockerNG/IP/IPv4), where I use GeoIP lists from maxmind to allow the IP blocks that I need from the desired countries.

      If I disable packet filtering will that still work? Also I read that it disables NAT, and we have NAT rules that do port forwarding.

      I'm asking cause we have VOIP box that sometimes fails to connect some calls and the company behind it is telling us our firewall is randomly inspecting packets and that it blocks some of these packets which causes calls to randomly fail to connect.

      S 1 Reply Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire @paul2019
        last edited by

        @paul2019 you can but yes it will break stuff.
        https://docs.netgate.com/pfsense/en/latest/troubleshooting/locked-out.html?highlight=pfctl#disable-the-firewall

        There’s probably a better way to solve the problem. Can you provide more details?

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote 👍 helpful posts!

        keyserK P 2 Replies Last reply Reply Quote 0
        • keyserK
          keyser Rebel Alliance @SteveITS
          last edited by

          @steveits I have to disagree. How can GEOIP lists from pfBlockerNG be respected/blocked, if you have disabled pffilter?
          pfBlockerNG just builds aliases - lists af IP addresses - that are used in firewall rules to block incoming and outgoing connections.

          Love the no fuss of using the official appliances :-)

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @keyser
            last edited by Gertjan

            @keyser

            Spoiler : pfSense's pf (packet filter - FreeBSD main firewall) does also NAT.

            That makes NAT without pf a no go ......

            edit
            SteveITS is right, though :

            @steveits said in Can I disable packet filtering while still keeping NAT to white list countries?:

            it will break stuff.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            P 1 Reply Last reply Reply Quote 0
            • P
              paul2019 @SteveITS
              last edited by paul2019

              @steveits Hi Steve. Basically we have been getting quite a few SIP errors lately (code 486 Busy Everywhere) and we have Fortivoice Enterprise unit, so I did some packet capture and contacted support which replied back to me:

              "I discussed the [TCP ZeroWindow] situation with a Level 2. This symptom likely indicates there's packet inspection on the firewall. It's intermittent/random because packet inspection does not block every packet, but will block some here and there as the firewall inspects them. For this reason, it would be best to disable inspection on the firewall for all traffic between phones/softclients and the FortiVoice."

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

                @paul2019 what inspection do you think pfsense would be doing? Are you running IPS?

                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

                P 1 Reply Last reply Reply Quote 0
                • P
                  paul2019 @Gertjan
                  last edited by

                  @gertjan That's what I was afraid of, we need the firewall working to white list the countries that we need, else we get so much crap SIP traffic from the internet that is unbelievable.

                  johnpozJ 1 Reply Last reply Reply Quote 0
                  • P
                    paul2019 @johnpoz
                    last edited by

                    @johnpoz To be honest with you I have no clue, I only know how to do a basic setup on pfsense, install pfblocker, add the geo-ip lists and then add the port forwardings, that's about it my knowledge.

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

                      @paul2019 not sure what "inspection" pfsense would be doing unless your running IPS package - snort or suricata?

                      Its a simple layer 3 firewall - to do really any inspection of traffic and say this is bad or this is not bad from signature or something you would need to be running one of the IPS packages.

                      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

                      P 1 Reply Last reply Reply Quote 0
                      • P
                        paul2019 @johnpoz
                        last edited by

                        @johnpoz said in Can I disable packet filtering while still keeping NAT to white list countries?:

                        @paul2019 not sure what "inspection" pfsense would be doing unless your running IPS package - snort or suricata?

                        Its a simple layer 3 firewall - to do really any inspection of traffic and say this is bad or this is not bad from signature or something you would need to be running one of the IPS packages.

                        Gotcha, yeah I'm not running any of these packages, all I installed was pfblocker, my setup is super basic.

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

                          @paul2019 if DF is set on a packet that it really shouldn't be on those could get dropped I guess.

                          clear.jpg

                          I believe there are many people around here that run sip and voip stuff that might have more experience with it than me.

                          Do you have these captures you could post, you sniff on wan and lan at same time to see specific if pfsense was dropping a packet and not passing it on to the lan side?

                          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

                          P 2 Replies Last reply Reply Quote 0
                          • P
                            paul2019 @johnpoz
                            last edited by

                            @johnpoz said in Can I disable packet filtering while still keeping NAT to white list countries?:

                            @paul2019 if DF is set on a packet that it really shouldn't be on those could get dropped I guess.

                            I believe there are many people around here that run sip and voip stuff that might have more experience with it than me.

                            Mine is unchecked, so that's correct?

                            Firewall.jpg

                            1 Reply Last reply Reply Quote 0
                            • P
                              paul2019 @johnpoz
                              last edited by

                              @johnpoz We also use this setup to get the calls working correctly, do you think disabling NAT just here on the NAT Outbound entry would help?

                              NAT1.jpg

                              NAT2.jpg

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

                                @paul2019 no... Your natting a public IP? How would it work if you don't nat unless you were just routing public IP space..

                                Are you devices behind pfsense using public IP space? That is routed to you?

                                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

                                P 1 Reply Last reply Reply Quote 0
                                • P
                                  paul2019 @johnpoz
                                  last edited by

                                  @johnpoz My devices are behind pfsense which is behind a router with a static public IP address.
                                  This setup above, the netgate support helped me up with last year (I had paid support back then), when I had some issues with calls not having audio at all, after they added that entry everything worked fine.

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

                                    @paul2019 in that scenario pfsense itself was behind a nat. So pfsense was natting to some rfc1918 address that your edge router handed it..

                                    Yeah a double nat could be very problematic to voice stuff..

                                    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

                                    P 1 Reply Last reply Reply Quote 0
                                    • P
                                      paul2019 @johnpoz
                                      last edited by

                                      @johnpoz Gotcha, FO100E happens to the the VOIP hardware unit here.

                                      So this is doing double NAT?

                                      If so then I need to check that "Do not NAT" on this entry to stop it from doing it, and see if that breaks the VOIP audio or not.

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

                                        @paul2019 unless your isp device (edge router) is handing pfsense a public IP.. Then yeah your behind a double nat.

                                        If its handing pfsense a public IP, and your device is getting rfc1918 from pfsense how would you turn off nat and expect anything to work.

                                        Even if pfsense is getting rfc1918 from the edge router, is this edge router going to nat some different network? And then how would it know to send it back to pfsense? Your edge router would need to just nat anything it saw on its lan side to whatever its public Is, etc.

                                        If they helped you last year and has been working - what exactly changed?

                                        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

                                        P 1 Reply Last reply Reply Quote 0
                                        • P
                                          paul2019 @johnpoz
                                          last edited by

                                          @johnpoz Yes it does handle a public IP to pfsense. The only change they did was to change the NAT to hybrid and add the entry as show above.

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

                                            @paul2019 and your saying that was working.. So what changed?

                                            If you disable nat and pfsense has a public IP lets say 1.2.3.4 on its wan.. And you disable nat, then it would send traffic from whatever the IP of your device is - say 192.168.1.X -- and your isp device is natting this also your public IP?

                                            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

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