edwardj 发表于 2005-8-12 21:53:20

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

a simple howto

1. 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 编辑 ]

edwardj 发表于 2005-8-12 21:59:08

自己座沙发

analyst 发表于 2005-8-12 22:36:31

支持!

edwardj 发表于 2005-8-12 22:49:47

板猪帮个忙,把主贴链接上的 标记去掉,谢谢

Silence 发表于 2005-8-12 23:07:44

我现在用 m0n0 内置的 hn.org,感觉也不错,就是更换 IP 后解析的速度稍慢一些。

edwardj 发表于 2005-8-12 23:33:01

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

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

xxxx-xxxx 发表于 2005-8-12 23:52:09

学习一下
楼主能不能解释一下?
在搞个SSH进去就完美啦。

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

czw1240 发表于 2005-8-13 07:31:41

看看

最近又想搞下应用了
哈哈

xzjt1982 发表于 2005-8-13 08:02:28

看一下~

adslcool 发表于 2005-8-13 10:04:09

不错

techart 发表于 2005-8-13 10:51:43

看看

xteewfnh 发表于 2005-8-13 11:36:07

hao kan me

阳光帆 发表于 2005-8-13 13:18:22

wuxj 发表于 2005-8-13 13:34:39

看一下!

huagai 发表于 2005-8-13 14:57:49

回复才能看
页: [1] 2 3 4 5 6 7 8 9 10
查看完整版本: [howto]m0n0wall 1.2b9 做端口'回流',以及集成 3322.org 动态客户端