kunlunh / mentohust-wrt

Automatically exported from code.google.com/p/mentohust-wrt
0 stars 0 forks source link

疑是2011/06版本的BUG,请码主关照,谢谢:) #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1. 安装了本站老大编译的版本是17201的版本
2. 
用3322.org动态域名不能自动更新,端口转发也有一些问题,导
致WAN口外的主机不能访问内网DMZ主机
3. 
这个问题google以后也有其他人遇到:http://www.right.com.cn/forum/vi
ewthread.php?tid=51472,看似ddwrt版本的问题

想问问其他人有没有遇到类似的问题?谢谢!

这里的固件很方便,我自己编译过openwrt的,dd的源码一直下��
�不完,不知道这个bug官方会在什么时候修复。

有动态域名还是很方便,可以在路由器上建个vpn用,工作就��
�用拷来考去了:)

谢谢!

Original issue reported on code.google.com by weihua.z...@gmail.com on 29 Sep 2011 at 2:40

GoogleCodeExporter commented 8 years ago
17201版确实有bug,如果你是atheros芯片可以联系我QQ:741451@163.com
,我给你一个15778版的,dd-wrt官方给的源码很难编译出完整固
件的,svn拖下来也没啥用

Original comment by q741...@gmail.com on 30 Sep 2011 at 4:57

GoogleCodeExporter commented 8 years ago
呵呵,多谢多谢!

Original comment by weihua.z...@gmail.com on 30 Sep 2011 at 7:35

GoogleCodeExporter commented 8 years ago
已经收到固件,非常感谢!
Openwrt的配置比较麻烦,而且发现dd的固件,下载最高速度能��
�10M/s,以前用openwrt只能到8M/s,照理说不会啊,呵呵,反正现
在用起来很爽了,家里和办公室可以相互远程了:)

感谢!

Original comment by weihua.z...@gmail.com on 4 Oct 2011 at 4:19

GoogleCodeExporter commented 8 years ago
15778版本可能有不稳定的情况,办公室带的机器较多,30台左�
��,学校实验室,锐捷认证那种,不到24小时会死机,换回1720
1版本就没有问题。看来还得等dd官方升级了,呵呵!

多谢!

Original comment by weihua.z...@gmail.com on 7 Oct 2011 at 3:24

GoogleCodeExporter commented 8 years ago
写了个脚本实现3322.org的更新

WAN_IP=`nvram show | grep 'wan_ipaddr=\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}'`
WANIP=`echo ${WAN_IP/wan_ipaddr=/}`
echo "Connecting 3322.org, setting ddns to: $WANIP"

UID=''
PWD=''
HOSTNAME=''

wget -q -O ipupdate 
"http://$UID:$PWD@members.3322.org/dyndns/update?&hostname=$HOSTNAME&myip=$WANIP
"
ret=`awk '{if($1~/good/ || $1~/nochg/) print $1}' ipupdate|sed -n '1p'`
if [ "$ret"="good" -o "$ret"="nochg" ]; then
  echo "update internet ip $ret: $WANIP"
  logger "update internet ip $ret: $WANIP"
else
  echo "update internet ip failure!"
  logger "update internet ip failure!"
fi

Original comment by weihua.z...@gmail.com on 21 Oct 2011 at 11:18

GoogleCodeExporter commented 8 years ago
因为好多机器没有jffs,脚本没法存入,在开机命令中写了一�
��脚本,开机生成3322更新脚本到/tmp/root供开机和定时更新(cr
ontab)

sleep 30

# start up mentohust
mentohust -uXXXXXX -pXXXXXX -neth0 -a1 -d2 -b1

sleep 5

# generate 3322.sh
echo "" > /tmp/root/3322.sh
echo "WAN_IP=\`nvram show | grep 
'wan_ipaddr=\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}'\`" >> /tmp/root/3322.sh
echo "WANIP=\`echo \${WAN_IP/wan_ipaddr=/}\`" >> /tmp/root/3322.sh
echo "echo \"Connecting 3322.org, setting ddns to: \$WANIP\"" >> 
/tmp/root/3322.sh
echo "" >> /tmp/root/3322.sh
echo "UID='XXXXXX'" >> /tmp/root/3322.sh
echo "PWD='XXXXXX'" >> /tmp/root/3322.sh
echo "HOSTNAME='XXXXXX.3322.org'" >> /tmp/root/3322.sh
echo "" >> /tmp/root/3322.sh
echo "wget -q -O ipupdate 
\"http://\$UID:\$PWD@members.3322.org/dyndns/update?&hostname=\$HOSTNAME&myip=\$
WANIP\"" >> /tmp/root/3322.sh
echo "ret=\`awk '{if(\$1~/good/ || \$1~/nochg/) print \$1}' ipupdate|sed -n 
'1p'\`" >> /tmp/root/3322.sh
echo "if [ \"\$ret\"=\"good\" -o \"\$ret\"=\"nochg\" ]; then" >> 
/tmp/root/3322.sh
echo "  echo \"update internet ip \$ret: \$WANIP\"" >> /tmp/root/3322.sh
echo "  logger \"update internet ip \$ret: \$WANIP\"" >> /tmp/root/3322.sh
echo "else" >> /tmp/root/3322.sh
echo "  echo \"update internet ip failure!"\" >> /tmp/root/3322.sh
echo "  logger \"update internet ip failure!"\" >> /tmp/root/3322.sh
echo "fi" >> /tmp/root/3322.sh
chmod 777 /tmp/root/3322.sh

# refresh ddns 3322.org
/tmp/root/3322.sh

Original comment by weihua.z...@gmail.com on 21 Oct 2011 at 11:19