在Window Server 2008 R2上为客户端configurationOpenVPN可以连接服务器的Lannetworking

我在Windows Server 2008 R2上安装了openvpn 2.1。 我的服务器有2个networking适配器。

第一个适配器连接到互联网。 (默认网关在这里)

第二个适配器连接到局域网。 ip 10.11.11.243子网掩码255.255.255.128

这是我的服务器configuration:

port 1234 proto udp dev tun ca "ca.crt" cert "server.crt" key "server.key" dh "dh1024.pem" server 10.8.0.0 255.255.255.0 ifconfig-pool-persist ipp.txt push "route 10.11.11.0 255.255.255.0" client-to-client keepalive 10 120 comp-lzo persist-key persist-tun status openvpn-status.log verb 3 

我的服务器启动正常,它得到了vpn ip:10.8.0.1

我的客户端通过服务器的互联网IP连接并且连接了IP 10.8.0.10

但是我不能连接服务器局域网中的其他计算机。 不能连接到任何10.11.11.x IP。

我怎样才能configuration我的客户端服务器可以连接到10.11.11.x服务器局域网?

我想你应该尝试在两个接口之间启用路由。

要做到这一点:

打开Windowsregistry并导航到:

 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters 

然后设置以下registry值:

 Value Name: IPEnableRouter Value type: REG_DWORD Value Data: 1