One day i decided it would interesting to connect to my PC from the college via ssh, of course the sysadmin is not friendly and decided it was a bad idea to leave default ssh port open. Since that wasn’t too important i left it alone and went on with my day..So today some guy at slackwares channel asked how to resolve that problem and spook helped him out and me. So thanks spook for the iptables command (not like he’s going to read my blog ever, but just in case ya know)
the iptables command:
iptables -t nat -A PREROUTING -p tcp –dport 80 -j REDIRECT –to-ports 22
So as far as i can understand it (lol) Anything that tries to connect through port 80 will get silently redirected to port 22. Going to try it out next time i am at college and then report back ;-]
- – Arnold.