gibney.org
:
Technology
:
Linux
:
Tunnel all traffic through ssh
(Entry Nr. 2265, by user 1 |
edit
)
I started an experiment to tunnel all traffic of my local machine through a server. Here are the first steps. Its not finished yet. <br> <br>1) On the server, put this in your /etc/ssh/sshd_config <br>PermitTunnel yes <br> <br>2) On the server, restart sshd <br>service ssh restart <br> <br>3) On the client, create a tunnel device <br>ssh -NTCf -w 0:0 <ip_of_your_server> <br> <br>4) On the server (im not sure what its doing): <br>ip link set tun0 up <br>ip addr add 10.0.0.100/32 peer 10.0.0.200 dev tun0 <br> <br>5) On the client (im not sure what its doing): <br>ip link set tun0 up <br>ip addr add 10.0.0.200/32 peer 10.0.0.100 dev tun0
Create a new entry at this position