I have tried the past few hours to get OpenVPN to work on my Centos 4.9 on a Virtuozzo VPS.
I request your advice to get this up and running on a Virtuozzo VPS
1. What happens when you execute cat /dev/net/tun?
2. What is the best way to test that the provider has done their part correctly?
3. What should the OpenVpn server.conf file look like?
Here are some of my actions and results so far...
My provider has assured me that the tun/tap device is enabled for my VPS container.
The OpenVPN loopback client server tests all pass.
When I try to configure a OpenVPN server with
I get the messages
OpenVPN 2.2.0 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] [eurephia] built on Jun 6 2011
Diffie-Hellman initialized with 1024 bit key
TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Socket Buffers: R=[137216->131072] S=[137216->131072]
Note: Cannot open TUN/TAP dev /dev/net/tun: Permission denied (errno=13)
Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Cannot allocate TUN/TAP dev dynamically
I have read posts saying that I should be able to execute
cat: /dev/net/tun: File descriptor in bad state
but I get
cat: /dev/net/tun: Permission denied
What do you get?
Also, I followed the OpenVPN How To doc and configured the server.conf starting from the provided sample.
What should a server.conf look like for a Virtuozzo VPS?
Here are the active settings I have in my server.conf
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 10.8.0.1"
Last edited by dispersion; 06-08-2011 at 01:29 AM.