• 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.8k
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.
  • R
    root1ng LAYER 8 @johnpoz
    last edited by Nov 5, 2023, 2:03 PM

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

    @root1ng so that is good its listening - so firewall is running, its not answering for some other reason, its sending return traffic elsewhere?

    So fire up wireshark or tcpdump and validate the traffic is getting there..

    Pfsense did its thing, clearly it sent the traffic.. It has no control to if it gets an answer or not.. Which from your packet captures it did not.

    edit: Oh wait - why does it not show Listen as state?

    login-to-view

    edit2: my bad - its UDP ;) having a brain fart this morning that we dealing with UDP ;) sorry..

    I don't know why he doesn't listen, I don't have a firewall on neither on the virtual machine nor on Proxmox, I don't know what else to do... the situation is too complicated...

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

      @root1ng see my edit, sorry about that - udp with netstat wouldn't show "listen" state.. like tcp does.. but you can see its listening.

      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 1 Reply Last reply Nov 5, 2023, 2:13 PM Reply Quote 0
      • R
        root1ng LAYER 8 @johnpoz
        last edited by Nov 5, 2023, 2:13 PM

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

        @root1ng see my edit, sorry about that - udp with netstat wouldn't show "listen" state.. like tcp does.. but you can see its listening.

        I don't really have anything to check on the device, everything is default, firewall off, the firewall for that virtual machine is off from Proxmox, I don't know what else to check and how..

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

          @root1ng on the VM install tcpdump.. sniff with that, depending on the distro you installed might be already installed.

          login-to-view

          You can set filters on it so only looking for your udp 9987 port.

          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 1 Reply Last reply Nov 5, 2023, 2:20 PM Reply Quote 0
          • R
            root1ng LAYER 8 @johnpoz
            last edited by Nov 5, 2023, 2:20 PM

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

            @root1ng on the VM install tcpdump.. sniff with that, depending on the distro you installed might be already installed.

            login-to-view

            You can set filters on it so only looking for your udp 9987 port.

            That's about all it shows, nothing more, it's just me connected from a local PC (172.16.1.5)

            login-to-view

            B 1 Reply Last reply Nov 5, 2023, 2:40 PM Reply Quote 0
            • B
              Bob.Dig LAYER 8 @root1ng
              last edited by Bob.Dig Nov 5, 2023, 2:41 PM Nov 5, 2023, 2:40 PM

              @root1ng In Proxmox you have a Firewall Option for every VM and every vNIC. Have you checked both?

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

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

                @root1ng In Proxmox you have a Firewall Option for every VM and every vNIC. Have you checked both?

                Hey,

                VM Firewall:
                login-to-view
                NIC Firewall:
                login-to-view

                What I want to add is that, even with Firewall ON or OFF on the NIC, I still can't connect, I tried all the possible options, but without result.
                The firewall is not active on all virtual machines, including the main node.

                B 1 Reply Last reply Nov 5, 2023, 2:46 PM Reply Quote 0
                • B
                  Bob.Dig LAYER 8 @root1ng
                  last edited by Bob.Dig Nov 5, 2023, 2:49 PM Nov 5, 2023, 2:46 PM

                  @root1ng Disable this checkbox on all the VM NICs, on your pfSense and your Linux Server.

                  I am running TS on a Linux VM (Debian) behind a pfSense VM on Proxmox too, it is running fine for me, just checked. 😉

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

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

                    @root1ng Disable this checkbox on all the VM NICs, on your pfSense and your Linux Server.

                    I am running TS on a Linux VM (Debian) behind a pfSense VM on Proxmox too, it is running fine for me, just checked. 😉

                    Deactivated but without result..

                    edit: And I gave a restart to be sure of both

                    B J 2 Replies Last reply Nov 5, 2023, 2:54 PM Reply Quote 0
                    • B
                      Bob.Dig LAYER 8 @root1ng
                      last edited by Bob.Dig Nov 5, 2023, 3:06 PM Nov 5, 2023, 2:54 PM

                      @root1ng Maybe the host firewall, what Linux are you using exactly?
                      Maybe a routing problem, you could show us your proxmox network.

                      In the beginning you had no hits at all on your rules. Have you fixed something or is your testing flawed otherwise? Send me your IP, I will check if I can connect.

                      Also show your rules on that VMs LAN.

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

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

                        @root1ng Maybe the host firewall, what Linux are you using exactly?
                        Maybe a routing problem, you could show us your proxmox network.

                        In the beginning you had no hits at all on your rules. Have you fixed something or is your testing flawed otherwise? Send me your IP, I will check if I can connect.

                        Also show your rules on that VMs LAN.

                        Datacenter, Node and all VMs firewalls are disabled;
                        I am using Ubuntu Server Pro 22.04.03;
                        Proxmox network attached:
                        login-to-view
                        The idea is that traffic appears in pfSense to the rules in the firewall, but only when I check the ports.
                        My IP sent privately in dm.

                        TeamSpeak3 Server VM Networking:
                        login-to-view

                        B 1 Reply Last reply Nov 5, 2023, 3:17 PM Reply Quote 0
                        • B
                          Bob.Dig LAYER 8 @root1ng
                          last edited by Nov 5, 2023, 3:17 PM

                          @root1ng Why is Firewall still checked? Disable it. Also show your pfSense LAN rules for that Linux VM.

                          R 2 Replies Last reply Nov 5, 2023, 3:18 PM Reply Quote 0
                          • R
                            root1ng LAYER 8 @Bob.Dig
                            last edited by Nov 5, 2023, 3:18 PM

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

                            @root1ng Why is Firewall still checked? Disable it. Also show your pfSense LAN rules for that Linux VM.

                            I told you that I deactivated them earlier and I deactivate them for nothing. Nothing happens

                            B 1 Reply Last reply Nov 5, 2023, 3:20 PM Reply Quote 0
                            • B
                              Bob.Dig LAYER 8 @root1ng
                              last edited by Nov 5, 2023, 3:20 PM

                              @root1ng It looks like your linux VM is in the Management network?

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

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

                                @root1ng Why is Firewall still checked? Disable it. Also show your pfSense LAN rules for that Linux VM.

                                This is what you are talking about?
                                login-to-view

                                B 1 Reply Last reply Nov 5, 2023, 3:23 PM Reply Quote 0
                                • B
                                  Bob.Dig LAYER 8 @root1ng
                                  last edited by Nov 5, 2023, 3:23 PM

                                  @root1ng Yep, that is good.

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    johnpoz LAYER 8 Global Moderator @root1ng
                                    last edited by johnpoz Nov 5, 2023, 3:26 PM Nov 5, 2023, 3:23 PM

                                    @root1ng if your not seeing the test from the outside on your .6 box, but your seeing it from your local .5 box.. When clearly pfsense sent the traffic on.. then you have something filtering it..

                                    Even if the firewall on the vm was filtering it from the application, the sniff should still show it.

                                    Pfsense has no job other to send the traffic to the IP you say to send it too - it has no control after it puts the traffic on the wire.. Clearly its putting it on the wire from your sniff. If your not seeing it at the end device. Is its sending it to the correct mac, have to assume so since you say that other 33 port is working.

                                    Even had some firewall blocking it on pfsense on outbound direction, on your lan - the sniff you show on the lan side interface showing it was sent wouldn't show that if you had say a floating rule blocking it in the outbound connection..

                                    You have something preventing the 9987 from getting to your VM, if you sniff and see pfsense put it on the wire, but your VM never sees it. Even if the vm wasn't listening or had a firewall blocking it.. The sniff should show that that traffic got there. So maybe you have something in your VM host preventing from sending it on to the VM, or sending it to the wrong vm.. Or something else filtering traffic from getting there - acl on a switch? Something in wifi if that is in use..

                                    But if pfsense put it on the wire, pfsense job is done.. There is nothing else for pfsense to do..

                                    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 1 Reply Last reply Nov 5, 2023, 3:27 PM Reply Quote 0
                                    • B
                                      Bob.Dig LAYER 8 @johnpoz
                                      last edited by Nov 5, 2023, 3:27 PM

                                      @johnpoz Yeah, I could even connect to it, only OP can't do it to the public IP.

                                      J 1 Reply Last reply Nov 5, 2023, 3:29 PM Reply Quote 0
                                      • J
                                        johnpoz LAYER 8 Global Moderator @Bob.Dig
                                        last edited by johnpoz Nov 5, 2023, 3:32 PM Nov 5, 2023, 3:29 PM

                                        @Bob-Dig I know longer have my proxmox box to play with, so I can not test anything with proxmox.. But from what he shows pfsense put the traffic on the wire - if the destination is not getting it, that nothing to do with pfsense.

                                        I would sniff on proxmox host to validate the traffic gets to it.. Then you for sure would know that its proxmox where the problem is.

                                        edit: I even validated if you have a floating rule outbound to block it, would pfsense sniff maybe show going out the wire, even though it really wasn't

                                        And when I block it with an outbound floating rule on the lan, the sniff never shows it going anywhere.. So it can't even be something like that.. Because he shows a sniff on pfsense sending on the traffic

                                        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 1 Reply Last reply Nov 5, 2023, 3:39 PM Reply Quote 0
                                        • R
                                          root1ng LAYER 8 @johnpoz
                                          last edited by Nov 5, 2023, 3:39 PM

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

                                          @Bob-Dig I know longer have my proxmox box to play with, so I can not test anything with proxmox.. But from what he shows pfsense put the traffic on the wire - if the destination is not getting it, that nothing to do with pfsense.

                                          I would sniff on proxmox host to validate the traffic gets to it.. Then you for sure would know that its proxmox where the problem is.

                                          edit: I even validated if you have a floating rule outbound to block it, would pfsense sniff maybe show going out the wire, even though it really wasn't

                                          And when I block it with an outbound floating rule on the lan, the sniff never shows it going anywhere.. So it can't even be something like that.. Because he shows a sniff on pfsense sending on the traffic

                                          Yes, it seems that from outside the network I can connect with the public IP, from inside the network (WiFi or Cable) I can't connect at all with the public address..
                                          I don't understand what I have to check with Proxmox, because everything is default and I have nothing to change.

                                          J 1 Reply Last reply Nov 5, 2023, 3:43 PM Reply Quote 0
                                          45 out of 71
                                          • First post
                                            45/71
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.