我一直在尝试configurationOpenVPN来侦听多个IPv4地址。 我想实现的是让OpenVPN在所有可用的IP地址上进行监听,并且在此刻执行:
# netstat -tunlp udp 0 0 0.0.0.0:1194 0.0.0.0:* 1955/openvpn
但它只适用于主IP地址,而不适用于另一个IP地址。 我怀疑这是与iptables相关的东西。 这是我的OpenVPNconfiguration如何:
# cat /etc/openvpn/server.conf port 1194 proto udp dev tun sndbuf 0 rcvbuf 0 ca ca.crt cert server.crt key server.key dh dh.pem tls-auth ta.key 0 topology subnet server 10.8.0.0 255.255.255.0 ifconfig-pool-persist ipp.txt push "redirect-gateway def1 bypass-dhcp" push "dhcp-option DNS 8.8.8.8" keepalive 10 120 cipher AES-128-CBC comp-lzo user nobody group nogroup persist-key persist-tun status openvpn-status.log verb 3 crl-verify crl.pem
我使用这个bash脚本安装了OpenVPN: https : //github.com/Nyr/openvpn-install/
我真的很感激,如果你能帮助我,或给我一些什么可能是错误的,以及如何解决它的提示。
谢谢你,萨德·伊斯梅尔