- 论坛徽章:
- 0
|
外网动态IP映射FTP,PASV端口20001-20999
##FTP Server 1
rdr on $ext_if proto tcp from any to $ext_if port 10521 -> 192.168.0.101 port 21
rdr on $ext_if proto tcp from any to $ext_if port 10520 -> 192.168.0.101 port 8021
rdr on $ext_if proto tcp from any to $ext_if port 20001:20999 -> 192.168.0.101 port 20001:20999
##FTP Server 2
rdr on $ext_if proto tcp from any to $ext_if port 20521 -> 192.168.0.102 port 21
rdr on $ext_if proto tcp from any to $ext_if port 20520 -> 192.168.0.102 port 8021
rdr on $ext_if proto tcp from any to $ext_if port 30001:30999 -> 192.168.0.102 port 30001:30999
##FTP Server 3
rdr on $ext_if proto tcp from any to $ext_if port 30521 -> 192.168.0.103 port 21
rdr on $ext_if proto tcp from any to $ext_if port 30520 -> 192.168.0.103 port 8021
rdr on $ext_if proto tcp from any to $ext_if port 40001:40999 -> 192.168.0.103 port 40001:40999
pass in quick on $ext_if proto tcp from any to any port {21,8021,20001:20999,30001:30999,40001:40999} keep state
[ 本帖最后由 qq830406 于 2009-7-2 02:31 编辑 ] |
|