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

    Firewall not allowing return path?

    Scheduled Pinned Locked Moved Firewalling
    9 Posts 3 Posters 2.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
      marv2097
      last edited by

      Hi All,

      I am fairly new to pfSense and I am having issues with firewall setup. I have 2 external routers doing NAT and the pfSense box is behind them on private addresses not running NAT. Its main role is to direct different types of traffic out of different routers.

      I am trying to make a HTTPS page on an internal device available externally. So I have setup a port forward for 8443 on the outside of the router to 192.168.1.240:443 and added a WAN->LAN Rule on the firewall. Below should be the path and private IP's

      Client              DSL Router      DSL Router              pfSense WAN          pfSense LAN          Web Server
      Browser          Outside          Inside                      WAN                        LAN

      92.x.x.x –--- > 88.x.x.x ---- > 192.168.10.20 ---- > 192.168.10.1 ---- > 192.168.1.254 ---- > 192.168.1.240

      The Wan Rule looks like this:
      IPv4 TCP * * 192.168.1.240 443 (HTTPS) * none

      Captures on the LAN side shows the SYN packet makes it to the web server from the client, the web server responds with SYN-ACK but firewall drops it with a with an ICMP Host Not Reachable. Capturing on the WAN side of the firewall i don't see any SYN-ACK coming back.

      Looking at the states table I can see:

      Int Proto Source -> Router -> Destination State
      WAN tcp 192.168.1.240:443 <- 92.40.249.228:16617 SYN_SENT:ESTABLISHED
      LAN tcp 92.40.249.228:16617 -> 192.168.1.240:443 ESTABLISHED:SYN_SENT

      What I am not sure is why the firewall is dropping the SYN-ACK, should the state not allow packets back through. There doesnt appear to be a routing issue per say because I can initiate an outbound connection from the web server with no issues and it follows my LAN routing rules fine.

      Any advice would be greatly appreciated

      Cheers
      Marv

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        Yeah, get rid of the multi-NAT.

        1 Reply Last reply Reply Quote 0
        • M
          marv2097
          last edited by

          @doktornotor:

          Yeah, get rid of the multi-NAT.

          Hi There, sorry i may not have explained this very well.

          I have 2 DSL routers, both use NAT, but only one is used per connection. Ie Multi WAN. So the traffic will come in via one of the DSL routers only, in this case the 88.X.X.X connection.

          The pfsense box has NAT disabled also so there is no double natting.

          Cheers

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

            why don't you just put your 2 wan connection direct on pfsense.. I never understand why people make everything so freaking difficult.

            So client gets syn, and wants to send syn ack back..  So it hits pfsense where does pfsense send it?  You sure your going back to the same router that your forwarded it in from?

            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

            1 Reply Last reply Reply Quote 0
            • D
              doktornotor Banned
              last edited by

              @marv2097:

              Hi There, sorry i may not have explained this very well.
              I have 2 DSL routers, both use NAT, but only one is used per connection

              No, I understood pretty well. Everything you do on pfSense, you need to do on the modems as well. Bridge the stuff and get rid of the multiple NAT.

              1 Reply Last reply Reply Quote 0
              • M
                marv2097
                last edited by

                @johnpoz:

                why don't you just put your 2 wan connection direct on pfsense.. I never understand why people make everything so freaking difficult.

                The DSL service's I have (work provided) are not routed ones, so there has to be NAT in the router. I need the 2 connections so instead of double NATing I disabled NAT on Pfsense so it acts more as a WAN balancer and firewall.

                @johnpoz:

                So client gets syn, and wants to send syn ack back..  So it hits pfsense where does pfsense send it?  You sure your going back to the same router that your forwarded it in from?

                Thats the problem, it doesnt send it. the NAT/router issue is not involved at this stage, pfsense acts like it doesnt know where to send the syn-ack so drops it and sends ICMP Host unreachable back to the server. Should it not already know how to do this based on the states table?

                If it did sent it back to the wrong router, or the correct router didnt pass it then I could understand but captures on the WAN and LAN side of pfsense confirm its not sending it anywhere. (Screenshot of LAN capture attached)

                int-cap1.png
                int-cap1.png_thumb

                1 Reply Last reply Reply Quote 0
                • M
                  marv2097
                  last edited by

                  @doktornotor:

                  @marv2097:

                  Hi There, sorry i may not have explained this very well.
                  I have 2 DSL routers, both use NAT, but only one is used per connection

                  No, I understood pretty well. Everything you do on pfSense, you need to do on the modems as well. Bridge the stuff and get rid of the multiple NAT.

                  Ok maybe i dont understand quite what you mean. I use NAT, but each outbound connection is only translated once in the DSL router that pfsnse chooses (not both). Using private IP's internally I cant avoid NAT unless you know of a different way to achieve a similar result? Sorry if i am getting the wrong end of the stick with this.

                  1 Reply Last reply Reply Quote 0
                  • D
                    doktornotor Banned
                    last edited by

                    Yeah, Google DSL modem bridging or something, or use the search feature here.

                    1 Reply Last reply Reply Quote 0
                    • M
                      marv2097
                      last edited by

                      @doktornotor:

                      Yeah, Google DSL modem bridging or something, or use the search feature here.

                      Thanks Doktornotor, i will take a look into that.

                      I am still not sure the NAT side of things is related to my problem. Which seems to be a routing/firewall issue with pfsense dropping the packet due to no route.

                      Would it help just putting a pc on the WAN side, taking the whole router aspect out of the equation?

                      Many Thanks

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