[<<][pool][>>][..]
Wed Dec 13 20:34:10 CET 2006

ssh port forwarding with ip address mapping

1. enable port forwarding on the target host like this:

   ssh -NR 22001:localhost:22 tom@forward.host

2. make sure forward.host:/etc/ssh/sshd_config contains
   the line

   GatewayPorts yes

3. add a firewall rule on forward.host

   iptables -t nat -A PREROUTING -p tcp -d 10.22.0.1 --dport 22 -j REDIRECT --to-port 22001

4. on any host on the network, do this to log in

   ssh user@10.22.0.1

don't know how to fix this for host outgoing though..



[Reply][About]
[<<][pool][>>][..]