[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

[Openvpn-users] OpenVPN 2.0 on debian Linux "Assertion failed at route.c:334"


  • Subject: [Openvpn-users] OpenVPN 2.0 on debian Linux "Assertion failed at route.c:334"
  • From: Vladi Lemurov <fix@xxxxxxxxxxxxx>
  • Date: Wed, 16 Aug 2006 14:55:12 +0700

Hello!
    I've got two configurations for openvpn, one as client, another as 
server. When I connect as server I add lots of routes manually making 
remote machine (on the other side of the openvpn tunnel) a default 
gateway (I add these manual routes because we don't need to reach our 
"city nets" through this remote vpn gateway). I have 99 these "manual" 
routes, they are divided "logically" into 3 subgroups and are located in 
3 files which I add to main config file (whith "config" directive). 
Recently the number of these routes reached 99 and the openvpn client 
stopped starting, writing the following to log files:


Aug 12 06:30:02 tpk ovpn-Exp1D1384dj[30197]: OpenVPN 2.0 i386-pc-linux 
[SSL] [LZO] [EPOLL] built on Apr  6 2006
Aug 12 06:30:02 tpk ovpn-Exp1D1384dj[30197]: ******* WARNING *******: 
null MAC specified, no authentication will be used
Aug 12 06:30:02 tpk ovpn-Exp1D1384dj[30197]: LZO compression initialized
Aug 12 06:30:02 tpk ovpn-Exp1D1384dj[30197]: Assertion failed at route.c:334
Aug 12 06:30:02 tpk ovpn-Exp1D1384dj[30197]: 
Exiting                                                                    
<<<=====- OpenVPN as client doesn't start!
Aug 12 06:30:02 tpk ovpn-openvpn_server[30200]: OpenVPN 2.0 
i386-pc-linux [SSL] [LZO] [EPOLL] built on Apr  6 2006
Aug 12 06:30:02 tpk ovpn-openvpn_server[30200]: TUN/TAP device tun1 opened
Aug 12 06:30:02 tpk ovpn-openvpn_server[30200]: /sbin/ifconfig tun1 
192.168.7.1 pointopoint 192.168.7.2 mtu 1500
Aug 12 06:30:02 tpk ovpn-openvpn_server[30212]: UID set to nobody
Aug 12 06:30:02 tpk ovpn-openvpn_server[30212]: UDPv4 link local 
(bound): aaa.bbb.ccc.ddd:19300
Aug 12 06:30:02 tpk ovpn-openvpn_server[30212]: UDPv4 link remote: [undef]
Aug 12 06:30:02 tpk ovpn-openvpn_server[30212]: Initialization Sequence 
Completed                         <<<=====- OpenVPN starts well!

Every two minutes starts script which tests whether the vpn tunnel (we 
connect as client) is connected and working. Scripts simply traceroutes 
some hosts and if the traceroute goes well and thru vpn gateway it exits 
and if the traceroute goes not thru vpn gateway (this means that the 
tunnel doensn't function well for me) it restarts openvpn. And here I 
noticed another strange thing, the default route cannot be deleted:

Aug 12 06:32:01 tpk ovpn-openvpn_server[30212]: event_wait : Interrupted 
system call (code=4)
Aug 12 06:32:01 tpk ovpn-openvpn_server[30212]: ERROR: Linux route 
delete command failed: shell command exited with error status: 7    
<<<=== the default route cannot be deleted!
Aug 12 06:32:01 tpk ovpn-openvpn_server[30212]: SIGTERM[hard,] received, 
process exiting
Aug 12 06:32:02 tpk ovpn-Exp1D1384dj[30284]: OpenVPN 2.0 i386-pc-linux 
[SSL] [LZO] [EPOLL] built on Apr  6 2006
Aug 12 06:32:02 tpk ovpn-Exp1D1384dj[30284]: ******* WARNING *******: 
null MAC specified, no authentication will be used
Aug 12 06:32:02 tpk ovpn-Exp1D1384dj[30284]: LZO compression initialized
Aug 12 06:32:02 tpk ovpn-Exp1D1384dj[30284]: Assertion failed at route.c:334
Aug 12 06:32:02 tpk ovpn-Exp1D1384dj[30284]: Exiting
Aug 12 06:32:02 tpk ovpn-openvpn_server[30287]: OpenVPN 2.0 
i386-pc-linux [SSL] [LZO] [EPOLL] built on Apr  6 2006
Aug 12 06:32:02 tpk ovpn-openvpn_server[30287]: TUN/TAP device tun1 opened
Aug 12 06:32:02 tpk ovpn-openvpn_server[30287]: /sbin/ifconfig tun1 
192.168.7.1 pointopoint 192.168.7.2 mtu 1500
Aug 12 06:32:02 tpk ovpn-openvpn_server[30298]: UID set to nobody
Aug 12 06:32:02 tpk ovpn-openvpn_server[30298]: UDPv4 link local 
(bound): .bbb.ccc.ddd:19300
Aug 12 06:32:02 tpk ovpn-openvpn_server[30298]: UDPv4 link remote: [undef]
Aug 12 06:32:02 tpk ovpn-openvpn_server[30298]: Initialization Sequence 
Completed

It seems that the route was deleted and there is no default route, but 
OpenVPN cannot create its own route.
    One more thing that I noticed - if I comment out one route (any of 
them) and get 98 everything goes fine! I watched man page and didn't 
find any restrictions on the routes amount. I hope I described the 
situation clear as English is not my native language. Please, help.
                                                 Vladi.

______________________
OpenVPN mailing lists
https://lists.sourceforge.net/lists/listinfo/openvpn-users