Debian 6 上的 OpenVPN 无法启动

Debian 6 上的 OpenVPN 无法启动

我多次在我的 Deabian 6 VPS(使用 OpenVZ)上配置了 openvpn,但总是停留在“启动虚拟专用网络守护程序:客户端服务器失败!”

系统日志表明 tun/tan 似乎存在问题,但我无法解决该问题:

Jan 14 17:00:05 netherlands ovpn-server[7359]: OpenVPN 2.1.3 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [MH] [PF_INET6] [eurephia] built on Jun  6 2013
Jan 14 17:00:05 netherlands ovpn-server[7359]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Jan 14 17:00:05 netherlands ovpn-server[7359]: Diffie-Hellman initialized with 1024 bit key
Jan 14 17:00:05 netherlands ovpn-server[7359]: WARNING: file 'netherlands.key' is group or others accessible
Jan 14 17:00:05 netherlands ovpn-server[7359]: /usr/bin/openssl-vulnkey -q -b 1024 -m <modulus omitted>
Jan 14 17:00:05 netherlands ovpn-server[7359]: TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Jan 14 17:00:05 netherlands ovpn-server[7359]: Socket Buffers: R=[245760->131072] S=[245760->131072]
Jan 14 17:00:05 netherlands ovpn-server[7359]: ROUTE: default_gateway=UNDEF
Jan 14 17:00:05 netherlands ovpn-server[7359]: Note: Cannot open TUN/TAP dev /dev/net/tun: Operation not permitted (errno=1)
Jan 14 17:00:05 netherlands ovpn-server[7359]: Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Jan 14 17:00:05 netherlands ovpn-server[7359]: Cannot allocate TUN/TAP dev dynamically
Jan 14 17:00:05 netherlands ovpn-server[7359]: Exiting

有人可以帮我吗?

答案1

使用 OpenVZ 的 VPS 上没有 tun 模块。可以通过检查 -folder 是否存在/dev/net/tunmodprobe tun- 来进行测试,如果模块不可用,您将收到致命错误FATAL: Module tun not found。必须在 OpenVZ 中激活 tun 模块。您可以向托管商报告此问题,也可以查看其他文章,例如 OpenVZ Wiki 中的文章:http://wiki.openvz.org/VPN_via_the_TUN/TAP_device

相关内容