Registered Member
|
Hi,
I have setup my VPN connection with KDE Network Manager (plasma-nm Version: 0.9.3.0-0ubuntu5) and it works perfectly. By default, it is setup to route all traffic over this interface.
I am attempting to change this behaviour in order to route only traffic which is trying to access resources at my work to go over this interface, not all traffic. This seems easy, I check the 'Use only for resource on this connection' checkbox in the Edit IPv4 Routes dialogue. The default entry becomes:
Now, the VPN is correctly not used when I attempt to access resources (e.g. google.com) on the internet. The Actual Problem: The VPN does not get used when I attempt to use resources at work either. It behaves identically as if the VPN wasn't on at all.
I would have expected this (what happens when 'Use only for resource on this connection' checkbox is not ticked):
I don't know much about networking really so I'm having trouble diagnosing it from here. Perhaps the routing table that I am picking up when connecting to the VPN is lacking? Any help would be appreciated. On a side note, I noticed that if I try and add routes manually in this version of the network manager, they appear to be added ok, but if I go back into the 'Edit IPv4 Routes' dialogue, they are gone and never appear in the routing table. |
Administrator
|
The lack of routes being saved in the settings is probably a bug - which you might want to report at bugs.kde.org.
In terms of this issue - can you provide the output of the following command with the VPN connected?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Sorry for delay in replying. I certainly intend to report the bug.
As for the routing stuff: With the VPN enabled and 'Use only for resources on this connection' unticked:
With the VPN enabled and 'Use only for resources on this connection' ticked:
Thanks! |
Administrator
|
Okay - it seems this behaviour is expected to a certain extent, as the network you are connecting to is being managed in a point to point fashion - so as far as NetworkManager is concerned there is only one system on the other end of the VPN - 129.67.76.128/32 - rather than the actual network block.
Unfortunately the only easy workaround to this is using the routes field - which you previously found did not work. If you save the settings after adding each route in turn - and save it with the routes tab open, does this have any effect? (When I tried to test I could not reproduce)
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Ok, that makes sense, I was sort of expecting to see some route distinguishing what is on the work network and what isn't.
Weirdly, this functionality works perfectly on OSX though, so the routes must be there in the configuration of the VPN, but for some reason not distribute to Linux. Will look a little different as I'm in Boston, MA at the moment :
If there is a chance the VPN is misconfigured for Linux I will take this up with the guys at work to get it fixed. If you know, is that likely? I would guess that platform specific configs would be something offered by most VPN systems? Finally, for when I get home to my Linux box, I assume I'm just adding the equivalent of these three?
Thanks a lot for your help so far. |
Administrator
|
Based on OS X behaving correctly, it could be that NetworkManager is not reading the metadata the VPN is sending correctly - or it is otherwise misconfiguring the connection based on the details it is sending.
I would suggest filing a bug report with the NetworkManager developers, who can likely point you in the right direction as to debugging your specific VPN issues.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]