{"action":"opened","issue":{"url":"https://api.github.com/repos/clowwindy/ShadowVPN/issues/92","labels_url":"https://api.github.com/repos/clowwindy/ShadowVPN/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/clowwindy/ShadowVPN/issues/92/comments","events_url":"https://api.github.com/repos/clowwindy/ShadowVPN/issues/92/events","html_url":"https://github.com/clowwindy/ShadowVPN/issues/92","id":56698806,"number":92,"title":"ShadowVPN 不能使用，求排查问题方法","user":{"login":"70599","id":5929170,"avatar_url":"https://avatars.githubusercontent.com/u/5929170?v=3","gravatar_id":"","url":"https://api.github.com/users/70599","html_url":"https://github.com/70599","followers_url":"https://api.github.com/users/70599/followers","following_url":"https://api.github.com/users/70599/following{/other_user}","gists_url":"https://api.github.com/users/70599/gists{/gist_id}","starred_url":"https://api.github.com/users/70599/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/70599/subscriptions","organizations_url":"https://api.github.com/users/70599/orgs","repos_url":"https://api.github.com/users/70599/repos","events_url":"https://api.github.com/users/70599/events{/privacy}","received_events_url":"https://api.github.com/users/70599/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-05T17:07:39Z","updated_at":"2015-02-05T17:07:39Z","closed_at":null,"body":"症状：所有国外网站等待一段时间后连接被重置。\r\n方案是@aa65535的plan6。\r\nchinadns的上游服务器是：isp dns,8.8.8.8\r\nShadowVPN的mtu：服务端1448、客户端1440\r\n\r\n\r\n已参考 https://github.com/clowwindy/ShadowVPN/wiki/FAQ 的 5.general diagnose steps:\r\n\r\non client ping server real IP\r\n正常。\r\n\r\non client ping server VPN IP 10.7.0.1\r\n正常。\r\n\r\non client traceroute 8.8.8.8 make sure it goes through 10.7.0.1\r\n第一跳就是10.7.0.1。\r\n\r\non client ping 8.8.8.8; on server sudo tcpdump -i tun0 see if any packet arrives\r\n运行tcpdump -i tun0后，刷出大量来自 10.7.0.2（客户端VPN IP）的信息。\r\n\r\nyou can also run sudo tcpdump host 8.8.8.8 or sudo tcpdump port 53 etc on the client or server\r\n在客户端试图打开国外域名，服务端运行tcpdump host 8.8.8.8，看起来有相应的反应。\r\n\r\non server netstat -nr and ifconfig check if your wan is eth0 if not, update server_*.sh\r\nifconfig中eth0的ip是VPS的公网IP。\r\n\r\non client netstat -nr and ifconfig check if your lan is eth0. if not, update client_*.sh\r\n这一步不太确定，ifconfig结果是：\r\nbr-lan Link encap:Ethernet HWaddr 10:6F:3F:29:70:CA\r\ninet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0\r\nUP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r\nRX packets:63127 errors:0 dropped:131 overruns:0 frame:0\r\nTX packets:65064 errors:0 dropped:0 overruns:0 carrier:0\r\ncollisions:0 txqueuelen:0\r\nRX bytes:17314018 (16.5 MiB) TX bytes:44819022 (42.7 MiB)\r\n\r\neth0 Link encap:Ethernet HWaddr 10:6F:3F:29:70:CA\r\nUP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r\nRX packets:63773 errors:0 dropped:132 overruns:0 frame:0\r\nTX packets:65122 errors:0 dropped:0 overruns:0 carrier:0\r\ncollisions:0 txqueuelen:1000\r\nRX bytes:18216299 (17.3 MiB) TX bytes:44556618 (42.4 MiB)\r\nInterrupt:4\r\n\r\neth1 Link encap:Ethernet HWaddr 10:6F:3F:29:70:CC\r\nUP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r\nRX packets:54793 errors:0 dropped:0 overruns:0 frame:0\r\nTX packets:63932 errors:0 dropped:0 overruns:0 carrier:0\r\ncollisions:0 txqueuelen:1000\r\nRX bytes:40773653 (38.8 MiB) TX bytes:18579083 (17.7 MiB)\r\nInterrupt:5\r\n\r\nlo Link encap:Local Loopback\r\ninet addr:127.0.0.1 Mask:255.0.0.0\r\nUP LOOPBACK RUNNING MTU:65536 Metric:1\r\nRX packets:5785 errors:0 dropped:0 overruns:0 frame:0\r\nTX packets:5785 errors:0 dropped:0 overruns:0 carrier:0\r\ncollisions:0 txqueuelen:0\r\nRX bytes:548628 (535.7 KiB) TX bytes:548628 (535.7 KiB)\r\n\r\npppoe-wan Link encap:Point-to-Point Protocol\r\ninet addr:10.23.115.26 P-t-P:10.23.0.1 Mask:255.255.255.255\r\nUP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1\r\nRX packets:52861 errors:0 dropped:0 overruns:0 frame:0\r\nTX packets:62002 errors:0 dropped:0 overruns:0 carrier:0\r\ncollisions:0 txqueuelen:3\r\nRX bytes:39494731 (37.6 MiB) TX bytes:17157113 (16.3 MiB)\r\n\r\ntun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00\r\ninet addr:10.7.0.2 P-t-P:10.7.0.2 Mask:255.255.255.0\r\nUP POINTOPOINT RUNNING NOARP MULTICAST MTU:1440 Metric:1\r\nRX packets:206 errors:0 dropped:0 overruns:0 frame:0\r\nTX packets:2805 errors:0 dropped:0 overruns:0 carrier:0\r\ncollisions:0 txqueuelen:500\r\nRX bytes:28250 (27.5 KiB) TX bytes:213823 (208.8 KiB)\r\n\r\nwlan0 Link encap:Ethernet HWaddr 10:6F:3F:29:70:CA\r\nUP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r\nRX packets:1147 errors:0 dropped:0 overruns:0 frame:0\r\nTX packets:1412 errors:0 dropped:0 overruns:0 carrier:0\r\ncollisions:0 txqueuelen:1000\r\nRX bytes:178347 (174.1 KiB) TX bytes:461178 (450.3 KiB)\r\n\r\n\r\n请问我哪里可能出了问题？需要怎样解决？谢谢。"}}