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

Port Forward does not work..

Firewalling
help nat nat rules firewall firewall rules
5
71
12.7k
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.
  • J
    johnpoz LAYER 8 Global Moderator @root1ng
    last edited by Nov 5, 2023, 12:16 PM

    @root1ng I don't see any hits on either of those rules that allow for your port forwards to port 9987 and 30033

    First step in troubleshooting a port forward or any wan side firewall rule is validate the traffic actually gets to pfsense, go to like can you see me . org and send some traffic. Be it you allow it or forward it or not.. You should see that traffic in your packet capture.

    For example just sent some traffic to port 9987 like your forward, as you can see from packet capture on my wan pfsense actually sees this traffic.

    login-to-view

    If pfsense never sees the traffic no amount of firewall rules or forwards would ever work.

    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.7.2, 24.11

    B R 2 Replies Last reply Nov 5, 2023, 12:24 PM Reply Quote 0
    • B
      Bob.Dig LAYER 8 @johnpoz
      last edited by Nov 5, 2023, 12:24 PM

      @johnpoz said in Port Forward does not work..:

      If pfsense never sees the traffic no amount of firewall rules or forwards would ever work.

      For him it is UDP but right. For testing do something with TCP.

      B 1 Reply Last reply Nov 5, 2023, 12:30 PM Reply Quote 0
      • N
        NogBadTheBad @Bob.Dig
        last edited by Nov 5, 2023, 12:27 PM

        @Bob-Dig Oops forgot about the order πŸ‘

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

        1 Reply Last reply Reply Quote 0
        • B
          Bob.Dig LAYER 8 @Bob.Dig
          last edited by Bob.Dig Nov 5, 2023, 12:31 PM Nov 5, 2023, 12:30 PM

          @Bob-Dig said in Port Forward does not work..:

          For testing do something with TCP.

          Because it is more easy I have to add. πŸ˜‰

          For instance, while it is showing as stealth because there is no service running on that port, I still see that the rule was triggered.

          login-to-view

          1 Reply Last reply Reply Quote 0
          • R
            root1ng LAYER 8 @johnpoz
            last edited by Nov 5, 2023, 12:30 PM

            @johnpoz said in Port Forward does not work..:

            @root1ng I don't see any hits on either of those rules that allow for your port forwards to port 9987 and 30033

            First step in troubleshooting a port forward or any wan side firewall rule is validate the traffic actually gets to pfsense, go to like can you see me . org and send some traffic. Be it you allow it or forward it or not.. You should see that traffic in your packet capture.

            For example just sent some traffic to port 9987 like your forward, as you can see from packet capture on my wan pfsense actually sees this traffic.

            If pfsense never sees the traffic no amount of firewall rules or forwards would ever work.

            30033 TCP seems to work, 9987 UDP doesn't and I don't understand why, all ports are open from ISP

            login-to-view
            login-to-view
            login-to-view

            V B 2 Replies Last reply Nov 5, 2023, 12:32 PM Reply Quote 1
            • V
              viragomann @root1ng
              last edited by Nov 5, 2023, 12:32 PM

              @root1ng
              The port checker might only be able to do TCP checks.

              J 1 Reply Last reply Nov 5, 2023, 12:59 PM Reply Quote 1
              • B
                Bob.Dig LAYER 8 @root1ng
                last edited by Nov 5, 2023, 12:33 PM

                @root1ng said in Port Forward does not work..:

                30033 TCP seems to work,

                That does look good.

                R 1 Reply Last reply Nov 5, 2023, 12:34 PM Reply Quote 0
                • R
                  root1ng LAYER 8 @Bob.Dig
                  last edited by Nov 5, 2023, 12:34 PM

                  @Bob-Dig said in Port Forward does not work..:

                  That does look good

                  Yes, but the main one is 9987 .. and for now it still doesn't work.

                  B V 2 Replies Last reply Nov 5, 2023, 12:37 PM Reply Quote 1
                  • B
                    Bob.Dig LAYER 8 @root1ng
                    last edited by Bob.Dig Nov 5, 2023, 12:37 PM Nov 5, 2023, 12:37 PM

                    @root1ng said in Port Forward does not work..:

                    Yes, but the main one is 9987 .. and for now it still doesn't work.

                    Maybe your proxmox Firewall is blocking UDP?

                    R 1 Reply Last reply Nov 5, 2023, 12:38 PM Reply Quote 0
                    • R
                      root1ng LAYER 8 @Bob.Dig
                      last edited by Nov 5, 2023, 12:38 PM

                      @Bob-Dig said in Port Forward does not work..:

                      Maybe your proxmox Firewall is blocking UDP?

                      All firewalls are disabled.. tell me where to check and I'll come back

                      1 Reply Last reply Reply Quote 0
                      • V
                        viragomann @root1ng
                        last edited by Nov 5, 2023, 12:42 PM

                        @root1ng said in Port Forward does not work..:

                        Yes, but the main one is 9987 .. and for now it still doesn't work.

                        As long as there is no service listening on this port at TCP, the access won't succeed naturally.
                        Your backend is listening at UDP 9987 and UDP probably cannot be probed with the port checker.

                        R 1 Reply Last reply Nov 5, 2023, 12:44 PM Reply Quote 0
                        • R
                          root1ng LAYER 8 @viragomann
                          last edited by Nov 5, 2023, 12:44 PM

                          @viragomann said in Port Forward does not work..:

                          As long as there is no service listening on this port at TCP, the access won't succeed naturally.
                          Your backend is listening at UDP 9987 and UDP probably cannot be probed with the port checker.

                          I changed from UDP to TCP and I still can't access it with the port checker, I still get a timeout.

                          V 1 Reply Last reply Nov 5, 2023, 12:48 PM Reply Quote 0
                          • V
                            viragomann @root1ng
                            last edited by Nov 5, 2023, 12:48 PM

                            @root1ng
                            On the backend? And does it work from inside with TCP?

                            R 1 Reply Last reply Nov 5, 2023, 12:51 PM Reply Quote 0
                            • R
                              root1ng LAYER 8 @viragomann
                              last edited by Nov 5, 2023, 12:51 PM

                              @viragomann said in Port Forward does not work..:

                              @root1ng
                              On the backend? And does it work from inside with TCP?

                              Not working ..

                              V 1 Reply Last reply Nov 5, 2023, 12:54 PM Reply Quote 0
                              • V
                                viragomann @root1ng
                                last edited by Nov 5, 2023, 12:54 PM

                                @root1ng
                                So I donβ€œt expect it to work from outside.

                                1 Reply Last reply Reply Quote 0
                                • J
                                  johnpoz LAYER 8 Global Moderator @viragomann
                                  last edited by johnpoz Nov 5, 2023, 1:00 PM Nov 5, 2023, 12:59 PM

                                  @viragomann said in Port Forward does not work..:

                                  The port checker might only be able to do TCP checks.

                                  Yeah can you see me can only do TCP.. you would have to use something that can send udp..

                                  Here is one..

                                  https://www.ipvoid.com/udp-port-scan/

                                  login-to-view

                                  But if when testing and tcp gets there via packet capture - its a good sign that udp is open as well. But yeah its never bad idea to actually validate

                                  My bad for not noticing 9987 was setup for udp..

                                  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.7.2, 24.11

                                  R 2 Replies Last reply Nov 5, 2023, 1:06 PM Reply Quote 0
                                  • R
                                    root1ng LAYER 8 @johnpoz
                                    last edited by Nov 5, 2023, 1:06 PM

                                    @johnpoz said in Port Forward does not work..:

                                    @viragomann said in Port Forward does not work..:

                                    The port checker might only be able to do TCP checks.

                                    Yeah can you see me can only do TCP.. you would have to use something that can send udp..

                                    Here is one..

                                    https://www.ipvoid.com/udp-port-scan/

                                    login-to-view

                                    But if when testing and tcp gets there via packet capture - its a good sign that udp is open as well. But yeah its never bad idea to actually validate

                                    My bad for not noticing 9987 was setup for udp..

                                    In the packet capture log, only 30033 appears with the public ip, 9987 appears open on the last tool provided by you but does not appear in the log, I don't understand why it doesn't work

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      root1ng LAYER 8 @johnpoz
                                      last edited by Nov 5, 2023, 1:10 PM

                                      @johnpoz

                                      login-to-view

                                      It seems that it finally appears, but I still can't connect to the teamspeak server using the public ip

                                      V J 2 Replies Last reply Nov 5, 2023, 1:26 PM Reply Quote 0
                                      • V
                                        viragomann @root1ng
                                        last edited by Nov 5, 2023, 1:26 PM

                                        @root1ng
                                        Sniffing the traffic is the way to investigate this and to nail down the issue.
                                        Run a capture on the WAN. If you can see the expected packets there, run a capture on the LAN side.

                                        However, it's required to know, which packets this service requires to work before.

                                        R 1 Reply Last reply Nov 5, 2023, 1:36 PM Reply Quote 0
                                        • J
                                          johnpoz LAYER 8 Global Moderator @root1ng
                                          last edited by johnpoz Nov 5, 2023, 1:29 PM Nov 5, 2023, 1:27 PM

                                          @root1ng where did you sniff that - on the lan side interface of pfsense I have to assume because its already been forwarded to the 172.16 address. So pfsense did its thing.

                                          Why your 172.16 doesn't answer could be lot of things, its not actually listening on that port, it has a firewall running not allowing it. Your sending to the wrong IP completely.

                                          That device is not using pfsense as its gateway. But if your seeing traffic sent on from pfsense to the IP you want, and the port then its not pfsense issue.. Look to your device, or something else downstream in your network that could prevent that device from seeing the traffic.

                                          Users all the time forget about host firewalls.. The only job pfsense has in this is sending it on to where you say to send it on too, if that device doesn't answer that is not a pfsense problem..

                                          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.7.2, 24.11

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