Hi
This is hopefully an easy one.
Cloud Server (internal IP)
172.16.20.100/24
Client (internal IP)
192.168.0.15/24
Modem
192.168.0.1/24
I have successfully established a site-to-site VPN between two Ubuntu 14.04 machines and can ping both ways. My client machine is behind a modem and I have created a static rule to forward all traffic from the TUN network to the client machine. (10.0.8.0/24 -> 192.168.0.15)
I have created a "ccd" file for the client and that is being applied correctly.
The issue is - I cannot ping anything other than the client and server machines, so there is obviously a iptable/route that I have to add but I cannot get it to work.
I tried creating a route on the client machine (route add -net 192.168.0.4 netmask 255.255.255.255 gw 192.168.0.1) to try and forward traffic through to one of the machine on the client LAN but that did not work.
Server 'route -n' command
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 xx.xx.xx.xx 0.0.0.0 UG 0 0 0 eth0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
10.8.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
xx.xx.xx.xx 0.0.0.0 255.255.254.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
172.16.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
Client 'route -n' command
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
10.8.0.0 10.8.0.5 255.255.255.0 UG 0 0 0 tun0
10.8.0.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
172.16.20.0 10.8.0.5 255.255.255.0 UG 0 0 0 tun0
192.168.0.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
All advice appreciated
Thanks in advance
O