[Bug 391849] [NEW] helper adds route to my inner gateway too late

Vany ivan at serezhkin.com
Wed Jun 24 22:36:57 UTC 2009


Public bug reported:

i configure nm-openvpn, that way :

root     16705  2.0  0.2   4760  2664 ?        S    02:32   0:00 /usr/sbin/openvpn --remote vpn-unix.yandex.net --nobind --dev tun --proto udp --port 1194 --cipher AES-128-CBC --tls-auth /home/vany/cert/tls.key --syslog nm-openvpn --script-security 2 --up /usr/lib/network-manager-openvpn/nm-openvpn-service-openvpn-helper --up-restart --persist-key --persist-tun --management 127.0.0.1 1194 --management-query-passwords --route-noexec --client --ca /home/vany/cert/cachain.pem --cert /home/vany/cert/cert.pem --key /home/vany/cert/privkey.pem
root     16712  0.0  0.0   1872   532 ?        S    02:33   0:00 /bin/sh /usr/lib/network-manager-openvpn/nm-openvpn-service-openvpn-helper tun0 1500 1557 87.250.229.163 10.0.1.1 init

and when it established connection i has this:

eth1      Link encap:Ethernet  HWaddr 00:16:6f:a9:d6:9a  
          inet addr:192.168.1.77  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::216:6fff:fea9:d69a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:146904 errors:59 dropped:59 overruns:0 frame:0
          TX packets:79339 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:226827719 (226.8 MB)  TX bytes:13453593 (13.4 MB)
          Interrupt:18 Base address:0xc000 Memory:b0102000-b0102fff

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:87.250.229.163  P-t-P:10.0.1.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
213.180.194.73  192.168.1.1     255.255.255.255 UGH       0 0          0 eth1
213.180.194.73  192.168.1.1     255.255.255.255 UGH       0 0          0 tun0
>>>>>>> 192.168.1.1     0.0.0.0         255.255.255.255 UH        0 0          0 tun0
91.197.112.7    10.0.1.1        255.255.255.255 UGH       0 0          0 tun0
91.197.114.28   10.0.1.1        255.255.255.255 UGH       0 0          0 tun0
10.0.1.1        0.0.0.0         255.255.255.255 UH        0 0          0 tun0
213.180.194.74  10.0.1.1        255.255.255.254 UG        0 0          0 tun0
213.180.194.76  10.0.1.1        255.255.255.252 UG        0 0          0 tun0
213.180.194.64  10.0.1.1        255.255.255.248 UG        0 0          0 tun0
213.180.194.80  10.0.1.1        255.255.255.240 UG        0 0          0 tun0
213.180.194.96  10.0.1.1        255.255.255.224 UG        0 0          0 tun0
213.180.194.0   10.0.1.1        255.255.255.192 UG        0 0          0 tun0
213.180.194.128 10.0.1.1        255.255.255.128 UG        0 0          0 tun0
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
213.180.195.0   10.0.1.1        255.255.255.0   UG        0 0          0 tun0
213.180.192.0   10.0.1.1        255.255.254.0   UG        0 0          0 tun0
213.180.196.0   10.0.1.1        255.255.252.0   UG        0 0          0 tun0
213.180.200.0   10.0.1.1        255.255.248.0   UG        0 0          0 tun0
213.180.208.0   10.0.1.1        255.255.240.0   UG        0 0          0 tun0
87.250.224.0    10.0.1.1        255.255.224.0   UG        0 0          0 tun0
77.88.0.0       10.0.1.1        255.255.192.0   UG        0 0          0 tun0
93.158.128.0    10.0.1.1        255.255.192.0   UG        0 0          0 tun0
95.108.128.0    10.0.1.1        255.255.128.0   UG        0 0          0 tun0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 tun0
0.0.0.0         10.0.1.1        0.0.0.0         UG        0 0          0 tun0


highlighted route is through tun0, but must be throught eth1
when i manually change it to eth1 - all works.

I think - this happens because default route at thius moment is through
tun0, and in route command explicit iface definition is not present.

I cant understand how this helper and dbus works together and i can't
fix this bug.  Please help me.

** Affects: network-manager-openvpn (Ubuntu)
     Importance: Undecided
         Status: New

-- 
helper adds route to my inner gateway too late
https://bugs.launchpad.net/bugs/391849
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list