能ping通域名网站,但是不能浏览,为什么?

能ping通域名网站,但是不能浏览,为什么?

有些网站twitter and facebook and youtube在我的国家被屏蔽了,所以我需要使用 VPN 才能访问它们,直到今天我都没有遇到任何问题

问题是我可以 ping 通我提到的所有这些网站(启用 vpn),但我无法浏览它们,chrome or firefox
我用文件设置了我的 DNS resolveconf/head,而且我可以通过 telnet 连接到其中任何一个,telnet twitter.com 80这样我就可以与它们建立 TCP 连接我今天做的唯一更改是关于 wifi 驱动程序,据我所知,它对此没有任何影响(如果有的话告诉我)

还有一些我还没看过的设置吗?!

附言:所有未被屏蔽的网站都运行良好,只有当我使用 VPN 时,那些不应该再被屏蔽的被屏蔽网站才会出现问题(我可以通过它们的域名 ping 它们,但不能用浏览器浏览它们,这真的很有趣!!)

default dev ppp0 proto static scope link metric 50 
default via 192.168.1.1 dev wlp2s0 proto dhcp metric 600 
10.10.0.0 dev ppp0 proto kernel scope link src 10.10.16.225 metric 50 
169.254.0.0/16 dev wlp2s0 scope link metric 1000 
185.180.15.243 via 192.168.1.1 dev wlp2s0 src 192.168.1.120 
185.180.15.243 via 192.168.1.1 dev wlp2s0 proto static metric 600 
192.168.1.0/24 dev wlp2s0 proto kernel scope link src 192.168.1.120 metric 600 
192.168.1.1 dev wlp2s0 proto static scope link metric 600 
192.168.61.0/24 dev vmnet1 proto kernel scope link src 192.168.61.1 
192.168.223.0/24 dev vmnet8 proto kernel scope link src 192.168.223.1

答案1

我搜索了很多关于这个问题的主题,最后终于解决了,问题出在我的 Wlan 卡的 MTU 数据包的大小上,我使用sudo ifconfig wlp2s0 mtu 1200 命令将其减小到 1200(之前的大小是 1500)(wlp2s0 是我的无线网卡),问题就解决了

相关内容