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

    Cannot Port Forward

    Scheduled Pinned Locked Moved NAT
    17 Posts 6 Posters 5.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.
    • KOMK
      KOM
      last edited by

      Do you also have a firewall rule on WAN that allows incoming traffic on that port to reach your LAN?  Post your WAN firewall rules.

      1 Reply Last reply Reply Quote 0
      • S
        sd_read
        last edited by

        Attached is a capture of the WAN firewall rules.

        WANfirewall.png
        WANfirewall.png_thumb

        1 Reply Last reply Reply Quote 0
        • DerelictD
          Derelict LAYER 8 Netgate
          last edited by

          There's really not much else to it.  Good list of things to check here:

          https://doc.pfsense.org/index.php/Port_Forward_Troubleshooting

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            Do a packet capture on LAN just to confirm that the test packet is getting through, and any replies.

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

              What is the source of the traffic your blocking rfc1918 and bogon which could be blocking it before it gets to your nat allow rule.

              Does pfsense actually get a public IP on its wan?  You say modem, but most of the time when users say modem they really mean gateway that is doing nat.  If you have a nat in front of pfsense you need to make sure you forwarding that traffic you want pfsense to forward too pfsense in the first place.

              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
              • S
                sd_read
                last edited by

                The attachment is a packet capture while using canyouseeme which could not see my service on port 51413.

                If I am understanding it the packet goes out and comes back in to my computer but yet canyouseeme says the port is closed?

                By modem I was referring to a Motorola cable modem and I don't think it is a problem because I mentioned I can bypass pfsense and connect my computer directly to this cable modem and it works as expected.

                Also, I have attached a Diagnostics > States.

                PacketCapture.png
                PacketCapture.png_thumb
                Diagnostics:ShowStates.png
                Diagnostics:ShowStates.png_thumb

                1 Reply Last reply Reply Quote 0
                • C
                  cmb
                  last edited by

                  The traffic you're showing there is all outbound, initiated from your LAN.

                  Sites like canyouseeme only test TCP ports and it looks like you're expecting UDP, which won't come back as open on such sites (can't test UDP in that manner).

                  1 Reply Last reply Reply Quote 0
                  • S
                    sd_read
                    last edited by

                    I am confused as to what to do.

                    Can pfsense port forward and if so how do I do this?

                    Is my WAN firewall listed  in Reply #6 on Sept. 22 correct?

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

                      @sd_read:

                      Can pfsense port forward and if so how do I do this?

                      Yeah. It works in 30 seconds for pretty much anyone but you. Click - click - click, done.

                      1 Reply Last reply Reply Quote 0
                      • S
                        sd_read
                        last edited by

                        Thank you doktornotor for your support.

                        I am not sure what you're intent was but it certainly is not helpful to my problem.

                        Is someone willing to help me in a positive manor?

                        For example, doktornotor, you didn't answer if my WAN firewall rule is even correct or not?

                        1 Reply Last reply Reply Quote 0
                        • DerelictD
                          Derelict LAYER 8 Netgate
                          last edited by

                          Yes, your port forward/rule  looks correct.  That's why people keep pointing you here:

                          https://doc.pfsense.org/index.php/Port_Forward_Troubleshooting

                          Your problems is very likely something on that list.

                          Chattanooga, Tennessee, USA
                          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                          Do Not Chat For Help! NO_WAN_EGRESS(TM)

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

                            Dude this really is click click!!  Run through the troubleshooter if your having issues - it covers pretty much every single scenario that there is issues.

                            Really is 30 seconds..  Have something listening..  My ubuntu vm is listening on ssh on 192.168.1.7

                            I create a foward, let it create your firewall rule - go to canyouseeme, unless your testing udp that you can not check like that.. Create your forward with tcp first to something listening, rdp, ssh, ftp, http, anything!!  On your box running the service do a netstat, do you see it listening (netstat works both linux and windows

                            portforwards.png
                            portforwards.png_thumb

                            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
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.