Bug#809526: network-manager-openvpn: Fail to set IPv4 route

2016-01-11 Thread lakier
Package: network-manager
Version: 1.0.10-1
Followup-For: Bug #809526

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
connecting to vpn via NetworkManager gui (imported VPN config)

   * What exactly did you do (or not do) that was effective (or
 ineffective)?
Manually invoking openvpn mycfg.conf works properly
Using NetworkManager - not, NetworkManager reports that vpn connection was 
successful but I cannot 
access any resources in remote location

   * What was the outcome of this action?
Connetion via Netowork Manager gui reports that connection was successful but 
nothing remote is accessible (moreover
there is a difference between `route -n` command between manual openvpn 
execution and via NetworkManager)
   * What outcome did you expect instead?
working vpn...

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.3.0-1-amd64 (SMP w/12 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages network-manager depends on:
ii  adduser3.113+nmu3
ii  dbus   1.10.6-1
ii  init-system-helpers1.24
ii  isc-dhcp-client4.3.3-5
ii  libbluetooth3  5.36-1
ii  libc6  2.21-6
ii  libdbus-1-31.10.6-1
ii  libdbus-glib-1-2   0.102-1
ii  libglib2.0-0   2.46.2-3
ii  libgnutls-deb0-28  3.3.20-1
ii  libgudev-1.0-0 230-2
ii  libmm-glib01.4.12-1
ii  libndp01.4-2
ii  libnewt0.520.52.18-2
ii  libnl-3-2003.2.26-1
ii  libnl-genl-3-200   3.2.26-1
ii  libnl-route-3-200  3.2.26-1
ii  libnm0 1.0.10-1
ii  libpam-systemd 228-4
ii  libpolkit-agent-1-00.105-14
ii  libpolkit-gobject-1-0  0.105-14
ii  libreadline6   6.3-8+b4
ii  libsoup2.4-1   2.52.2-1
ii  libsystemd0228-4
ii  libteamdctl0   1.18-1
ii  libuuid1   2.27.1-1
ii  lsb-base   9.20160110
ii  policykit-10.105-14
ii  udev   228-4
ii  wpasupplicant  2.3-2.3

Versions of packages network-manager recommends:
ii  crda3.13-1+b1
ii  dnsmasq-base2.75-1
ii  iptables1.4.21-2+b1
ii  iputils-arping  3:20121221-5+b2
ii  modemmanager1.4.12-1
ii  ppp 2.4.7-1+1

Versions of packages network-manager suggests:
pn  avahi-autoipd  
pn  libteam-utils  

-- Configuration Files:
/etc/NetworkManager/NetworkManager.conf changed:
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=true


-- no debconf information



Bug#809526: network-manager-openvpn: Fail to set IPv4 route

2016-01-06 Thread Roy Sindre Norangshol
Package: network-manager
Version: 1.0.10-1
Followup-For: Bug #809526

Dear Maintainer,

   * What led up to the situation?

Reinstall of laptop today with latest Debian Sid netinstall, and was unable to
retrieve the static routes from the (open)vpn connection.

   * What exactly did you do (or not do) that was effective (or
 ineffective)?

Placing my profile under /etc/NetworkManager/system-connections/ from earlier
setup, but trying to use it with the latest version of network-manager gives
me:

   * What was the outcome of this action?

Logs shows that it failed to set the static routes that the vpn server sends to
the client when getting connected to the openvpn.

Jan  6 20:16:42 luna NetworkManager[2055]:   platform-linux:
do-add-ip4-route: failure adding ip4-route '6: 10.x.x.x/22 50': Unspecific
failure (1)


   * What outcome did you expect instead?

Connect to our openvpn and retrieve the static routes so I could access private
resources via VPN.



What I did to fix the problem:

Search on the web and figured out users using Arch linux as well was
experiencing this, and it seems to be an upstream bug. See
https://bugs.archlinux.org/task/47535 for details. 

Bug report mentions a reference to a bug fix done upstream:
http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=11aa07ed939193e85516c287a57dee1837242972
 

I download this patch, used apt source network-manager, put the patch under
debian/patches and added it to the debian/patches/series file and issued a
rebuild of network-manager.

Installed the newly built *.deb packages and I successfully connected to our
openvpn and network-manager obtained the static routes configured by the
openvpn server so I could access our internal resources.

I also think this bug report should be linked to :

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809494
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809195

as I assume the patch from upstream will fix these two issues as well.

Note: the system information below is with my rebuilt packages with the patch.

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages network-manager depends on:
ii  adduser3.113+nmu3
ii  dbus   1.10.6-1
ii  init-system-helpers1.24
ii  isc-dhcp-client4.3.3-5
ii  libbluetooth3  5.36-1
ii  libc6  2.21-6
ii  libdbus-1-31.10.6-1
ii  libdbus-glib-1-2   0.102-1
ii  libglib2.0-0   2.46.2-3
ii  libgnutls-deb0-28  3.3.19-1
ii  libgudev-1.0-0 230-2
ii  libmm-glib01.4.12-1
ii  libndp01.4-2
ii  libnewt0.520.52.18-2
ii  libnl-3-2003.2.26-1
ii  libnl-genl-3-200   3.2.26-1
ii  libnl-route-3-200  3.2.26-1
ii  libnm0 1.0.10-1
ii  libpam-systemd 228-2+b1
ii  libpolkit-agent-1-00.105-14
ii  libpolkit-gobject-1-0  0.105-14
ii  libreadline6   6.3-8+b4
ii  libsoup2.4-1   2.52.1-1
ii  libsystemd0228-2+b1
ii  libteamdctl0   1.18-1
ii  libuuid1   2.27.1-1
ii  lsb-base   9.20150917
ii  policykit-10.105-14
ii  udev   228-2+b1
ii  wpasupplicant  2.3-2.3

Versions of packages network-manager recommends:
ii  crda3.13-1+b1
ii  dnsmasq-base2.75-1
ii  iptables1.4.21-2+b1
ii  iputils-arping  3:20121221-5+b2
ii  modemmanager1.4.12-1
ii  ppp 2.4.7-1+1

Versions of packages network-manager suggests:
ii  avahi-autoipd  0.6.32~rc+dfsg-1
pn  libteam-utils  

-- no debconf information



Bug#809526: network-manager-openvpn: Fail to set IPv4 route

2016-01-06 Thread Thomas Renard
Patch

http://cgit.freedesktop.org/NetworkManager/NetworkManager/diff/?id=11aa07ed939193e85516c287a57dee1837242972=a232f885c233dbe4f2489c7a9691bd0b8c9816c5

from upstream bug report (fixed)

https://bugzilla.gnome.org/show_bug.cgi?id=759892

works for me.