我在 Debian 服务器上设置了 OpenVPN。客户端可以连接,客户端可以ping和访问服务器上的资源(Samba共享和内网)。
但是,服务器无法 ping 客户端 - 它只是超时。
Client OpenVPN assigned IP: 10.67.15.26
? UDP on 1194
Internet
?
Router port-forwards 1194 to server
?
Server LAN IP: 10.67.5.1
Run Code Online (Sandbox Code Playgroud)
port 1194
proto udp
dev tun
server 10.67.15.0 255.255.255.0
push "route 10.67.5.0 255.255.255.0"
Run Code Online (Sandbox Code Playgroud)
Destination Gateway Genmask Flags Metric Ref Use Iface
10.67.15.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
10.67.15.0 10.67.15.2 255.255.255.0 UG 0 0 0 tun0
10.67.5.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 …
Run Code Online (Sandbox Code Playgroud)