找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 314647|回复: 790

[m0n0] [howto]m0n0wall 1.2b9 做端口'回流',以及集成 3322.org 动态客户端

  [复制链接]
发表于 2005-8-12 21:53:20 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

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

×
a simple howto

  1. 1. download my mods
  2.     http://61.132.118.190/m0n0/1.2b9/etc/rc.newwanip
  3.     http://61.132.118.190/m0n0/1.2b9/etc/inc/filter.inc
  4.     http://61.132.118.190/m0n0/1.2b9/usr/local/www/firewall_nat.php
  5.     http://61.132.118.190/m0n0/1.2b9/usr/local/www/firewall_nat_edit.php
  6.     http://61.132.118.190/m0n0/1.2b9/usr/local/www/firewall_nat_out.php
  7.     http://61.132.118.190/m0n0/1.2b9/usr/local/www/firewall_nat_out_edit.php
  8.     http://61.132.118.190/m0n0/1.2b9/usr/local/www/services_dyndns.php

  9. 2. download 3322.org dynamic dns client for freebsd and extract ez-ipupdate

  10. 3. login to m0n0's web gui and goto exec.php then upload those files

  11. 4. execute the following command in exec.php
  12.     umount /cf; mount -rw /cf; mkdir /cf/patch
  13.     cd /cf/patch; mkdir etc etc/inc user usr/local usr/local/bin usr/local/www
  14.     cd /tmp; chmod +x ez* rc*; cp rc* /etc; cp *inc /etc/inc; cp *php /usr/local/www; cp ez* /usr/local/bin
  15.     cd /cf/patch; cp /tmp/rc* etc; cp /tmp/*inc etc/inc; cp /tmp/*php usr/local/www; cp /tmp/ez* usr/local/bin
  16.     sync; sync; sync; umount /cf; mount /cf

  17. 5. download your config file, open it in a text editor, and add the following to the  section
  18.     /bin/echo -n Applying patches... > /dev/console
  19.     /bin/cp -R /cf/patch/* /
  20.     /bin/echo -n done. > /dev/console

  21. 6. save the config file and upload it back to m0n0

  22. 7. enable dyndns, select 3322.org and setup your account. be sure to add a dns server in the general setup page first

  23. 8. setup inbound and outbound nat rules to make the redirected service accessible to client from within lan. read my email in m0n0wall's mailing list for more detail
  24.     http://m0n0.ch/wall/list/?action=show_msg&actionargs[]=186&actionargs[]=63
  25.    
  26. 9. please note, in that post, the inbound rule for transparent proxying working is wrong. here is the correct one
  27. >
  28. >3. add inbound/outbound nat rules for transparent proxying
  29. >        inbound rules 1:
  30. >                Interface:                        LAN
  31. >+++                 Source:                        not A.B.C.D5/32
  32. >                External address:                Any Address
  33. >                Protocol:                        TCP
  34. >                External port range.from:        80
  35. >                NAT IP:                        A.B.C.D5
  36. >                Local port:                        3128

  37. 10. bugs? post here please. thank you
复制代码

[ 本帖最后由 analyst 于 2005-8-12 11:02 PM 编辑 ]
routeros
 楼主| 发表于 2005-8-12 21:59:08 | 显示全部楼层
自己座沙发
routeros
回复

使用道具 举报

发表于 2005-8-12 22:36:31 | 显示全部楼层
支持!
routeros
回复

使用道具 举报

 楼主| 发表于 2005-8-12 22:49:47 | 显示全部楼层
板猪帮个忙,把主贴链接上的 [url][/url] 标记去掉,谢谢
routeros
回复

使用道具 举报

发表于 2005-8-12 23:07:44 | 显示全部楼层
我现在用 m0n0 内置的 hn.org,感觉也不错,就是更换 IP 后解析的速度稍慢一些。
routeros
回复

使用道具 举报

 楼主| 发表于 2005-8-12 23:33:01 | 显示全部楼层
原帖由 Silence 于 2005-8-12 11:07 PM 发表
我现在用 m0n0 内置的 hn.org,感觉也不错,就是更换 IP 后解析的速度稍慢一些。


噢,用偶的 rc.newwanip 应该就可以了。原来的文件在获取新的 wan 口地址后只调用更新了 RFC 2136 动态 dns,对 3322 这类没有更新
routeros
回复

使用道具 举报

发表于 2005-8-12 23:52:09 | 显示全部楼层
学习一下
楼主能不能解释一下?
在搞个SSH进去就完美啦。

[ 本帖最后由 xxxx-xxxx 于 2005-8-12 11:58 PM 编辑 ]
routeros
回复

使用道具 举报

发表于 2005-8-13 07:31:41 | 显示全部楼层

看看

最近又想搞下应用了
哈哈
routeros
回复

使用道具 举报

发表于 2005-8-13 08:02:28 | 显示全部楼层
看一下~
routeros
回复

使用道具 举报

发表于 2005-8-13 10:04:09 | 显示全部楼层
不错
routeros
回复

使用道具 举报

发表于 2005-8-13 10:51:43 | 显示全部楼层
看看
routeros
回复

使用道具 举报

发表于 2005-8-13 11:36:07 | 显示全部楼层
hao kan me
routeros
回复

使用道具 举报

发表于 2005-8-13 13:18:22 | 显示全部楼层
routeros
回复

使用道具 举报

发表于 2005-8-13 13:34:39 | 显示全部楼层
看一下!
routeros
回复

使用道具 举报

发表于 2005-8-13 14:57:49 | 显示全部楼层
回复才能看
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-4-24 09:43 , Processed in 0.105804 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表