Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcp vpn unable access www.youtube.com and *.google.com #7

Open
aliasmee opened this issue Mar 29, 2019 · 2 comments
Open

gcp vpn unable access www.youtube.com and *.google.com #7

aliasmee opened this issue Mar 29, 2019 · 2 comments

Comments

@aliasmee
Copy link
Owner

最近发现搭建的wpn服务可以正常连接,并其它域名网站可以正常访问。唯独google.com 和youtube.com等无法访问,在服务器上抓包.如下:

# tcpdump dst www.youtube.com -vv
listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
07:07:56.915331 IP vpn-gateway.us-east1-b.c.hi42-top.internal > vl-in-f91.1e100.net: ICMP vpn-gateway.us-east1-b.c.hi42-top.internal unreachable - need to frag (mtu 1390), length 556
07:07:59.406171 IP 10.28.0.1.61892 > vl-in-f91.1e100.net.https: Flags [P.], seq 2756170666:2756171183, ack 3058157051, win 4128, options [nop,nop,TS val 944073215 ecr 3412000605], length 517
07:07:59.406309 IP vpn-gateway.us-east1-b.c.hi42-top.internal.61892 > vl-in-f91.1e100.net.https: Flags [P.], seq 2756170666:2756171183, ack 3058157051, win 4128, options [nop,nop,TS val 944073215 ecr 3412000605], length 517

unreachable - need to frag (mtu 1390) ,有两种解决方法:

ifconfig eth0 mtu 1500

之后就正常了,继续观察下。

参考gcloud平台的介绍
如果VPN网关的mtu为1460(默认),那么客户端的mtu值要小它70.即 1460-70=1390.

@DGideas
Copy link

DGideas commented Nov 27, 2019

感谢,当时遇到同样的问题,通过修改MTU值解决了

@aliasmee
Copy link
Owner Author

感谢,当时遇到同样的问题,通过修改MTU值解决了

@DGideas 客气咯。😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants