[opensuse] openvpn question
Hi. I'm trying to create an openvpn connection. When I try to run it as root I get the following output: # /usr/local/sbin/openvpn --config myvpn.conf Mon Jun 15 15:13:40 2009 OpenVPN 2.0.9 x86_64-suse-linux [SSL] [LZO] [EPOLL] built on Jun 15 2009 Mon Jun 15 15:13:40 2009 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earlier used 5000 as the default port. Mon Jun 15 15:13:40 2009 WARNING: file 'myvpn.key' is group or others accessible Mon Jun 15 15:13:40 2009 LZO compression initialized Mon Jun 15 15:13:40 2009 UDPv4 link local: [undef] Mon Jun 15 15:13:40 2009 UDPv4 link remote: [ipaddress]:1194 Mon Jun 15 15:13:41 2009 [server.does.not.exists] Peer Connection Initiated with [ipaddress]:1194 Mon Jun 15 15:13:42 2009 Note: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19) Mon Jun 15 15:13:42 2009 Note: Attempting fallback to kernel 2.2 TUN/TAP interface Mon Jun 15 15:13:42 2009 Cannot allocate TUN/TAP dev dynamically Mon Jun 15 15:13:42 2009 Exiting /dev/net/tun exists, but may have the wrong rights: # ls /dev/net/tun -l crw-rw---- 1 root users 10, 200 Apr 14 10:06 /dev/net/tun I have openvpn client on Windows XP and it connects fine to this server. Can anyone give me a hint on the TUN device? Been googling and looking at the man pages... Thanks, James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, Jun 15, 2009 at 3:17 PM, James Pifer
Hi. I'm trying to create an openvpn connection. When I try to run it as root I get the following output:
# /usr/local/sbin/openvpn --config myvpn.conf Mon Jun 15 15:13:40 2009 OpenVPN 2.0.9 x86_64-suse-linux [SSL] [LZO] [EPOLL] built on Jun 15 2009 Mon Jun 15 15:13:40 2009 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earlier used 5000 as the default port. Mon Jun 15 15:13:40 2009 WARNING: file 'myvpn.key' is group or others accessible Mon Jun 15 15:13:40 2009 LZO compression initialized Mon Jun 15 15:13:40 2009 UDPv4 link local: [undef] Mon Jun 15 15:13:40 2009 UDPv4 link remote: [ipaddress]:1194 Mon Jun 15 15:13:41 2009 [server.does.not.exists] Peer Connection Initiated with [ipaddress]:1194 Mon Jun 15 15:13:42 2009 Note: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19) Mon Jun 15 15:13:42 2009 Note: Attempting fallback to kernel 2.2 TUN/TAP interface Mon Jun 15 15:13:42 2009 Cannot allocate TUN/TAP dev dynamically Mon Jun 15 15:13:42 2009 Exiting
/dev/net/tun exists, but may have the wrong rights: # ls /dev/net/tun -l crw-rw---- 1 root users 10, 200 Apr 14 10:06 /dev/net/tun
I have openvpn client on Windows XP and it connects fine to this server. Can anyone give me a hint on the TUN device? Been googling and looking at the man pages...
Thanks, James
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
What I have for the TUN device looks like this: [antwerp@bepstein][~] ls -l /dev/net/tun crw-rw-rw- 1 root root 10, 200 2007-09-21 17:50 /dev/net/tun [antwerp@bepstein][~] Don't know if this helps... But you are basically saying that your OpenVPN works, error messages notwithstanding... Or did I miss something? Cheers, Boris. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
What I have for the TUN device looks like this:
[antwerp@bepstein][~] ls -l /dev/net/tun crw-rw-rw- 1 root root 10, 200 2007-09-21 17:50 /dev/net/tun [antwerp@bepstein][~]
Don't know if this helps...
But you are basically saying that your OpenVPN works, error messages notwithstanding... Or did I miss something?
No, it works on my Windows XP machine with the openvpn client there. Does not connect on my opensuse machine. I changed the permissions to match yours but I still get this: Mon Jun 15 15:33:16 2009 Note: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19) Mon Jun 15 15:33:16 2009 Note: Attempting fallback to kernel 2.2 TUN/TAP interface Mon Jun 15 15:33:16 2009 Cannot allocate TUN/TAP dev dynamically Mon Jun 15 15:33:16 2009 Exiting Thanks, James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, Jun 15, 2009 at 3:36 PM, James Pifer
What I have for the TUN device looks like this:
[antwerp@bepstein][~] ls -l /dev/net/tun crw-rw-rw- 1 root root 10, 200 2007-09-21 17:50 /dev/net/tun [antwerp@bepstein][~]
Don't know if this helps...
But you are basically saying that your OpenVPN works, error messages notwithstanding... Or did I miss something?
No, it works on my Windows XP machine with the openvpn client there. Does not connect on my opensuse machine. I changed the permissions to match yours but I still get this:
Mon Jun 15 15:33:16 2009 Note: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19) Mon Jun 15 15:33:16 2009 Note: Attempting fallback to kernel 2.2 TUN/TAP interface Mon Jun 15 15:33:16 2009 Cannot allocate TUN/TAP dev dynamically Mon Jun 15 15:33:16 2009 Exiting
Thanks, James
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
What version of the OS/Kernel are you running? Boris. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James Pifer wrote:
What I have for the TUN device looks like this:
[antwerp@bepstein][~] ls -l /dev/net/tun crw-rw-rw- 1 root root 10, 200 2007-09-21 17:50 /dev/net/tun [antwerp@bepstein][~]
Don't know if this helps...
But you are basically saying that your OpenVPN works, error messages notwithstanding... Or did I miss something?
No, it works on my Windows XP machine with the openvpn client there. Does not connect on my opensuse machine. I changed the permissions to match yours but I still get this:
Mon Jun 15 15:33:16 2009 Note: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19) Mon Jun 15 15:33:16 2009 Note: Attempting fallback to kernel 2.2 TUN/TAP interface Mon Jun 15 15:33:16 2009 Cannot allocate TUN/TAP dev dynamically Mon Jun 15 15:33:16 2009 Exiting
Use the kernel tun device like the log says. In /etc/init.d/openvpn it reads: case "$1" in start) echo -n "Starting $DAEMON " /sbin/modprobe tun &>/dev/null for conf in $confdir/*.conf; do [..] I would suggest you put your server conf files in /etc/openvpn and let this init script take care of the rest instead of trying to re-invent the wheel. Theo -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Use the kernel tun device like the log says. In /etc/init.d/openvpn it reads:
case "$1" in start) echo -n "Starting $DAEMON "
/sbin/modprobe tun &>/dev/null
for conf in $confdir/*.conf; do [..]
I would suggest you put your server conf files in /etc/openvpn and let this init script take care of the rest instead of trying to re-invent the wheel.
I restarted, recompiled, and now it's working fine. Thanks, James -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 15 June 2009 21:17:48 James Pifer wrote:
[...] # /usr/local/sbin/openvpn --config myvpn.conf
Why are you not using the openvpn that's part of openSUSE? Andreas -- Andreas Jaeger, Director Platform / openSUSE, aj@suse.de SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
On 15/06/09 15:17, James Pifer wrote:
Hi. I'm trying to create an openvpn connection. When I try to run it as root I get the following output:
# /usr/local/sbin/openvpn --config myvpn.conf
First, use the openSUSE openvpn package, then show us your configuration file. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Andreas Jaeger
-
Boris Epstein
-
Cristian Rodríguez
-
James Pifer
-
Theo van Werkhoven