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.
Also - I'm running the new 2.6.24 kernel and openvpn does work in the host environment.
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
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
Hi, you need CAP_NET_ADMIN capability inside VE. vzctl set VEID --capability net_admin:on --save