Hi,
I have a question regarding SSH server on Linux that I hope you can help me out to see if it's possible and how.
I want to allow port forwarding for a user, but only to a specific IP/port, a fake one. So let's say the user connects to ssh with option -L 3000:9.9.9.9:2000
On the client side, he's opening a local port 3000 and it will forward on server side to 9.9.9.9:2000.
The thing is, I want to only allow port forwarding to that IP/port destination, and they do NOT exist. I want to rewrite/alias that IP/port to the correct one (for example a real existing IP/port like 192.168.0.200:3080).
This way the client can connect to 127.0.0.1:3000, client knows he's tunneling to 9.9.9.9:2000, but that is not the correct destination, and server side the connection is being made to 192.168.0.200:3080, which the client doesn't know.
Meaning this way the client will not even know what IP address I'm using, thus not inferring anything about my network.
Is it possible with SSH server on Linux?
Thanks.
I have a question regarding SSH server on Linux that I hope you can help me out to see if it's possible and how.
I want to allow port forwarding for a user, but only to a specific IP/port, a fake one. So let's say the user connects to ssh with option -L 3000:9.9.9.9:2000
On the client side, he's opening a local port 3000 and it will forward on server side to 9.9.9.9:2000.
The thing is, I want to only allow port forwarding to that IP/port destination, and they do NOT exist. I want to rewrite/alias that IP/port to the correct one (for example a real existing IP/port like 192.168.0.200:3080).
This way the client can connect to 127.0.0.1:3000, client knows he's tunneling to 9.9.9.9:2000, but that is not the correct destination, and server side the connection is being made to 192.168.0.200:3080, which the client doesn't know.
Meaning this way the client will not even know what IP address I'm using, thus not inferring anything about my network.
Is it possible with SSH server on Linux?
Thanks.