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

    PfSense still blocking some request when NAT shoud allow them

    Scheduled Pinned Locked Moved Firewalling
    9 Posts 3 Posters 2.6k 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 Offline
      paaland
      last edited by

      I've setup pfSense (2.2) to NAT ports 80 and 443 to my server on the LAN. First I though it was working fine. I was able to access my site from my external test locations fine.

      Then I started getting reports from users that they had connectivity issues. After some research this pointed to being able to connect when at home, but not when at work. Could pfSense block proxied requests?

      Strange, but I dug into the firewall log and I find several requests to post 80 and 443 being blocked. I don't understand why though. The protocols are TCP:A, TCP:FA, TCP:RA, TCP:RAC see attachment.

      I've also attached my NAT roule setup.

      blocked_requests.PNG
      NAT.PNG
      blocked_requests.PNG_thumb
      NAT.PNG_thumb

      1 Reply Last reply Reply Quote 0
      • H Offline
        Harvy66
        last edited by

        F and R are not a huge issue because they are reset and FIN packets, meant to kill connections, but plain old ACK packets is important. In order to get an ACK, you first need a SYN to get through. To me this means the states are getting created, but then die after a bit.

        Do you have multi-WAN? asymmetric routes are the most common cause. What are you firewall rules and how is your network setup? A diagram would be great, but any other way that can easily and correctly convey your setup would be fine.

        1 Reply Last reply Reply Quote 0
        • P Offline
          paaland
          last edited by

          My network is very simple. I get internet via fibre. The fibre modem/router is setup in bridge mode and passes all traffic into the wan port of pfSense. The lan port is connected to a switch which leads to various wired devices as well as a WiFi access point. Single wan, single lan, not vlan, nothing fancy at all (see image).

          The only rules I have are the default drop for non-reserved IP's and the corresponding rules for my NATed ports (se previous post). 192.168.10.2 is a server connected to the switch which is running the web sites some users are having issues accessing.

          Network.PNG
          FW_rules.PNG
          Network.PNG_thumb
          FW_rules.PNG_thumb

          1 Reply Last reply Reply Quote 0
          • H Offline
            Harvy66
            last edited by

            I'm not noticing anything off. At this point, you may need a packet dump of WAN and potentially LAN during the entire lifetime of one of these TCP connections that suddenly die.

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

              Blocking out of state is common.  Do  you have it set to reset states on loss of monitor.  You could try turning that off.

              There are plenty of reason why a connection could be out of state.

              https://doc.pfsense.org/index.php/Why_do_my_logs_show_%22blocked%22_for_traffic_from_a_legitimate_connection

              If your resetting your states.

              Advanced, misc
              The monitoring process will flush states for a gateway that goes down if this box is not checked. Check this box to disable this behavior.

              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 25.11 | Lab VMs 2.8.1, 25.11

              1 Reply Last reply Reply Quote 0
              • H Offline
                Harvy66
                last edited by

                @johnpoz:

                Blocking out of state is common.  Do  you have it set to reset states on loss of monitor.  You could try turning that off.

                There are plenty of reason why a connection could be out of state.

                https://doc.pfsense.org/index.php/Why_do_my_logs_show_%22blocked%22_for_traffic_from_a_legitimate_connection

                If your resetting your states.

                Advanced, misc
                The monitoring process will flush states for a gateway that goes down if this box is not checked. Check this box to disable this behavior.

                This seems a bit different than the other out of state questions. Since ACKs do not need to be ACK'd, there the only reason I can think of that would result in the other side sending ACKs is that the other side is still receiving data. I don't mean the FA packets, I mean the A packets, all from the same source port.

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

                  You need a state for there to be allowed traffic!!  Period!!

                  syn,
                  syn,ack
                  ack

                  Would be typical handshake..  But your nothing getting through the firewall if the state is not there.  If you reset the states or the state has expired then packets are dropped!

                  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 25.11 | Lab VMs 2.8.1, 25.11

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    Harvy66
                    last edited by

                    I still wonder if he has an asymmetric path.

                    It was my understanding that ACKs happen only response to receiving data. If the external device is sending back ACKs, then it must be still actively receiving data. If the states have been cleared, then what is still sending data since out of state should also be blocking LAN side.

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

                      The client is public internet to webserver behind a nat.. If I want to get a page, that would be an ack..  Look at a typical datastream.  If his firewall timeout the state or they were all reset because the gateway went down.  Then connection coming from the client would be blocked.

                      Server would be not creating connections to the client.  This is not a big issue because the client should just open a new connection that would create a new state via syn.

                      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 25.11 | Lab VMs 2.8.1, 25.11

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