_______ Feed on Posts or Comments

english & technology Franchu on 29 Apr 2007 01:48 am

Tunneling and proxying through SSH

Lately I have found myself in situations in which I needed to bypass some limitations of the network I was connected to, name it bypassing an paranoid firewall or proxying my connection when my ISP lost access to part of the Internet.

Whatever you use it for, it is none of my business… it is not rocket science and is available anywhere online, but I also blog it so that I can use it as a reference in the future :)

SOCKS proxy server (makes the remote machine act as a SOCKS proxy server through a port of the local machine)

ssh -D localport remote.machine.com

REVERSE TUNNEL (makes a port in the remote machine connect directly to a port in the local machine)

ssh -nNT -R localport:local.machine.com:remoteport remote.machine.com

FORWARD TUNNEL (makes a port in the remote machine available in a port in the local machine)

ssh -L localport:local.machine.com:remoteport remote.machine.com

Hope it will be useful for you too… and if you know of more possibilities, do not hesitate to share them with the rest :)

Related posts:

  1. Trip to Turin, Italy
  2. Recovering GRUB in Ubuntu
  3. Gigabit Ethernet network card setup in Ubuntu 8.04 Server
  4. Trip to Malaga, Spain
  5. Think big!

Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply