Chinaunix首页 | 论坛 | 博客
  • 博客访问: 454517
  • 博文数量: 104
  • 博客积分: 3016
  • 博客等级: 中校
  • 技术积分: 1992
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-24 11:37
文章分类

全部博文(104)

文章存档

2009年(44)

2008年(60)

我的朋友

分类: 系统运维

2009-04-02 16:16:14

此回流问题解决方法同样适用于pfsense

具体设置

FTP服务配置
1. 进入  Firewall--nat--outbound
2. 为你的内网添加外出规则
    Interface:            WAN
    Source:                A.B.C.0/24(内网网段)
    Destination.Type:    any
    

3. 做 21 FTP服务映射
    inbound rules 1:
        Interface:            WAN
        External address:    WAN Address
        Protocol:            TCP
        External port range.from:    21
        NAT IP:                A.B.C.D1(FTP服务器地址)
        Local port:            21
        Auto Firewall rule: yes
    inbound rules 2:
        Interface:            LAN
        External address:    WAN Address
        Protocol:            TCP
        External port range.from:    21
        NAT IP:                A.B.C.D1(FTP服务器地址)
        Local port:            21
    outbound rules :
        Interface:            LAN
        Source:                A.B.C.0/24(内网网段)
        Destination.Type:    A.B.C.D1/32(FTP服务器地址)
        Policy NAT.Enable:    yes
        Policy NAT.Protocol:TCP
        Policy NAT.from:    21
       
4. 添加FTP服务被动工作模式NAT(经测试:此项可选 端口范围可以试着修改)
    inbound rules 1:
        Interface:            WAN
        External address:    WAN Address
        Protocol:            TCP
        External port range.from:    65000
        External port range.to:        65100
        NAT IP:                A.B.C.D1(FTP服务器地址)
        Local port:            65000
        Auto Firewall rule: yes
    inbound rules 2:
        Interface:            LAN
        External address:    WAN Address
        Protocol:            TCP
        External port range.from:    65000
        External port range.to:        65100
        NAT IP:                A.B.C.D1(FTP服务器地址)
        Local port:            65000
    outbound rules :
        Interface:            LAN
        Source:                A.B.C.0/24(内网网段)
        Destination.Type:    A.B.C.D1/32(FTP服务器地址)
        Policy NAT.Enable:    yes
        Policy NAT.Protocol:TCP
        Policy NAT.from:    65000
        Policy NAT.to:        65100

FTP服务配置结束!

web服务配置
       
1. 添加WEB(80)端口映射
    inbound rules 1:
        Interface:            WAN
        External address:    WAN Address
        Protocol:            TCP
        External port range.from:    80
        NAT IP:                A.B.C.D2(WEB服务器地址)
        Local port:            80
        Load-balancing:        yes
        Auto Firewall rule: yes
   
    inbound rules 2:
        Interface:            LAN
        External address:    WAN Address
        Protocol:            TCP
        External port range.from:    80
        NAT IP:                A.B.C.D2(WEB服务器地址)
        Local port:            80
        Load-balancing:        yes
   
    outbound rules :
        Interface:            LAN
        Source:                A.B.C.0/24(内网网段)
        Destination.Type:          A.B.C.D2/32(WEB服务器地址)
        Policy NAT.Enable:    yes
        Policy NAT.Protocol:TCP
        Policy NAT.from:    80
   

WEB配置完成! 
阅读(1181) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~