扫描二维码关注官方公众号
返回列表 发布新帖

内牛满面呀,路由器上开论坛

3233 1
发表于 2010-2-21 21:08:43 | 显示全部楼层 阅读模式

来吧兄弟,一起玩一起讨论!

您需要 登录 才可以下载或查看,没有账号?注册

×
自从在《微型计算机》2010年2月下 看到了《让无线路由器变身b&t下载》后就一直想法实现。但我首先要实现的不是b&t下载功能,而是网站功能。因为网站初期流量不大,可以很好的实现网站、论坛或博客功能(就是不能断电,一断电,又得重新设置,很烦)。看过了很多技术性文章,都太烦,对于我就种初学linux的新手来说,过于高深了。正好在http://www.dualwan.cn/上看见了修改过的tomato固件,正好满足了我的愿望,现在来分享一下。

首先下载 2010-02-12 | 1.23.0441 版发布(虎年新春版) http://www.dualwan.cn/index.php/download/category/12-1.23,最新更新的,功能很多,分2个大类,有 8M的,也有4M的。而我的520GU是4M的,也是ND版的。而我的另一款500GP就可以使用完全的8M固件版,非ND版。于是我开始刷新固件,这对于我来说不是难事。固件刷新好了,要加载USB驱动。
加载开机脚本
  1. modprobe usbcore
  2. modprobe scsi_mod
  3. modprobe ehci-hcd
  4. modprobe sd_mod
  5. modprobe usb-storage
  6. sleep 1
  7. modprobe jbd
  8. modprobe ext3
  9. sleep 3
  10. mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt
  11. mount -o bind /mnt/opt /opt
  12. sleep 3
  13. /opt/bin/busybox swapon /mnt/swapfile
  14. sleep 3
  15. /opt/etc/init.d/S08samba
  16. /opt/etc/init.d/S80lighttpd start
复制代码
加载防火墙脚本:
  1. iptables -I INPUT -p udp --dport 9527 -j ACCEPT
  2. iptables -I INPUT -p tcp --dport 9527 -j ACCEPT
  3. iptables -I INPUT -p udp --dport 9528 -j ACCEPT
  4. iptables -I INPUT -p tcp --dport 9528 -j ACCEPT
  5. iptables -I INPUT -p udp --dport 9529 -j ACCEPT
  6. iptables -I INPUT -p tcp --dport 9529 -j ACCEPT
  7. iptables -I INPUT -p udp --dport 12180 -j ACCEPT
  8. iptables -I INPUT -p tcp --dport 12180 -j ACCEPT
  9. iptables -I INPUT -p udp --dport 15268 -j ACCEPT
  10. iptables -I INPUT -p tcp --dport 15268 -j ACCEPT
  11. iptables -I INPUT -p udp --dport 65521:65530 -j ACCEPT
  12. iptables -I INPUT -p tcp --dport 65521:65530 -j ACCEPT
  13. iptables -I INPUT -p udp --dport 6788 -j ACCEPT
  14. iptables -I INPUT -p tcp --dport 6788 -j ACCEPT
  15. iptables -I INPUT -p tcp --dport 8888 -j ACCEPT
复制代码
加载好了驱动,得要加点应用软件吧,也有人帮我想到了,USB应用ghost包,可以从http://u.115.com/file /f525e80c80下载。本地下载

之后的就方便多了,http://bbs.dualwan.cn/thread-13242-1-1.html里说得很明白了,照葫芦画瓢就行了。

最后我终于开通了自己的一个路由器论坛(已失效),http://duangx.3322.org:8888/bbs/
我的博客 http://duangx.3322.org:8888/blog/ 欢迎参观哦。
主机探针 http://duangx.3322.org:8888/bbs/iProber.php
php信息 http://duangx.3322.org:8888/info.php

评论1

dyinbox@2Lv.8 发表于 2010-2-21 21:11:20 | 显示全部楼层
恭喜 老大好钻研啊
回复 点赞

使用道具 举报

回复

懒得打字嘛,点击右侧快捷回复 【本站酷狼4T,750元】
您需要登录后才可以回帖 登录 | 注册

本版积分规则

投诉/建议联系

support@gebi1.cn

未经授权禁止转载,复制和建立镜像,
如有违反,追究法律责任
  • 关注公众号
  • 添加微信客服
Copyright © 2001-2024 隔壁网 版权所有 All Rights Reserved. 粤ICP备14056481号-1
关灯 在本版发帖
扫一扫添加微信客服
返回顶部
快速回复 返回顶部 返回列表