Hi,
On the HN, tun module is loaded :
# lsmod | grep tun
tun 10148 2 vzrst,vzcpt
The container use the tun/tap device (http://www.biogeogen.com/?p=43) :
# ls -l /dev/net
total 0
crw------- 1 root root 10, 200 Aug 8 19:21 tun
OpenVPN is configured inside of the virtual node :
# egrep -v "^$|^#|^;" server.conf
port 443
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
user openvpn
group openvpn
persist-key
persist-tun
status openvpn-status.log
verb 3
However, when I run "openvpn server.conf" I get this error:
Sun Aug 8 21:12:14 2010 OpenVPN 2.1_rc11 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on Sep 18 2008
Sun Aug 8 21:12:14 2010 Diffie-Hellman initialized with 1024 bit key
Sun Aug 8 21:12:14 2010 /usr/bin/openssl-vulnkey -q -b 1024 -m <modulus omitted>
Sun Aug 8 21:12:14 2010 TLS-Auth MTU parms [ L:1544 D:140 EF:40 EB:0 ET:0 EL:0 ]
Sun Aug 8 21:12:14 2010 ROUTE default_gateway=192.0.2.1
Sun Aug 8 21:12:14 2010 Note: Cannot ioctl TUNSETIFF tun: Operation not permitted (errno=1)
Sun Aug 8 21:12:14 2010 Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Sun Aug 8 21:12:14 2010 Cannot allocate TUN/TAP dev dynamically
Sun Aug 8 21:12:14 2010 Exiting
How can I fix it ?
Thanks in advance for any help
[Updated on: Mon, 09 August 2010 12:37]
Report message to a moderator