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

Re: [Openvpn-users] Re: Re: Mandrake 10.1


  • Subject: Re: [Openvpn-users] Re: Re: Mandrake 10.1
  • From: Doug Lytle <support@xxxxxxxxxx>
  • Date: Sun, 12 Dec 2004 21:41:54 -0500



Charles Duffy wrote:

As long as following the symlink leads to the correct device (major
number 10, minor number 200 unless /proc/misc says different), it's not
the issue. (Just curious -- is the tun module dynamically loaded? Might be
a Good Thing to make sure it's in there permanently).



No, the modprobe statement is in the startup script.


Does this version of Mandrake use devfs? Not that it would be causing this
issue, but it would certainly explain why /dev's contents are reverting.




udev

The interesting thing here is that it works 100% of the time manually.
That means there _must_ be some relevant difference between the script's
invocation and your own (even if it's something as simple as delays
between commands). Hence, playing with the script is certainly worthwhile.



I'll try a wait 10 in the script

The error that OpenVPN is throwing is that it can't find /dev/net/tun.



First, make sure the tun module is loaded ahead of time.

Second, have the script start OpenVPN via strace, and watch what happens
when it tries to open /dev/net/tun. Are you getting EACCES? ENOENT?
ENODEV? ENXIO?



Previous strace on good and bad runs:

On a reboot where openvpn runs ok, the trace snip is as follows:

write(1, "Tue Dec  7 18:39:23 2004 us=1886"..., 93) = 93
open("/dev/net/tun", O_RDWR)            = 4
ioctl(4, TUNSETIFF, 0xbffff3e0)         = 0
gettimeofday({1102462763, 230271}, NULL) = 0


When it doesn't run, it's

write(1, "Tue Dec 7 18:42:14 2004 us=2189"..., 93) = 93
open("/dev/net/tun", O_RDWR) = -1 ENOENT (No such file or directory)
gettimeofday({1102462934, 219382}, NULL) = 0
write(1, "Tue Dec 7 18:42:14 2004 us=2193"..., 115) = 115
gettimeofday({1102462934, 219617}, NULL) = 0
write(1, "Tue Dec 7 18:42:14 2004 us=2196"..., 93) = 93
open("/dev/tun0", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun1", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun2", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun3", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun4", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun5", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun6", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun7", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun8", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun9", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun10", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun11", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun12", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun13", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun14", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun15", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun16", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun17", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun18", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun19", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun20", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/tun21", O_RDWR) = -1 ENOENT (No such file or directory)


The devices go all the way up to 255 on the tuns.

Doug




____________________________________________ Openvpn-users mailing list Openvpn-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/openvpn-users