Results 1 to 1 of 1
I have computer A: IP 192.168.1.64 router 192.168.1.254 computer B: accessible straight through the Internet, IP 18.104.22.168 gateway 22.214.171.124 (switched, has its own IP, eth0) Computer B also has a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-05-2010 #1
- Join Date
- Aug 2005
- South West England
SSH virtual tunnels
computer B: accessible straight through the Internet, IP 126.96.36.199 gateway 188.8.131.52 (switched, has its own IP, eth0)
Computer B also has a wifi network 184.108.40.206/16 and it's 220.127.116.11. (wlan0)
By doing ssh 18.104.22.168 from computer A and using -w 0:0 I have linked A into B's wifi network, using:
A> ifconfig tun0 up 22.214.171.124 pointopoint 126.96.36.199
B> ifconfig tun0 up 188.8.131.52. pointopoint 184.108.40.206
I also did:
A> route add -net 220.127.116.11 netmask 255.255.0.0 gw 18.104.22.168
so I may access B's network from A. Also:
B> arp -sD 22.214.171.124 wlan0 pub
to let them talk to A.
A is now effectively on B's network.
However, I'm now stuck. I want to use tun0 for the Internet, and as such I need to connect through the tunnel, into B's ethernet device as well as it's wireless.
How can I do that? I'm assuming you have to use iptables and routing?
I hope I made myself clear as possible.