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

    Port Forwarding Problem

    Scheduled Pinned Locked Moved NAT
    8 Posts 2 Posters 3.0k 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.
    • E
      edawlem
      last edited by

      I've seen this issue addressed several times in the forums but haven't seen a solution.

      There seems to be a scenario where NAT Port Forwarding does not work.

      Here's what I  have in my new firewall setup:

      WAN interface: 173.167.79.113/28
      Virtual IP: 173.167.79.125 (Proxy ARP)
      Port Forward NAT Rule
          Interface: WAN
          Protocol: TCP
          External Port: 9022
          NAT IP: 173.167.79.125
          Local Port SSH (22)

      I Auto Added firewall rule when creating the Port Forward
      Outbound NAT: Automatic

      Goal is to have port 9022 go to SSH on the specified IP address.  This doesn't work.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Why is the "NAT IP" the same as the VIP in that case? It should have the external IP be the VIP, and the NAT IP should be the actual internal IP.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • E
          edawlem
          last edited by

          That was my transcribing mistake.

          That part should have read:

          Port Forward NAT Rule
              Interface: WAN
              External Address: 173.167.79.125
              Protocol: TCP
              External Port: 9022
              NAT IP: 10.0.5.2
              Local Port SSH (22)

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            That should work fine, it did last I tried it. I do that on a VM with another VM behind it to hit ssh on the via outside:222 to inside:22

            As long as the firewall rule matches up, it should work fine. Do some packet captures on WAN and LAN to see how the traffic is (or isn't) being translated and passed.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • E
              edawlem
              last edited by

              I'm not getting any packets captured at 179.167.79.125:9022

              I've also turned on logging for the firewall rule but nothing shows.

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                Then a proxy ARP VIP may not work in your case. Have you tried IP Alias? CARP?

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  And the other proxy ARP VIPs do work?

                  If a packet capture showed no traffic coming into that port, then it wasn't being delivered from upstream. If it was a problem with the port forward or firewall rules, you'd see it in the packet capture on WAN but not going out on LAN.

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  1 Reply Last reply Reply Quote 0
                  • E
                    edawlem
                    last edited by

                    Very interesting.  I moved to another IP and it worked like a charm…

                    Thanks for the help!

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