Geekzone: technology news, blogs, forums
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.

2982 posts

Uber Geek


#195617 26-Apr-2016 21:25
Send private message

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.












on the VPN host, I have added a route using this command to allow traffic to travel back to Net1;


ip route add 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 UG 0 0 0 wlan0 * U 0 0 0 ppp0 * UH 0 0 0 ppp0 * 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 UG 0 0 0 wlan0 * UH 0 0 0 ppp0 * U 9 0 0 wlan0

Create new topic
2169 posts

Uber Geek


  #1542478 26-Apr-2016 22:37
Send private message

is vmware's network config conflicting with the vpn?

660 posts

Ultimate Geek


  #1542551 27-Apr-2016 08:09
Send private message

Have you confirmed that the VPN is staying up? Routes vanish when interfaces go away.

Prodigi - Optimised IT Solutions
WebOps/DevOps, Managed IT, Hosting and Internet/WAN.


2982 posts

Uber Geek


  #1542723 27-Apr-2016 12:36
Send private message



is vmware's network config conflicting with the vpn?



Nope, the VPN box is physical, so can't be a conflict.






Have you confirmed that the VPN is staying up? Routes vanish when interfaces go away.





You're 100% on the money. I was looking through the logs last night after posting, and I can see a Signal 15 being received on the Net1 router. A little digging around seems to indicate that this may be a known issue with the pptpd/pppd daemon, which is frustrating.


Going to do some more testing tonight to see what I can do.


How come we can't set persistent routes? I don't care if traffic gets dropped when the route is down. They're private IP's anyway, so there's no where else for them to go, since they're not internet route-able or anything.




I wonder if I should set up a interface for ppp0 on the VPN server, that way the interface is always there, so the route shouldn't disappear. Will give it a try. 





2982 posts

Uber Geek


  #1544888 1-May-2016 14:40
Send private message

I still haven't found the reason why the connection keeps dropping out, however, I have put a script into the /etc/ppp/if-up.d/ folder, which executes when the connection comes up - this automatically adds the route in.




So at least now I'm not losing the route entirely, needing manual intervention, but still dropping some packets when the route goes down temporarily. 

Create new topic

News »

Freeview On Demand app launches on Sony Android TVs
Posted 6-Aug-2020 13:35

UFB hits more than one million connections
Posted 6-Aug-2020 09:42

D-Link A/NZ extends COVR Wi-Fi EasyMesh System series with new three-pack
Posted 4-Aug-2020 15:01

New Zealand software Rfider tracks coffee from Colombia all the way to New Zealand businesses
Posted 3-Aug-2020 10:35

Logitech G launches Pro X Wireless gaming headset
Posted 3-Aug-2020 10:21

Sony Alpha 7S III provides supreme imaging performance
Posted 3-Aug-2020 10:11

Sony introduces first CFexpress Type A memory card
Posted 3-Aug-2020 10:05

Marsello acquires Goody consolidating online and in-store marketing position
Posted 30-Jul-2020 16:26

Fonterra first major customer for Microsoft's New Zealand datacentre
Posted 30-Jul-2020 08:07

Everything we learnt at the IBM Cloud Forum 2020
Posted 29-Jul-2020 14:45

Dropbox launches native HelloSign workflow and data residency in Australia
Posted 29-Jul-2020 12:48

Spark launches 5G in Palmerston North
Posted 29-Jul-2020 09:50

Lenovo brings speed and smarter features to new 5G mobile gaming phone
Posted 28-Jul-2020 22:00

Withings raises $60 million to enable bridge between patients and healthcare
Posted 28-Jul-2020 21:51

QNAP integrates Catalyst Cloud Object Storage into Hybrid Backup solution
Posted 28-Jul-2020 21:40

Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.