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

    NAT on specific port

    Scheduled Pinned Locked Moved NAT
    11 Posts 2 Posters 1.1k 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.
    • R
      reynold
      last edited by

      Hi, my ISP gave me 4 IP address

      1. 80.12.45.60 that's address of my WAN
        I want to use a second IP address and open port 3000 on it.
        Could you explain me how to do that?
        I followed some guides but i am facing many issues and nat does not work.

      thanks a lot

      1 Reply Last reply Reply Quote 0
      • V
        viragomann
        last edited by

        If your additional IPs are routed to the primary WAN address by the ISP you can simply use it in a NAT rule by selecting Single address at destination and entering the IP in the next box.

        If not, first you have to add each public address in Firewall > Virtual IPs as type IP Alias to the WAN interface.
        Then you can choose them from the destination drop-down.

        R 2 Replies Last reply Reply Quote 0
        • R
          reynold @viragomann
          last edited by

          @viragomann
          additional IP should not be routed.
          I use one IP for my wan connection
          Other IP are free
          thanks

          1 Reply Last reply Reply Quote 0
          • R
            reynold @viragomann
            last edited by reynold

            Hi, port forwarding not seems working
            I am trying testing port tcp 3000 with telnet
            Telnet says "lost connection to host"

            PfSense rule seems to working good as shown in logs

            Immagine.png

            could you help me?

            Port 3000 is open on my public Ip
            I ckecked here

            https://www.yougetsignal.com/tools/open-ports/

            i'm using virtual IP
            MY ISP gave me 4 IP

            • on IP is for WAN
            • one IP is used for port forwarding
            V 1 Reply Last reply Reply Quote 0
            • V
              viragomann @reynold
              last edited by

              @reynold said in NAT on specific port:

              I am trying testing port tcp 3000 with telnet
              Telnet says "lost connection to host"
              PfSense rule seems to working good as shown in logs

              ❔
              The log shows destination port 6000. So are you forwarding from 3000 on public to 6000 on internal IP?

              Are you sure the destination device is responding properly?

              You can narrow it down on pfSense by using Diagnostic > Packet capture.
              Take a capture on the WAN interface with a port filter set to the public port, while you try an access from outside. If it's okay, sniff on the internal interface and set the port filter to the internal forwarded port if it's another one.

              R 2 Replies Last reply Reply Quote 0
              • R
                reynold @viragomann
                last edited by reynold

                @viragomann
                sorry i made a mistake
                i'm testing port 6000
                i need to forward to port 6000 from wan

                1 Reply Last reply Reply Quote 0
                • R
                  reynold @viragomann
                  last edited by reynold

                  @viragomann
                  I captured some of these packet on port 6000 on my public IP on WAN interface
                  It seems it's working correcty if i'm not wrong...

                  19:57:58.610942 IP xxx.xxx.89.130.62498 > xxx.xxx.89.155.6000: tcp 0
                  19:57:58.619567 IP xxx.xxx.155.6000 > xxx.xxx.89.130.62498: tcp 0

                  Here what i captured on LAN interface

                  20:04:59.813402 IP xxx.xxx..89.130.62524 > 192.168.0.190.6000: tcp 0
                  20:04:59.818069 IP 192.168.0.190.6000 > xxx.xxx.89.130.62524: tcp 0

                  Is it helpful?

                  It seems everything is working bit i'm not sure

                  V 1 Reply Last reply Reply Quote 0
                  • V
                    viragomann @reynold
                    last edited by

                    @reynold
                    Agree. This looks as it should.
                    pfSense uses for the response on WAN the origin destination IP the request went to.

                    However, so the port scanner should show you a green flag when you check port 6000.

                    R 1 Reply Last reply Reply Quote 0
                    • R
                      reynold @viragomann
                      last edited by

                      @viragomann
                      thanks, Where can i find the green flag?

                      V 1 Reply Last reply Reply Quote 0
                      • V
                        viragomann @reynold
                        last edited by

                        @reynold said in NAT on specific port:
                        Where can i find the green flag?

                        On port checker page you mentioned above.
                        https://www.yougetsignal.com/tools/open-ports/

                        R 1 Reply Last reply Reply Quote 0
                        • R
                          reynold @viragomann
                          last edited by

                          @viragomann
                          Confirm. Green flag and it says port is open on public ip address.
                          I'm going to check the device. It should be the oroblem
                          Maybe it's not responding correctly.

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