Hello,
I try to configure open vpn on a virtual server. I ordered a tun device (/dev/net/tun) which has the following permissions:
crw-r--r-- 1 root root 10, 200 Sep 8 11:59 tun
In ifconfig the tun device is listed as follows
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.241.38.1 P-t-P:10.241.38.2 Mask:255.255.255.255
UP POINTOPOINT NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
When i start the OpenVPN server I get the following error message in syslog
read from TUN/TAP : File descriptor in bad state (code=77)
My server is configured as listed below:
port 1194
proto udp
dev tun
ca ./keys/ca.crt
cert ./keys/server.crt
key ./keys/server.key # This file should be kept secret
dh ./easy-rsa2/keys/dh1024.pem
server 10.241.38.0 255.255.255.0
ifconfig-noexec
route-noexec
keepalive 10 120
comp-lzo
user openvpn
group openvpn
persist-key
status openvpn-status.log
verb 6
I have no idea how I can solve it. I was already in contact with my hosting provider but they now also do not know how to solve the issue with error code 77.
thanks for your support
Best Regards
Florian