Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

under linux i learnt to establish an ip-based tunnel using ssh, doing this:

# background tunnel ip based on tun5
sudo ssh -f -N -w 5:5 root@remoteserver

# setup remote: tun5
ssh root@remoteserver "sudo ip link set tun5 up"
ssh root@remoteserver "ip addr add peer dev tun5"

# client setup: tun5
sudo ip link set tun5 up
sudo ip addr add peer dev tun5

The -w parameter empowers me to register a local ip to tun5 device, which in turn becomes my gateway ip to the remote server. Thats pretty awesome with 5 lines of code.

One of the applications i use don't have proper proxy handling and sucks using ssh port tunneling, thats why i need a fully IP-based solution, to get even UDP routed properly.

Any idea how to do this in putty or any other tool under windows?

Any hints highly appreciated!

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.