On 15 Oct 09:51, Mark Rogers wrote:
I have a Linux (Debian on ARM) box on a remote network (IP 192.168.150.100, subnet 255.255.255.0).
The Linux box is also running Hamachi VPN software, which has given it an address (5.50.60.177) that I can reach from desktop (via a local Hamachi install). I can therefore ping 5.50.60.177 and SSH to it.
I would like to route to the 192.168.150.x network via the working Hamachi connection. To that end I have enabled IP forwarding: $ cat /proc/sys/net/ipv4/ip_forward 1
.. and at the desktop end route -p add 192.168.150.0 mask 255.255.255.0 5.60.70.177 (desktop is Windows because the Hamachi VPN client was already running on it, but I don't think that's relevant to the problem).
I am unable to reach either my box via its local address (192.168.150.100) or the rest of the remote LAN.
What am I missing?
You'll probably also have to tell the linux box that it needs to MASQUERADE the packets going over that interface.
Assuming that your VPN interface is ppp0:
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
Should do what you want and allow the packets to bounce around neatly.