• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

SecBlade防火墙单板NATServer的配置

2006-09-17 发表
  • 0关注 ,175浏览
粉丝: 关注:

SecBlade 防火墙单板NATServer的配置

 

一、  组网需求:

SecBlade防火墙单板作为NAT网关对内网网段做NAT并对内部服务器做NATServer,内网的网关终结在S8500上。

二、  组网图

      

要做NAT网关,SecBlade板只能工作在路由模式,S8505创建三层接口int Vlan-interface 40,作为与SecBlade的内部接口,内网PCA的网关在S8500上,防火墙板作nat和natserver,使trust区域的用户能访问公网 。

 

软件版本如下:

S8505: VRP310-R1271

SecBladeVRP3.4-ESS1209

 

三、  配置步骤:

 

本配置适用于S8500VRP3.1-R1271及以后版本,SecBlade VRP3.4-E1209及以后版本。

 

1、S8500配置

<S8505>dis cu                                                                  

#                                                                               

 config-version S8500-VRP310-r1271                                             

#                                                                              

 sysname S8505                                                                  

#                                                                              

 super password level 1 cipher O5(YaI!$LR+Q=^Q`MAF4<1!!                        

#                                                                              

 local-server nas-ip 127.0.0.1 key huawei                                      

#                                                                              

 Xbar load-single                                                              

#                                                                               

 router route-limit 128K                                                       

 router VRF-limit 256                                                          

#                                                                               

 secblade aggregation slot 2              //配置内部端口聚合,增大带宽                                       

#                                                                              

radius scheme system                                                            

 server-type huawei                                                            

 primary authentication 127.0.0.1 1645                                         

 primary accounting 127.0.0.1 1646                                              

 user-name-format without-domain                                               

#                                                                              

domain system                                                                   

 vlan-assignment-mode integer                                                  

 access-limit disable                                                          

 state active                                                                   

 idle-cut disable                                                              

 self-service-url disable                                                      

                                                                               

 domain default enable system                                                  

#                                                                              

vlan 1                                                                         

#                                                                               

vlan 30                   //创建vlan30vlan40vlan50vlan60                                                     

#                                                                              

vlan 40                                                                        

#                                                                               

vlan 50                                                                        

#                                                                              

vlan 60                                                                         

#                                                                              

interface Vlan-interface30               //内网网关                                            

 ip address 30.0.0.254 255.255.255.0                                           

#                                                                              

interface Vlan-interface40                //SecBlade内部三层接口                                          

 ip address 40.0.0.2 255.255.255.0                                             

#                                                                              

interface Aux0/0/1                                                              

#                                                                              

interface M-Ethernet0/0/0                                                      

#                                                                               

interface Ethernet4/1/1                 //eth4/1/1接内网                                           

 port access vlan 30                                                           

#                                                                              

interface Ethernet4/1/2                //eth4/1/2接外网                                            

 port access vlan 60                                                           

#                                                                              

interface Ethernet4/1/3               //eth4/1/3DMZ服务器                                           

 port access vlan 50                                                           

#                                                                              

…… ……                                             

                                                      

interface NULL0                                                                

#                                                                              

 ip route-static 0.0.0.0 0.0.0.0 40.0.0.1 preference 60   //通过路由,将来自内网的数据送给Secblade                     

#                                                                              

user-interface con 0                                                           

user-interface aux 0                                                            

user-interface vty 0 4                                                         

#                                                                              

secblade module secblade                                                        

 security-vlan 50 60      //vlan5060作为security-vlan,将来自外网和DMZ的数据送到SecBlade                                                 

 secblade-interface Vlan-interface40     //vlan40S8500SecBlade的内部三层接口                                       

 map to slot 2                       //SecBlade板在2号槽位                                           

#                                                                              

return                                                                         

                                                                                

                                                                      

 

2、SecBlade配置:

[SecBlade_FW]dis cu                                                            

#                                                                               

 sysname SecBlade_FW                                                           

#                                                                              

 firewall packet-filter enable                                                  

 firewall packet-filter default permit     //包过滤缺省规则设置为permit                                    

#                                                                              

 firewall statistic system enable                                              

#                                                                               

radius scheme system                                                           

#                                                                              

domain system                                                                   

#                                                                              

acl number 2000               //用作nat outbound的数据流                                                   

 rule 0 permit source 40.0.0.0 0.255.255.255                                   

 rule 1 permit source 30.0.0.0 0.255.255.255                                   

#                                                                               

interface Aux0                                                                 

 async mode flow                                                               

#                                                                               

interface Ethernet0/1                                                          

#                                                                              

interface Ethernet0/2                                                           

#                                                                              

interface Ethernet0/3                                                          

#                                                                               

interface GigabitEthernet0/0                                                   

#                                                                              

interface GigabitEthernet0/0.1           //S8500的内部接口                                            

 ip address 40.0.0.1 255.255.255.0                                             

 vlan-type dot1q vid 40                                                        

#                                                                               

interface GigabitEthernet0/0.2         //外网接口                                         

 ip address 60.0.0.1 255.255.255.0                                             

 vlan-type dot1q vid 60                                                         

 nat outbound 2000                 //nat                                             

 nat server protocol tcp global 60.0.0.2 ftp inside 50.0.0.50 ftp  //natserver                

#                                                                               

interface GigabitEthernet0/0.3                                                 

 ip address 50.0.0.1 255.255.255.0                                             

 vlan-type dot1q vid 50                                                         

#                                                                              

interface NULL0                                                                

#                                                                               

firewall zone local                                                            

 set priority 100                                                              

#                                                                               

firewall zone trust                    //内网接口加入trust                                          

 add interface GigabitEthernet0/0.1                                            

 set priority 85                                                                

#                                                                              

firewall zone untrust                  //外网接口加入untrust                                          

 add interface GigabitEthernet0/0.2                                             

 set priority 5                                                                

#                                                                              

firewall zone DMZ                  //服务器接口加入DMZ                                               

 add interface GigabitEthernet0/0.3                                            

 set priority 50                                                               

#                                                                              

firewall interzone local trust                                                 

#                                                                              

firewall interzone local untrust                                               

#                                                                               

firewall interzone local DMZ                                                   

#                                                                              

firewall interzone trust untrust                                               

#                                                                              

firewall interzone trust DMZ                                                   

#                                                                               

firewall interzone DMZ untrust 

 #                                                

ip route-static 0.0.0.0 0.0.0.0 60.0.0.60 preference 60    //到公网的缺省路由                   

ip route-static 30.0.0.0 255.255.255.0 40.0.0.2 preference 60 //到内网的路由                                          

#                                                                              

user-interface con 0                                                           

user-interface aux 0                                                           

 authentication-mode password                                                  

user-interface vty 0 4                                                         

 authentication-mode scheme                                                     

#                                                                              

return  

   

四、     配置关键点  

1、SecBlade上要有到内网和外网的路由;S8500上要有到外网的路由,下一跳指向SecBlade。

2、注意将SecBlade子接口加入安全域。

                      

0 个评论

该案例暂时没有网友评论

编辑评论

举报

×

侵犯我的权益 >
对根叔知了社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔知了社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明

提出建议

    +

亲~登录后才可以操作哦!

确定

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作