Question about ssh port forwarding within VLAN



  • 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!!



  • 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.



  • 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 ;)



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


Log in to reply