




Code: Select all
iptables -t nat -A PREROUTING -p tcp -i ethX --dport 443 -j DNAT --to-destination ur.ip.addr.here:22
If u want it to work for ur work only btw... (and have https normally reachable for the rest of the world) add an --source-destination at the end :)
And if you dont have it:
iptables -t nat -A POSTROUTING -i ethX -j MASQUERADE
Code: Select all
ssh -L 3389:internal.ip.of.lanhost:3389 (where the internal ip of the lan host is 192.168.1.23 for example)
and u can connect to ur rdesktop using:
rdesktop <insert ur regular options here> localhost:3389
