OpenVPN Setup - Service Won't Start

Posted by Lenwood on Server Fault See other posts from Server Fault or by Lenwood
Published on 2012-04-15T22:33:05Z Indexed on 2012/04/15 23:32 UTC
Read the original article Hit count: 291

Filed under:
|
|

I'm in the process of setting up OpenVPN on a VPS running Debian 6. I've walked step-by-step through this guide twice now, and I can't get the service to start. When I start the service, the error reported in the log file is:

Cannot ioctl TUNSETIFF tun: Inappropriate ioctl for device (errno=25)

I've searched the web a few times and I'm not finding anything helpful. I've tried:

  • Changing file permissions: no change
  • Deleting the file: get an error stating no file found (errno=2)
  • Making a folder named "tun": get an error stating no file found (errno=2)

I've wiped my installation and completed the steps verbatim twice now. I get no errors along the way, just the error above within my log file. The contents of my server.conf file are listed below, minus all the comments for brevity. Can anyone help?

port 1194
proto udp
dev tun
ca ca.crt
cert myserver.crt
key myserver.key
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
log         openvpn.log
verb 3

© Server Fault or respective owner

Related posts about debian

Related posts about vps