I am currently setting up a small vpn tunnel, which is then connecting 2 LAN's together, for nothing other than helping me understand routing, forwarding, etc.
I have turned an ubuntu host on the destination network into the VPN host and router.
Net1: 172.16.1.0/24
VPN: 192.168.0.0/24
Net2: 192.168.15.0/24
on the VPN host, I have added a route using this command to allow traffic to travel back to Net1;
ip route add 172.16.1.0/24 dev ppp0
I can then ping, browse, do whatever I want across the two LAN's.
So I open VMWare to connect to ESXi- it connects to the server, then stops responding. When I go to check the VPN host, I see that the route that I added just above has disappeared.
This happens all the time and I'm really getting to the end of my tether with it - I cannot work out for the life of me why it disappears.
To be clear; I am not rebooting when this happens - it disappears mid transport of traffic.
Anyone else experienced this issue?
EDIT: here is the route print.
root@ubuntu-ThinkPad:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default srp527w 0.0.0.0 UG 0 0 0 wlan0
172.16.1.0 * 255.255.255.0 U 0 0 0 ppp0
192.168.0.234 * 255.255.255.255 UH 0 0 0 ppp0
192.168.15.0 * 255.255.255.0 U 9 0 0 wlan0
After it randomly disappears:
root@ubuntu-ThinkPad:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default srp527w 0.0.0.0 UG 0 0 0 wlan0
192.168.0.234 * 255.255.255.255 UH 0 0 0 ppp0
192.168.15.0 * 255.255.255.0 U 9 0 0 wlan0
root@ubuntu-ThinkPad:~#
#