conupefox / autovpn-for-openwrt

Automatically exported from code.google.com/p/autovpn-for-openwrt
1 stars 0 forks source link

HuaWei HG255D Ralink RT3052 安装无法使用dnsmasq #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
环境如下:

主机名           DreamBox
路由器型号 HuaWei HG255D
CPU型号           Ralink RT3052 id:1 rev:3
cpu model       MIPS 24Kc V4.12
CPU主频           384MHz
闪存容量    16M
固件版本    OpenWrt-DreamBox 20120828【trunk+svn】
核心版本    2.6.32.59
本地时间    Fri Mar 7 14:01:45 2014
运行时间    0h 21m 40s
平均负载    0.08, 0.02, 0.01

安装dnsmasq以后无法开启53端口,也无法自动获取ip。
重新编译以后安装正常。花了我3天时间去编译。
已经上传到附件,提供给需要的朋友,让大家少走弯路。

另外pvpn有个bug导致无法正常拨号,vi /usr/bin/pvpn 
在connect_ppp() 函数里,第139行

client_device=`ifconfig |grep -e "tun[0-9]\|pvpn"|cut -d' ' -f 1 >$tempfile ;   
和  i=50 ;  之间加入以下内容

if [ ! -s $tempfile ] ;then echo "pvpn0">$tempfile; fi;

也可以用附近里的直接替换 /usr/bin/pvpn

Original issue reported on code.google.com by c...@3e.vc on 7 Mar 2014 at 2:35

Attachments:

GoogleCodeExporter commented 8 years ago
感谢你的分享,ipk文件我会在合适的时候加入到wiki中
pvpn中的bug可能和你的grep特性有关,想了解下修改了代码后拨
号成功接口名是什么?pvpn0 还是pvpn1?
另外希望能在dreambox的shell做如下测试:
{{{
echo -n  "aaa" >/tmp/test.txt
echo -e  "aaa\nbbb\nccc"|grep -v -f /tmp/test.txt
echo -n "" >/tmp/test.txt
echo -e  "aaa\nbbb\nccc"|grep -v -f /tmp/test.txt
}}}
正常输出结果为:
{{{
bbb
ccc
aaa
bbb
ccc
}}}
如果出错请给出详细信息,谢谢

Original comment by autovpn2014 on 7 Mar 2014 at 3:14

GoogleCodeExporter commented 8 years ago
我自己修改以后,拨号成接口名称一直是 pvpn1

如你所说,确实是grep的问题。

附上grep的测试结果

最后,由衷感谢楼主无私的共享。

翻越防火长城,你可以到达世界上的每一个角落。(Across the 
Great Firewall, you can reach every corner in the world.)

Original comment by c...@3e.vc on 7 Mar 2014 at 3:23

Attachments:

GoogleCodeExporter commented 8 years ago
看来比较老的busybox 的grep不支持空文件,我会尽快修复问题

Original comment by autovpn2014 on 7 Mar 2014 at 3:29

GoogleCodeExporter commented 8 years ago

Original comment by autovpn2014 on 8 Mar 2014 at 1:46