[howto]m0n0wall 1.2b9 做端口'回流',以及集成 3322.org 动态客户端
a simple howto1. download my mods
http://61.132.118.190/m0n0/1.2b9/etc/rc.newwanip
http://61.132.118.190/m0n0/1.2b9/etc/inc/filter.inc
http://61.132.118.190/m0n0/1.2b9/usr/local/www/firewall_nat.php
http://61.132.118.190/m0n0/1.2b9/usr/local/www/firewall_nat_edit.php
http://61.132.118.190/m0n0/1.2b9/usr/local/www/firewall_nat_out.php
http://61.132.118.190/m0n0/1.2b9/usr/local/www/firewall_nat_out_edit.php
http://61.132.118.190/m0n0/1.2b9/usr/local/www/services_dyndns.php
2. download 3322.org dynamic dns client for freebsd and extract ez-ipupdate
3. login to m0n0's web gui and goto exec.php then upload those files
4. execute the following command in exec.php
umount /cf; mount -rw /cf; mkdir /cf/patch
cd /cf/patch; mkdir etc etc/inc user usr/local usr/local/bin usr/local/www
cd /tmp; chmod +x ez* rc*; cp rc* /etc; cp *inc /etc/inc; cp *php /usr/local/www; cp ez* /usr/local/bin
cd /cf/patch; cp /tmp/rc* etc; cp /tmp/*inc etc/inc; cp /tmp/*php usr/local/www; cp /tmp/ez* usr/local/bin
sync; sync; sync; umount /cf; mount /cf
5. download your config file, open it in a text editor, and add the following to thesection
/bin/echo -n Applying patches... > /dev/console
/bin/cp -R /cf/patch/* /
/bin/echo -n done. > /dev/console
6. save the config file and upload it back to m0n0
7. enable dyndns, select 3322.org and setup your account. be sure to add a dns server in the general setup page first
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
http://m0n0.ch/wall/list/?action=show_msg&actionargs[]=186&actionargs[]=63
9. please note, in that post, the inbound rule for transparent proxying working is wrong. here is the correct one
>
>3. add inbound/outbound nat rules for transparent proxying
> inbound rules 1:
> Interface: LAN
>+++ Source: not A.B.C.D5/32
> External address: Any Address
> Protocol: TCP
> External port range.from: 80
> NAT IP: A.B.C.D5
> Local port: 3128
10. bugs? post here please. thank you
[ 本帖最后由 analyst 于 2005-8-12 11:02 PM 编辑 ] 自己座沙发 支持! 板猪帮个忙,把主贴链接上的 标记去掉,谢谢 我现在用 m0n0 内置的 hn.org,感觉也不错,就是更换 IP 后解析的速度稍慢一些。 原帖由 Silence 于 2005-8-12 11:07 PM 发表
我现在用 m0n0 内置的 hn.org,感觉也不错,就是更换 IP 后解析的速度稍慢一些。
噢,用偶的 rc.newwanip 应该就可以了。原来的文件在获取新的 wan 口地址后只调用更新了 RFC 2136 动态 dns,对 3322 这类没有更新 学习一下
楼主能不能解释一下?
在搞个SSH进去就完美啦。
[ 本帖最后由 xxxx-xxxx 于 2005-8-12 11:58 PM 编辑 ]
看看
最近又想搞下应用了哈哈 看一下~ 不错 看看 hao kan me 好 看一下! 回复才能看