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

    SSH port forwarding

    Firewalling
    3
    6
    4.1k
    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.
    • P
      parvell
      last edited by

      Greetings
      I think this is a more port-forwarding issue than a SSH one.
      I got a Mac Server that accept SSH connection behind a pfsense firewall: all I need is to port forwarding firewall SSH access from port 6116 (external) to 22 (internal for server).
      I created a NAT and firewall rules to forward connection from port 6116 to 22 to my internal IP server, but do not work. Do I have to add some addon or enable SSH access?
      I don't need a SSH access to firewall, only a port forwarding for SSH, from port 6116 to 21 to my server.
      Eventually, OpenVPN can be a better solution to this issue, to have a secure encrypted connection? (I use this with a ssh tunnel for a VNC connection from my client to sever).
      Thx

      1 Reply Last reply Reply Quote 0
      • D
        danswartz
        last edited by

        post the NAT rule and access rule pls.

        1 Reply Last reply Reply Quote 0
        • P
          parvell
          last edited by

          here's the rules (NAT and port forwarding)

          rules.jpg_thumb
          rules.jpg

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

            Remove the source port from the firewall rule - that is not needed and is likely the source of your problem, since it will fail to match almost any packet that comes in.

            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
            • D
              danswartz
              last edited by

              Damn, beat me to it :)

              1 Reply Last reply Reply Quote 0
              • P
                parvell
                last edited by

                It worked perfectly!!!!!!
                Thx a lot

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