just a logo :)

search:



imprint







Tunnel all traffic through ssh
Entry Nr. 2265, by user 1
I started an experiment to tunnel all traffic of my local machine through a server. Here are the first steps. Its not finished yet.

1) On the server, put this in your /etc/ssh/sshd_config
PermitTunnel yes

2) On the server, restart sshd
service ssh restart

3) On the client, create a tunnel device
ssh -NTCf -w 0:0 <ip_of_your_server>

4) On the server (im not sure what its doing):
ip link set tun0 up
ip addr add 10.0.0.100/32 peer 10.0.0.200 dev tun0

5) On the client (im not sure what its doing):
ip link set tun0 up
ip addr add 10.0.0.200/32 peer 10.0.0.100 dev tun0