OpenVPN的作品,但其他连接到服务器绕过VPN

我的客户机(Windows 7)连接到服务器的(Ubuntu)的OpenVPN罚款,但是当我想访问服务器的网站,这些连接不通过VPN路由…如何修改?

我认为你可以考虑在你的OpenVPNconfiguration中添加push“redirect-gateway”选项。

# If enabled, this directive will configure # all clients to redirect their default # network gateway through the VPN, causing # all IP traffic such as web browsing and # and DNS lookups to go through the VPN # (The OpenVPN server machine may need to NAT # the TUN/TAP interface to the internet in # order for this to work properly). # CAVEAT: May break client's network config if # client's local DHCP server packets get routed # through the tunnel. Solution: make sure # client's local DHCP server is reachable via # a more specific route than the default route # of 0.0.0.0/0.0.0.0. push "redirect-gateway" 

问候。