![Windows 8 VPN 客户端可以正常连接到 UbuntuVNP 服务器,但客户端的 http 不起作用](https://linux22.com/image/852335/Windows%208%20VPN%20%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E4%BB%A5%E6%AD%A3%E5%B8%B8%E8%BF%9E%E6%8E%A5%E5%88%B0%20UbuntuVNP%20%E6%9C%8D%E5%8A%A1%E5%99%A8%EF%BC%8C%E4%BD%86%E5%AE%A2%E6%88%B7%E7%AB%AF%E7%9A%84%20http%20%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8.png)
我已将 Windows 客户端连接到 Ubuntu VPN pptp。我能够从 Windows 客户端访问私有 VPN 网络中的所有服务器,但是当从 Windows 客户端访问互联网时,它可以解析互联网但无法连接到任何站点。浏览器显示..等待网站即谷歌回复. Ubuntu 服务器可以自行连接到互联网。
我的配置:
netstat -rn
:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 172.31.16.1 0.0.0.0 UG 0 0 0 eth0
172.31.16.0 0.0.0.0 255.255.240.0 U 0 0 0 eth0
192.168.0.234 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
root@ip-172-31-21-21:~# ifconfig
eth0 Link encap:Ethernet HWaddr 06:14:08:6a:51:39
inet addr:172.31.21.21 Bcast:172.31.31.255 Mask:255.255.240.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1618 errors:0 dropped:0 overruns:0 frame:0
TX packets:1497 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:327465 (327.4 KB) TX bytes:346070 (346.0 KB)
Interrupt:25
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
ppp0 Link encap:Point-to-Point Protocol
inet addr:192.168.0.1 P-t-P:192.168.0.234 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1396 Metric:1
RX packets:306 errors:0 dropped:0 overruns:0 frame:0
TX packets:401 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:26719 (26.7 KB) TX bytes:212361 (212.3 KB)
iptables -L -n -v
:
Chain INPUT (policy ACCEPT 1125 packets, 103K bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 662 packets, 239K bytes)
pkts bytes target prot opt in out source destination
38 1976 TCPMSS tcp -- ppp+ * 0.0.0.0/0 0.0.0.0/0 tcpflags: 0x17/0x02 TCPMSS set 1356
Chain OUTPUT (policy ACCEPT 1114 packets, 296K bytes)
pkts bytes target prot opt in out source destination
答案1
您需要检查 Windows 配置。您很可能正在使用远程网关,您不想检查它。您只想在访问远程网络上的 IP 时使用 VPN 隧道。