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

    Question about ssh port forwarding within VLAN

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    4 Posts 3 Posters 382 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.
    • A
      albert-0
      last edited by albert-0

      Here's the thing. I've set up the ssh and can connect to pfsense by it.
      However, I want to do some port forwarding in my ssh connection.

      I have a VLAN, name it 5. And I want to connect to psfense by port 5
      555 (another random number) in VLAN5.

      So what I want is by doing "ssh -p 5555 user@host" in a computer in VLAN 5 to connect to psfense with the port for ssh is as default: 22. (don't change the port for ssh since other user from other VLAN might need it)

      Is there a way to make request from port 5555 from VLAN5 to forward to port 22 and connect to pfsense .

      Really need this, Thanks ALOT!!

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        A NAT Rule works.

        e9daade9-4a35-4cd7-b66a-f5b9c7770688-image.png

        I choose my LAN, you should choose your VLAN.
        Now I'm able to connect to 5555 on my LAN instead of 22.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • noplanN
          noplan
          last edited by

          why dont u use
          85207b94-5754-4883-9cde-c85d3f92c411-grafik.png
          instead of 127.0.0.1 in the rules ? any specific behind ?

          just a style question if someone needs style points ;)

          1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan
            last edited by

            OMG.
            Was using 127.0.0.1 so questions like 'What is this Firewall" wouldn't pop up ...

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

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