Closed GoogleCodeExporter closed 8 years ago
所以你的問題是,在vpnup.sh進行中,DDWRT甚至你的電腦都有被D
NS poisoned的風險是吧?
Original comment by pahud...@gmail.com
on 3 Jan 2012 at 8:56
[deleted comment]
我現在手邊沒有DDWRT可以測試,但我記得DDWRT裡面有個restart_dn
s命令,你看看執行這個命令是否會強迫clear dnsmasq cache
如果有用的話,你試試看這樣
cd /tmp;wget http://autoddvpn.googlecode.com/svn/trunk/pptp/wget/run.sh &&
/bin/sh run.sh && restart_dns || touch failed
看看是不是有幫助
Original comment by pahud...@gmail.com
on 3 Jan 2012 at 9:04
Thanks, this command works excellently. But the problem is I need the
restart_dns run everytime in the end of vpnup.sh, or next time when it
reconnecting the dns will be poison again - you know when pptp reconnect it
cost several minute. So can we directly put it in the pptp-wget classic mode's
source code? Or is there any way I can insert some shell code in nvram that
runs just after pptp connect?
Original comment by ptp...@gmail.com
on 3 Jan 2012 at 10:03
vpnup.sh最後我加入restart_dns的動作了,請試試看吧!
detail:
http://code.google.com/p/autoddvpn/source/diff?spec=svn544&r=544&format=side&pat
h=/trunk/vpnup.sh
Original comment by pahud...@gmail.com
on 3 Jan 2012 at 10:14
Thanks, verified works well in production situation!
Now the only problem is the wget mode always fallback when click "Apply" in
DD-WRT web interface, that makes all generated file like /tmp/pptp_client/ip-up
revert to original form(before patched by run.sh), but that seems hard to fix,
until there's a way to hook script after Apply.
Anyway, thanks for the fix:) This issue can be close now.
Original comment by ptp...@gmail.com
on 4 Jan 2012 at 9:02
Original comment by pahud...@gmail.com
on 4 Jan 2012 at 9:04
Original issue reported on code.google.com by
ptp...@gmail.com
on 3 Jan 2012 at 8:49