我正在公共场所使用本教程http://tipupdate.com/how-to-install-openvpn-on-ubuntu-vps/在我的VPS上为自己设置OpenVPN服务器。
但是,每当我尝试启动服务器时,它都会给我这个机会,
root@vps:~# /etc/init.d/openvpn start
* Starting virtual private network daemon(s)... * Autostarting VPN 'server' [fail]
日志包含此
Tue Dec 11 10:53:32 2012 Diffie-Hellman initialized with 1024 bit key
Tue Dec 11 10:53:32 2012 /usr/bin/openssl-vulnkey -q -b 1024 -m <modulus omitted>
Tue Dec 11 10:53:33 2012 TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Tue Dec 11 10:53:33 2012 ROUTE: default_gateway=UNDEF
Tue Dec 11 10:53:33 2012 Note: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)
Tue Dec 11 10:53:33 2012 Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Tue Dec 11 10:53:33 2012 Cannot allocate TUN/TAP dev dynamically
Tue Dec 11 10:53:33 2012 Exiting
因此,很明显,这与调优有关,但我不知道如何解决。
谢谢!
modprobe tun
Debian Jessie为我做到了。