web01:~# ssh zennet.dk -p 2222 -L 8080:192.168.1.252:80 -g -f -N
root@zennet.dk’s password:
web01:~#
-f and -N make the process fork into background once loaded
-L 8080:192.168.1.252:80 , means that local port 8080 should be tunneled to remote ip 192.168.1.252 port 80
-g gives remote hosts access to connect to web01 port 8080