在CentOS 7上安装并连接了openvpn客户端之后,客户机(webserver)向下查找外部连接。所以我无法通过远程连接连接到网站。
有人想办法解决这个问题吗?
xx.xx.0.0 =服务器IP范围
10.8.0.0 = VPN IP范围
路线(已禁用openvpn)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default gateway 0.0.0.0 UG 100 0 0 eth0
xx.xx.0.0 0.0.0.0 255.255.0.0 U 100 0 0 eth0路由(已启用openvpn客户端)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.8.0.29 128.0.0.0 UG 0 0 0 tun0
default gateway 0.0.0.0 UG 100 0 0 eth0
vpn-srv-name gateway 255.255.255.255 UGH 0 0 0 eth0
10.8.0.1 10.8.0.29 255.255.255.255 UGH 0 0 0 tun0
10.8.0.29 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
128.0.0.0 10.8.0.29 128.0.0.0 UG 0 0 0 tun0
xx.xx.0.0 0.0.0.0 255.255.0.0 U 100 0 0 eth0客户端openvpn.conf:
client
dev tun
proto udp
remote vpn-srv-name 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ns-cert-type server
comp-lzo
verb 3发布于 2016-08-29 13:47:10
在openvpn服务器配置中,我更改了以下一行:推送“重定向网关def1”
对此:推动“重定向-私密”
解决了问题,删除了重复的网关,但是我无法在客户端之间连接。为了解决这个问题,我将下面的行添加到服务器配置中:
推动“10.8.0.0号路线255.255.0.0号”
发布于 2016-08-29 12:59:03
将redirect-private添加到openvpn.conf
https://serverfault.com/questions/799735
复制相似问题