OpenVZ Forum - RDF feed
type: channel
items: Problem with OpenVPN in VE
items: Re: Problem with OpenVPN in VE

Problem with OpenVPN in VE
type: item
description: I can't seem to get OpenVPN to work under OpenVZ. I get this error in the logs. Sat Mar 8 09:53:25 2008 us=186253 OpenVPN 2.1_rc4 x86_64-redhat-linux-gnu [SSL] [LZO2] [EPOLL] built on Apr 26 2007 Sat Mar 8 09:53:25 2008 us=188675 Diffie-Hellman initialized with 1024 bit key Sat Mar 8 09:53:25 2008 us=189009 WARNING: file 'server.key' is group or others accessible Sat Mar 8 09:53:25 2008 us=189293 TLS-Auth MTU parms [ L:1544 D:140 EF:40 EB:0 ET:0 EL:0 ] Sat Mar 8 09:53:25 2008 us=189560 TUN/TAP device tun0 opened Sat Mar 8 09:53:25 2008 us=189589 Note: Cannot set tx queue length on tun0: Operation not permitted (errno=1) Sat Mar 8 09:53:25 2008 us=189615 /sbin/ip link set dev tun0 up mtu 1500 SIOCSIFMTU: No such device Sat Mar 8 09:53:25 2008 us=193366 Linux ip link set failed: shell command exited with error status: 255 Sat Mar 8 09:53:25 2008 us=193407 Exiting I know nothing about OpenVPN. This is for someone else's use. hoping for a quick and easy fix.
creator: mperkel
date: 2008-03-08T17:55:34-00:00

Re: Problem with OpenVPN in VE
type: item
description: Also - I'm running the new 2.6.24 kernel and openvpn does work in the host environment.
creator: mperkel
date: 2008-03-08T20:08:34-00:00

Re: Problem with OpenVPN in VE
type: item
description: Hi, 1. Are there another error messages or something? 2. What parameters do you use to start openvpn? P.S. I suppose you've read this article http://wiki.openvz.org/VPN_via_the_TUN/TAP_device P.P.S. Actually I also know not so much about OpenVPN
creator: maratrus
date: 2008-03-10T13:04:25-00:00

Re: Problem with OpenVPN in VE
type: item
description: Quote: Sat Mar 8 09:53:25 2008 us=189589 Note: Cannot set tx queue length on tun0: Operation not permitted (errno=1) 1. Create in VE device /dev/net/tun # ls -l /dev/net/tun crw------- 1 root root 10, 200 Feb 20 10:38 /dev/net/tun 2. Add to VE config file: DEVICES="c:10:200:rw " 3. Restart VE
creator: lystor
date: 2008-03-11T15:00:13-00:00

Re: Problem with OpenVPN in VE
type: item
description: Hi, you need CAP_NET_ADMIN capability inside VE. vzctl set VEID --capability net_admin:on --save
creator: maratrus
date: 2008-03-12T07:40:34-00:00