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

SecBlade防火墙单板作为LNS接受SecPoint L2TP+IPSec拨入的配置

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

SecBlade防火墙单板作为LNS接受SecPoint L2TP+IPSec拨入的配置

 

一、  组网需求:

SecBlade防火墙单板作为LNS,接受SecPoint L2TP+IPSec拨入。

二、  组网图

       

要做LNS,SecBlade板只能工作在路由模式,S8505创建三层接口int Vlan-interface 40,作为与SecBlade的内部接口,内网PCA的网关在S8500上。PCB上安装L2TP客户端软件,通过L2TP+IPSec方式拨入SecBlade,访问内部资源。

 

软件版本如下:

S8505: VRP310-R1271

SecBladeVRP3.4-ESS1209

SecPoint5.05

 

三、  配置步骤:

 

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

 

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                                                           

#                                                                              

 l2tp enable                                                                    

#                                                                              

 ike local-name lns                                                            

#                                                                              

 firewall packet-filter enable                                                 

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

#                                                                               

 firewall statistic system enable                                              

#                                                                              

radius scheme system                                                           

#                                                                               

domain system                     //注意在域下配置地址池,而不是全局下                                                 

 ip pool 1 1.1.1.2 1.1.1.254                                                   

#                                                                              

local-user l2tp                    //创建l2tp用户                                               

 password simple l2tp                                                          

 level 3                                                                       

 service-type ppp                                                               

#                                                                              

ike peer pc                    //配置ike peer的参数                                                 

 exchange-mode aggressive                                                      

 pre-shared-key 1234                                                           

 id-type name                                                                  

 remote-name pc                                                                 

#                                                                              

ipsec proposal 1              //配置ipsec提议                                                    

#                                                                              

ipsec policy-template 1 1       //ipsec模板方式                                              

 ike-peer pc                                                                    

 proposal 1                                                                    

#                                                                              

ipsec policy test 1 isakmp template 1  //ipsec policy引用模板                                         

#                                                                              

acl number 2000                                                                

 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 Virtual-Template0       //创建L2TP虚模板                                                

 ppp authentication-mode pap                                                   

 ip address 1.1.1.1 255.255.255.0                                              

 remote address pool 1                                                          

#                                                                              

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 server protocol tcp global 60.0.0.2 ftp inside 50.0.0.50 ftp              

 ipsec policy test                  //应用ipsec 策略                                           

#                                                                              

interface GigabitEthernet0/0.3       //DMZ区域SERVER的网关                                             

 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                  //接口加入安全区域                                            

 add interface GigabitEthernet0/0.1                                             

 set priority 85                                                               

#                                                                              

firewall zone untrust                                                           

 add interface GigabitEthernet0/0.2                                            

 add interface Virtual-Template0     //注意将虚模板也加入untrust                                            

 set priority 5                                                                 

#                                                                              

firewall zone 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                                                  

#                                                                              

l2tp-group 1                    //建立l2tp                                                  

 undo tunnel authentication                                                     

 allow l2tp virtual-template 0                                                 

#                                                                              

 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                                                                          

[SecBlade_FW]                                                                  

[SecBlade_FW]        

 

 

 

                                                                               

3、   SecPoint的配置:

           设置LNS地址,启用IPSec加密:

          

           L2TP相关设置:

           

           IPSec参数设置(缺省参数):

          

           IKE相关参数设置:

          

         因为前面选择的是“连接成功后不允许访问internet”,因此不用设置路由,否则要设置到要访问的内网网段的路由:

           

四、     配置关键点   

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

2、注意将SecBlade子接口加入安全域,虚模板也要加入安全域。

3、注意在domain下配置ip pool,而不是全局下。

4、SecBlade板上ipsec要用策略模板方式。

5、因为一般客户端地址不固定,所以ike要用野蛮模式,以便于采用name作为id-type。

0 个评论

该案例暂时没有网友评论

编辑评论

举报

×

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

侵犯我的权益

×

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

泄露了我的隐私

×

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

侵犯了我企业的权益

×

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

抄袭了我的内容

×

原文链接或出处

诽谤我

×

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

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

×

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

不规范转载

×

举报说明

提出建议

    +

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

确定

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