Bug 325290 - Cannot add static routes on OpenVPN connections using the latest plasma-nm in Kubuntu Saucy
Summary: Cannot add static routes on OpenVPN connections using the latest plasma-nm in...
Status: RESOLVED FIXED
Alias: None
Product: plasma-nm
Classification: Plasma
Component: editor (show other bugs)
Version: 0.9.3.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Lukáš Tinkl
URL: https://bugs.launchpad.net/ubuntu/+so...
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-25 10:18 UTC by Vangelis
Modified: 2013-09-25 19:53 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vangelis 2013-09-25 10:18:10 UTC
Just installed kubuntu saucy (13.10) beta 1 and upgraded to the latest packages from the repositories.

One thing I need is an openvpn client to connect to my openvpn server, not use this connection as the default, but pass some routes through the tunnel. so I did an "apt-get install network-manager-openvpn" and then I used the network manager plasma widget to configure it.

However, the additional routes are not saved in the configuration file of the connection.

If I add the routes manually in the network manager config file of the specific connection it works fine.
The corresponding line is the "route1" line in the [ipv4] section.

/etc/NetworkManager/system-connections/myOpenVPNconnection
...
...
[ipv4]
method=auto
route1=192.168.200.0/22,0.0.0.0,0
never-default=true
may-fail=false

Reproducible: Always




This is a regression, as it was working nicely using the old version of the plasma-nm in Kubuntu 13.04.
Comment 1 Jan Grulich 2013-09-25 12:03:38 UTC
Git commit 42fc23ec2ccef82ae12e9b869cdb0de7e2dca2f1 by Jan Grulich.
Committed on 25/09/2013 at 12:03.
Pushed by grulich into branch 'NM/0.9'.

Register meta types for IPv4 addresses

M  +7    -0    manager.cpp

http://commits.kde.org/libnm-qt/42fc23ec2ccef82ae12e9b869cdb0de7e2dca2f1
Comment 2 Jan Grulich 2013-09-25 12:13:11 UTC
I've pushed the fix for your problem, but you will have to probably wait until we release a new version (or until some Kubuntu packager make an update with this fix) or you can get it from git. If you don't know how, just tell me and I'll help you. I leave this bug open until you confirm that it works. Thanks
Comment 3 Jan Grulich 2013-09-25 12:14:53 UTC
Git commit 17b0b4a3bb019390243e956563e5c767ae526d94 by Jan Grulich.
Committed on 25/09/2013 at 12:03.
Pushed by grulich into branch 'master'.

Register meta types for IPv4 addresses

M  +7    -0    manager.cpp

http://commits.kde.org/libnm-qt/17b0b4a3bb019390243e956563e5c767ae526d94
Comment 4 Vangelis 2013-09-25 12:16:22 UTC
Sure, I would need some help to get it from git since I have never tried this before.

I'll test it this evening and report back.
Comment 5 Jan Grulich 2013-09-25 12:25:21 UTC
Just use these commands:
1) git clone git://anongit.kde.org/libnm-qt.git
2) cd libnm-qt
3) git checkout NM/09
4) mkdir build
5) cd build
6) cmake .. -DCMAKE_INSTALL_PREFIX=/usr
7) make
8) make install (as root, i.e sudo make install)

And you will have to install NetworkManager-devel and qt-devel and other development tools (GCC, git, cmake) before you start. Do you use IRC? You can ping me on #kde-devel or #solid, my nick is jgrulich.
Comment 6 Vangelis 2013-09-25 19:12:44 UTC
Jan, I can confirm that you patch fixes the issue.

BTW the command "git checkout NM/09" should be "git checkout NM/0.9" instead.
Comment 7 Jan Grulich 2013-09-25 19:53:52 UTC
Aha, sorry, but thanks for testing.