Windows Server 2012 – PPTP VPN和OpenVPN之间的路由

我目前正在尝试在两个build立在Windows Server 2012 VPS上的VPNnetworking之间进行路由。 设置如下:

(Local Machine) 10.19.15.4 <--- OpenVPN (10.19.15.0/24) ---> 10.19.15.1 (Windows Servier 2012 VPS) 192.168.11.145 <--- PPTP 192.168.11/24 ---> 192.168.11.146 (PPTP Endpoint) Has access to 192.168.8.0/24 as well 

现在我想能够从我的本地机器访问192.168.11.0/24192.168.8.0/24networking。

在我的本地机器上,我可以ping通地址10.19.15.1192.168.11.146上的VPS,但是我无法ping PPTP端点192.168.11.145或其内部networking192.168.8.0/24 。 在VPS上运行Wireshark告诉我,这些ping的尝试确实到达VPS。

从VPS我可以ping所有涉及的networking就好了。

要在VPS上启用10.19.15.0/24192.168.11.0/24之间的路由,我尝试了以下方法:

  • 将HKEY_LOCAL_MACHINE \ System \ CurrentControlSet \ Services \ Tcpip \ Parameters \ IPEnableRouter设置为1
  • 使用“路由和远程访问”configuration实用程序设置IPv4路由
    • 启用“局域网和请求拨号路由”的“IPv4路由器”
    • 服务属性中的“IPv4”选项卡上的“启用IPv4转发”
  • 完全禁用Windows防火墙

有没有人有一个想法是什么失踪?

问候,非常感谢!


这是VPS上的路由表:

 C:\Users\Administrator>route print C:\Users\Administrator>route print =========================================================================== Interface List 32...........................*PPTP Interface Name* 18...00 ff 3f 4a 25 03 ......TAP-Windows Adapter V9 12...00 1c 42 77 59 8f ......Parallels Ethernet Adapter 1...........................Software Loopback Interface 1 13...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter 17...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2 19...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3 =========================================================================== IPv4 Route Table =========================================================================== Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 169.254.0.1 *vps public ip* 11 *vps public ip* 255.255.255.255 On-link *vps public ip* 266 10.19.15.0 255.255.255.0 On-link 10.19.15.1 276 10.19.15.1 255.255.255.255 On-link 10.19.15.1 276 10.19.15.255 255.255.255.255 On-link 10.19.15.1 276 127.0.0.0 255.0.0.0 On-link 127.0.0.1 306 127.0.0.1 255.255.255.255 On-link 127.0.0.1 306 127.255.255.255 255.255.255.255 On-link 127.0.0.1 306 192.168.0.0 255.255.255.0 192.168.11.146 192.168.11.145 11 192.168.8.0 255.255.255.0 192.168.11.146 192.168.11.145 11 192.168.11.0 255.255.255.0 192.168.11.146 192.168.11.145 11 192.168.11.145 255.255.255.255 On-link 192.168.11.145 266 *pptp endpoint* 255.255.255.255 169.254.0.1 *vps public ip* 11 224.0.0.0 240.0.0.0 On-link 127.0.0.1 306 224.0.0.0 240.0.0.0 On-link 10.19.15.1 276 224.0.0.0 240.0.0.0 On-link *vps public ip* 266 224.0.0.0 240.0.0.0 On-link 192.168.11.145 266 255.255.255.255 255.255.255.255 On-link 127.0.0.1 306 255.255.255.255 255.255.255.255 On-link 10.19.15.1 276 255.255.255.255 255.255.255.255 On-link *vps public ip* 266 255.255.255.255 255.255.255.255 On-link 192.168.11.145 266 =========================================================================== Persistent Routes: Network Address Netmask Gateway Address Metric 0.0.0.0 0.0.0.0 169.255.30.1 1 0.0.0.0 0.0.0.0 169.254.0.1 1 =========================================================================== IPv6 Route Table =========================================================================== Active Routes: If Metric Network Destination Gateway 12 266 ::/0 fe80::ffff:1:1 1 306 ::1/128 On-link 12 266 2a01:488:66:1000:5af:1121:0:1/128 On-link 18 276 fe80::/64 On-link 12 266 fe80::/64 On-link 12 266 fe80::510d:80bf:24ec:2001/128 On-link 18 276 fe80::90ef:4e06:e063:a503/128 On-link 1 306 ff00::/8 On-link 18 276 ff00::/8 On-link 12 266 ff00::/8 On-link =========================================================================== Persistent Routes: If Metric Network Destination Gateway 0 4294967295 ::/0 fe80::ffff:1:1 =========================================================================== 

为了完整性本地机器上的路由表:

 $ route Kernel IP Routentabelle Ziel Router Genmask Flags Metric Ref Use Iface default giga.cube 0.0.0.0 UG 600 0 0 wlp2s0b1 *vps public ip* giga.cube 255.255.255.255 UGH 600 0 0 wlp2s0b1 10.19.15.0 0.0.0.0 255.255.255.0 U 50 0 0 tap0 192.168.0.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp2s0b1 giga.cube 0.0.0.0 255.255.255.255 UH 600 0 0 wlp2s0b1 192.168.8.0 10.19.15.1 255.255.255.0 UG 50 0 0 tap0 192.168.11.0 10.19.15.1 255.255.255.0 UG 50 0 0 tap0 192.168.124.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0