• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.
  • S
    sd_read
    last edited by Sep 20, 2015, 12:05 AM

    Hello,

    I have set-up port forwarding as shown in the attached file.

    192.168.0.50 is a static ip for my desktop which is running Transmission bit torrent.

    In Transmission I go to Edit > Preferences where I select the Network tab.

    In the network tab I set up the "Port used for incoming connections:" to 51413.

    When I press the Test Port it fails with "port closed".

    If I disconnect my WAN from pfsense and connect it directly to my desktop then the "Test Port" works saying the port is open so I am sure this is a pfsense problem.

    I have googled, watched youtube, searched the forums and everything suggests I have set up pfsense correctly… but it does not work!

    Any ideas?

    PortForward.png
    PortForward.png_thumb

    1 Reply Last reply Reply Quote 0
    • D
      doktornotor Banned
      last edited by Sep 20, 2015, 12:07 AM

      http://www.canyouseeme.org/

      "Testing" port forwards from LAN is totally useless. If that doesn't work, kindly check the firewall logs, they are there for a reason.

      1 Reply Last reply Reply Quote 0
      • S
        sd_read
        last edited by Sep 20, 2015, 6:50 PM

        Thank you for your reply doktornotor.

        I tried the web address you suggested and I get the same thing.

        Then I tried the service while watching the firewall logs and nothing shows up in the logs.

        1 Reply Last reply Reply Quote 0
        • D
          doktornotor Banned
          last edited by Sep 20, 2015, 6:54 PM

          Doesn't seem like the traffic gets to your firewall at all… is it behind some other modem/router? There's packet capture, move there.

          1 Reply Last reply Reply Quote 0
          • S
            sd_read
            last edited by Sep 21, 2015, 11:43 PM

            I agree.

            Perhaps I can explain my setup.

            My cable modem goes into the wan plug while my desktop is on the lan.

            pfsense works in that I surf the web with it.

            If I run canyouseeme it does not work even though I believe I have configured port forwarding correctly.

            BUT, if I temporarily disconnect pfsense and connect my desktop directly to the modem then canyouseeme works.

            So, that is why I believe the problem must be pfsense.

            1 Reply Last reply Reply Quote 0
            • K
              KOM
              last edited by Sep 22, 2015, 12:01 AM

              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 Sep 22, 2015, 11:45 PM

                Attached is a capture of the WAN firewall rules.

                WANfirewall.png
                WANfirewall.png_thumb

                1 Reply Last reply Reply Quote 0
                • D
                  Derelict LAYER 8 Netgate
                  last edited by Sep 23, 2015, 12:40 AM

                  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
                  • K
                    KOM
                    last edited by Sep 23, 2015, 12:47 AM

                    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
                    • J
                      johnpoz LAYER 8 Global Moderator
                      last edited by Sep 23, 2015, 3:43 PM

                      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 Sep 23, 2015, 11:19 PM Sep 23, 2015, 11:03 PM

                        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 Sep 24, 2015, 3:31 AM

                          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 Sep 26, 2015, 11:53 PM

                            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 Sep 27, 2015, 12:29 AM

                              @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 Sep 27, 2015, 11:55 PM

                                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
                                • D
                                  Derelict LAYER 8 Netgate
                                  last edited by Sep 28, 2015, 12:28 AM

                                  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
                                  • J
                                    johnpoz LAYER 8 Global Moderator
                                    last edited by Sep 28, 2015, 12:36 PM

                                    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
                                    17 out of 17
                                    • First post
                                      17/17
                                      Last post
                                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                      This community forum collects and processes your personal information.
                                      consent.not_received