我在configurationDebian 5 32位OpenVPN服务器和Windows 7 64位客户端时遇到问题。
我可以从我的Windows客户端连接到服务器成功,但是当我去显示我的IP地址的网站,我得到我的本地IP地址,而不是我的服务器。 我应该怎么做隐藏我的本地IP地址?
这是我的服务器的configuration文件:
port 1194 proto udp dev tun ca ca.crt cert server.crt key server.key dh dh1024.pem server 172.17.0.0 255.255.255.0 ifconfig-pool-persist ipp.txt keepalive 10 120 comp-lzo user nobody group users persist-key persist-tun status openvpn-status.log verb 3
这里的Windows客户端的configuration(从这里下载http://openvpn.net/index.php/open-source/downloads.html ):
client dev tun proto udp remote server.com 1194 resolv-retry infinite nobind persist-key persist-tun ca ca.crt cert ferdo_key.crt key ferdo_key.key comp-lzo verb 3
你需要这样做:
http://openvpn.net/index.php/open-source/documentation/howto.html#redirect
具体的服务器指令是:
push "redirect-gateway def1"
基本上,服务器需要将路由configuration推送到客户端。 此路由configuration将更改客户端的默认路由,以便非本地stream量将通过VPN隧道而不是LAN。
请注意,您需要使用pipe理权限运行OpenVPN客户端才能使其工作。 否则,客户端程序将无法更改Windows机器的路由表。