Open GoogleCodeExporter opened 9 years ago
dnsmasq_options 有無設置好facebook.com? 否則會被劫持。
nslookup www.facebook.com 獲得IP多少?
Original comment by pahud...@gmail.com
on 15 Jul 2011 at 1:47
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 38 byte packets
1 172.31.183.1 (172.31.183.1) 1874.948 ms 258.935 ms 199.881 ms
2 * *^C
root@buffalo:~# ping 172.31.183.1 <-- VPN Gateway
PING 172.31.183.1 (172.31.183.1): 56 data bytes
64 bytes from 172.31.183.1: seq=0 ttl=64 time=1664.798 ms
64 bytes from 172.31.183.1: seq=2 ttl=64 time=200.391 ms
64 bytes from 172.31.183.1: seq=3 ttl=64 time=210.186 ms
^C
--- 172.31.183.1 ping statistics ---
5 packets transmitted, 3 packets received, 40% packet loss
round-trip min/avg/max = 200.391/691.791/1664.798 ms
root@buffalo:~# traceroute www.facebook.com
traceroute to www.facebook.com (69.171.224.13), 30 hops max, 38 byte packets
1 116.23.184.1 (116.23.184.1) 16.747 ms 5.556 ms 5.908 ms
2 121.8.109.205 (121.8.109.205) 5.799 ms 5.020 ms 6.083 ms
3 61.144.0.193 (61.144.0.193) 5.430 ms 7.739 ms 3673.675 ms
4 61.144.3.30 (61.144.3.30) 5.292 ms 6.089 ms 6.331 ms
Original comment by yefe...@gmail.com
on 15 Jul 2011 at 1:51
dnsmasq_options 按其中一份文档的设置
Original comment by yefe...@gmail.com
on 15 Jul 2011 at 1:54
Attachments:
注意一下你的dnsmasq_options address=/www.facebook.com/66.220.149.25
表示讓dnsmasq強迫解析www.facebook.com 為A記錄 66.220.149.25
但你traceroute www.facebook.com 得到並不是這個IP, 表示
1. 你的DDWRT dnsmasq服務沒有跑起來
2. dnsmasq_options 內容寫錯了,不該折行的地方折行了
3. 你的電腦沒有設置DDWRT這台為DNS server
Original comment by pahud...@gmail.com
on 15 Jul 2011 at 2:12
[deleted comment]
我刚才是对facebook的IP改了一下试试,现在的情况是:
traceroute to www.facebook.com (66.220.149.25), 30 hops max, 38 byte packets
1 172.31.183.1 (172.31.183.1) 73.497 ms 77.497 ms 79.782 ms
2 * * * *
3 * * * *
可能是PPTP设置问题。
我现在把服务器IP或DNS名称,由网址改成IP
然后用Mac连上PPTP得到
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1438
inet 172.31.183.85 --> 172.31.183.1 netmask 0xffff0000
在dd里面把mask改成255.255.0.0
Original comment by yefe...@gmail.com
on 15 Jul 2011 at 2:17
在dd里面把mask改成255.255.0.0
为什么mask变成 255.255.255.255 ??
ppp1 Link encap:Point-to-Point Protocol
inet addr:172.31.183.81 P-t-P:172.31.183.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1438 Metric:1
RX packets:170 errors:0 dropped:0 overruns:0 frame:0
TX packets:1396 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:29724 (29.0 KiB) TX bytes:97662 (95.3 KiB)
Original comment by yefe...@gmail.com
on 15 Jul 2011 at 2:25
还是上不了,郁闷。。。。。
我发现在mac上,直接连接VPN是能上facebook的。
traceroute to www.facebook.com (69.171.224.40), 64 hops max, 52 byte packets
1 172.31.183.1 (172.31.183.1) 28.485 ms 30.364 ms 29.813 ms
2 * *
但斯通过路由之后,就变成
traceroute to www.facebook.com (66.220.149.25), 64 hops max, 52 byte packets
1 buffalo (192.168.11.1) 0.688 ms 0.427 ms 0.386 ms
2 * * *
3 * *
上不了。。。。。。
Original comment by yefe...@gmail.com
on 15 Jul 2011 at 2:39
如果你是PPTP模式的話注意幾個重點
1. PPTP SERVER要用IP
2. netmask一般都是255.255.255.0也就是class C
然後autoddvpn跑起來之後,你可以在DDWRT裡面做traceroute 例如
root@DD-WRT:~# traceroute www.facebook.com
traceroute to www.facebook.com (66.220.149.25), 30 hops max, 38 byte packets
1 10.9.10.1 (10.9.10.1) 55.566 ms 55.725 ms 55.674 ms
先確定DDWRT本身路由正常吧
Original comment by pahud...@gmail.com
on 15 Jul 2011 at 2:48
1 PPTP 已经用IP了
2 netmask 已经改成 255.255.255.0
下面是在dd里面的结果
traceroute to www.facebook.com (66.220.149.25), 30 hops max, 38 byte packets
1 172.31.183.1 (172.31.183.1) 33.714 ms 29.590 ms 29.885 ms
2 * * *
3 * * *
Original comment by yefe...@gmail.com
on 15 Jul 2011 at 3:00
PPTP 设置
Original comment by yefe...@gmail.com
on 15 Jul 2011 at 3:01
Attachments:
OK所以你在DD裡面traceroute www.facebook.com已經會走PPTP VPN了
但Mac透過DD出去 traceroute卻不會嗎?
Original comment by pahud...@gmail.com
on 15 Jul 2011 at 3:05
Mac 连接的装态
Original comment by yefe...@gmail.com
on 15 Jul 2011 at 3:06
Attachments:
[deleted comment]
你的DDWRT看起來工作正常了,你的Mac只要正常透過DDWRT出去應�
��就OK了,Mac本身不需要再撥號PPTP了。DDWRT打開DHCP,
讓Mac取得DHCP IP,並且Mac自動設置DDWRT為gateway and DNS
server即可。
Original comment by pahud...@gmail.com
on 15 Jul 2011 at 3:08
嗯,Mac自動設置DDWRT為gateway and DNS server
但是指定的域名走不了VPN通道
traceroute to www.facebook.com (66.220.149.25), 64 hops max, 52 byte packets
1 buffalo (192.168.11.1) 0.688 ms 0.427 ms 0.386 ms
2 * * *
3 * *
在MAC上,DNS解析没错,但连 *.google.com
都开不了,估计是想走VPN,又不通造成的。。。。
Original comment by yefe...@gmail.com
on 15 Jul 2011 at 3:15
Mac上traceroute到國內域名就沒問題是嗎?
Original comment by pahud...@gmail.com
on 15 Jul 2011 at 3:32
今早起床,reboot路由,成功翻墙!!!
刚才还在想,是不是由于jffs没有写入权限,我把文件放在了/
tmp/fuckgfw 所造成的。证实与此无关。
我已经把dd升到DD-WRT v24SP2-AP-TW (05/25/11) std (SVN revision 17135)
但只有dev和tmp有写入权限,而且GUI没有开启jffs的地方,只能�
��SSH开。
而且由于每次重启,都会删除我添加的文件,所以我在启动��
�地方保存了以下指令。
Original comment by yefe...@gmail.com
on 16 Jul 2011 at 2:46
Attachments:
哈哈很不錯哦,恭喜你!!
Original comment by pahud...@gmail.com
on 16 Jul 2011 at 5:53
Original issue reported on code.google.com by
yefe...@gmail.com
on 15 Jul 2011 at 12:58