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

    Port Open != port forwarding?

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 3 Posters 1.3k 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.
    • D
      dataking
      last edited by

      I want to SSH to a host with in my personal network.  I've enabled a rule in the firewall which allows port 222 (my specifically configured SSH port) to the specific IP.  Yet, I am unable to connect.  netstat -an shows that my pfsense isn't "listening" on that port (which I would think it would be if it were forwarding).  What am I missing?

      1 Reply Last reply Reply Quote 0
      • N
        Nachtfalke
        last edited by

        As you topic says:
        Open a port in the firewall is not forwarding it to some host behind your firewall.

        To do that go to FIREWALL -> NAT -> Port Forwarding
        Set this up - on the bottom of this config page you can create a firewall rule for this PortForward automatically.

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

          What Nachtfalke says is right - you need a port forward - I just have one additional note:

          netstat on the firewall will never show any entries for things being forwarded/passed by the firewall with NAT/rules. Those are only for connections terminating at the firewall, not being passed through.

          What you want to look at is the state table, which you can see at Diagnostics > States or "pfctl -ss" from the CLI.

          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
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.