• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 全部
  • 全部
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
高级搜索

SecPath防火墙IPSecVPN野蛮模式验证方法为预共享密钥典型配置

2006-09-08 发表
  • 0关注 ,385浏览
粉丝: 关注:

 SecPath防火墙IPSec 野蛮模式验证为预共享密钥

典型配置指南

 

一、       组网需求

防火墙建立IPSEC VPN有两种验证方法,一种是预共享密钥,一种是证书认证,下面讲述IKE为野蛮模式,验证方法为预共享密钥的配置。

二、       组网图

如图所示,SecPath1000F要与SecPath500F-B建立基于野蛮模式验证方法为预共享密钥的VPN,中间的SecPath500F只起数据转发的作用。

软件版本如下:

SecPath1000F: VRP 3.40 ESS 1604

SecPath500F:  VRP 3.40 ESS 1604

SecPath500F-B VRP 3.40 ESS 1604

三、       典型配置

1、SecPath500-B的配置

<500F-B>dis cu                                                                   

#                                                                              

 sysname 500F-B                                                                   

#                                                                              

 ike local-name 500f                                                           

#                                                                               

 firewall packet-filter enable                                                 

 firewall packet-filter default permit                                         

#                                                                               

 firewall statistic system enable                                              

#                                                                              

pki entity 2000                                                                

  common-name 2000                                                             

  organization-unit tc                                                         

  organization huawei-3com                                                     

  locality beijing                                                             

  country CN                                                                   

#                                                                              

pki domain 1                                                                    

  ca identifier ts-sec                                                         

  certificate request url http://5.5.5.1                                       

  certificate request from ra                                                   

  certificate request entity 2000                                              

  crl check disable                                                            

#                                                                               

radius scheme system                                                           

#                                                                              

domain system                                                                   

#                                                                              

                                 

#                                                                              

ike peer 1000f                     //定义IKE PEER                                            

 exchange-mode aggressive          //IKE交换模式为野蛮模式

 pre-shared-key 123456              //预共享密钥 为 123456                                       

 id-type name                       //ID的类型为名字                                            

 remote-name 1000f                 //对端名字为1000f                                          

 nat traversal                      //支持NAT穿越                                            

                                                          

#                                                                              

ike peer 100f                                                                  

#                                                                              

ipsec proposal p1                    //定义安全提议安全提议采用默认设置,加

//密算法 为DES,验证算法为MD5                                         

#                                                                              

ipsec policy test 1 isakmp           //定义安全策略                                          

 security acl 3000                   //定义触发IPsec的数据流                                          

 ike-peer 1000f                      //定义使用的IKE PEER                                           

 proposal p1                         //定义使用的安全提议                                           

#                                                                              

acl number 3000                                                                

 rule 0 permit ip source 2.2.2.0 0.0.0.255 destination 3.3.3.0 0.0.0.255       

#                                                                              

interface Aux0                                                                 

 async mode flow                                                               

#                                                                               

interface GigabitEthernet0/0                                                   

 loopback                                                                      

 ip address 2.2.2.1 255.255.255.0                                              

#                                                                              

interface GigabitEthernet0/1                                                   

#                                                                               

interface GigabitEthernet1/0                                                   

 ip address 1.1.1.1 255.255.255.0                                              

 ipsec policy test                                                              

#                                                                              

interface GigabitEthernet1/1                                                   

#                                                                               

interface Encrypt2/0                                                           

#                                                                              

interface NULL0                                                                 

#                                                                              

firewall zone local                                                            

 set priority 100                                                              

#                                                                              

firewall zone trust                                                            

 add interface GigabitEthernet0/0                                              

 add interface GigabitEthernet1/0                                              

 set priority 85                                                               

#                                                                              

firewall zone untrust                                                           

 set priority 5                                                                

#                                                                              

firewall zone DMZ                                                               

 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 3.3.3.0 255.255.255.0 1.1.1.2 preference 60                   

 ip route-static 4.4.4.0 255.255.255.0 1.1.1.2 preference 60                   

#                                                                              

user-interface con 0                                                           

user-interface aux 0                                                            

user-interface vty 0 4                                                         

 authentication-mode none                                                      

 user privilege level 3                                                         

#                                                                              

return                                                                         

<500f>

 

2、 SecPath1000F的配置

 <1000f>dis cu                                                                   

#                                                                              

 sysname 1000f                                                                 

#                                                                               

 ike local-name 1000f                                                          

#                                                                              

 firewall packet-filter enable                                                  

 firewall packet-filter default permit                                         

#                                                                              

 firewall statistic system enable                                               

#                                                                              

 qos carl 1 dscp 16                                                            

 qos carl 2 dscp 16                                                            

 qos carl 3 mac 0000-1111-2222                                                 

 qos carl 4 precedence 0                                                       

 qos carl 5 precedence 2                                                       

#                                                                               

 firewall blacklist enable                                                     

 firewall blacklist 10.1.1.123                                                 

#                                                                               

pki entity 3000                                                                

  common-name 3000                                                             

  organization-unit tc                                                          

  organization huawei-3com                                                     

  locality beijing                                                             

  country cn                                                                    

#                                                                              

pki domain 1                                                                   

  ca identifier ts-sec                                                          

  certificate request url http://5.5.5.5                                       

  certificate request from ra                                                  

  certificate request entity 3000                                              

  crl check disable                                                            

#                                                                              

radius scheme system                                                           

#                                                                               

domain system                                                                  

#                                                                              

local-user aaa                                                                  

 password simple aaaaaa                                                        

 service-type telnet                                                           

 level 3                                                                        

local-user ftp                                                                 

 password simple ftp                                                           

 service-type ftp                                                               

#                                                                              

                                       

#                                                                              

ike peer 500f                          //定义IKE PEER                                        

 exchange-mode aggressive              //IKE交换模式为野蛮模式

pre-share-key 123456                    //预共享密钥为123456                                   

 id-type name                           //ID的类型为名字                                       

 remote-name 500f                       //对端名字为500f                                         

 remote-address 1.1.1.1                 //对端地址                                       

 nat traversal                          //支持NAT穿越                                        

                                                        

#                                                                              

ike peer test                                                                  

#                                                                               

ipsec proposal p1                      //定义安全提议安全提议采用默认设置,加

//密算法 为DES,验证算法为MD5                                         

                                                      

                                                                                                                       

ipsec policy test 1 isakmp            //定义安全策略                                         

 security acl 3000                    //定义触发IPsec的数据流                                          ike-peer 500f                         //定义使用的IKEE PEER                                       

 proposal p1                           //定义使用的安全提议                                         

#                                                                              

acl number 3000                                                                

 rule 0 permit ip source 3.3.3.0 0.0.0.255 destination 2.2.2.0 0.0.0.255       

#                                                                              

interface Aux0                                                                 

 async mode flow                                                                

#                                                                              

interface GigabitEthernet0/0                                                   

 ip address 3.3.3.1 255.255.255.0                                              

 qos gts acl 3000 cir 150000 cbs 75000 ebs 0 queue-length 50                   

#                                                                              

interface GigabitEthernet0/1                                                   

 ip address 4.4.4.2 255.255.255.0                                              

 ipsec policy test                                                             

#                                                                              

interface GigabitEthernet1/0                                                    

 shutdown                                                                      

 ip address 55.1.1.1 255.255.255.0                                             

 qos gts any cir 50000000 cbs 75000000 ebs 0 queue-length 50                   

#                                                                              

interface GigabitEthernet1/1                                                   

#                                                                               

interface Encrypt2/0                                                           

#                                                                              

interface NULL0                                                                 

#                                                                              

firewall zone local                                                            

 set priority 100                                                              

#                                                                              

firewall zone trust                                                            

 add interface GigabitEthernet0/0                                              

 add interface GigabitEthernet0/1                                              

 add interface GigabitEthernet1/0                                              

 set priority 85                                                               

#                                                                               

firewall zone untrust                                                          

 set priority 5                                                                

#                                                                               

firewall zone DMZ                                                              

 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                                                 

#                                                                              

 FTP server enable                                                              

#                                                                              

 ip route-static 1.1.1.0 255.255.255.0 4.4.4.1 preference 60                   

 ip route-static 2.2.2.0 255.255.255.0 4.4.4.1 preference 60                   

#                                                                              

user-interface con 0                                                           

user-interface aux 0                                                            

user-interface vty 0                                                           

 undo shell                                                                    

user-interface vty 1 4                                                          

#                                                                              

return                                                                         

<1000f>                                

<1000f>

 

3、SecPath500F的配置

<mid-500>dis cu                                                                    

#                                                                              

 sysname mid-500                                                                  

#                                                                               

 firewall packet-filter enable                                                 

 firewall packet-filter default permit                                         

#                                                                               

 firewall statistic system enable                                              

#                                                                              

radius scheme system                                                            

#                                                                              

domain system                                                                  

#                                                                               

acl number 2000                                                                

 rule 0 permit source 4.4.4.0 0.0.0.255                                        

#                                                                               

interface Aux0                                                                 

 async mode flow                                                               

#                                                                               

interface GigabitEthernet0/0                                                   

 ip address 1.1.1.2 255.255.255.0                                              

#                                                                              

interface GigabitEthernet0/1                                                   

#                                                                              

interface GigabitEthernet1/0                                                   

 ip address 4.4.4.1 255.255.255.0                                              

#                                                                              

interface GigabitEthernet1/1                                                   

#                                                                               

interface Encrypt2/0                                                           

#                                                                              

interface NULL0                                                                 

#                                                                              

firewall zone local                                                            

 set priority 100                                                               

#                                                                              

firewall zone trust                                                            

 add interface GigabitEthernet0/0                                               

 add interface GigabitEthernet1/0                                              

 set priority 85                                                               

#                                                                               

firewall zone untrust                                                          

 set priority 5                                                                

#                                                                               

firewall zone DMZ                                                              

 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                                                 

#                                                                              

user-interface con 0                                                            

user-interface aux 0                                                           

user-interface vty 0 4                                                         

 authentication-mode none                                                       

 user privilege level 3                                                        

#                                                                              

return                                                                         

四、配置关键点和关键命令

exchange-mode aggressive              //IKE交换模式为野蛮模式

pre-share-key 123456                  //预共享密钥为123456                                   

id-type name                         //定义ID的类型

0 个评论

该案例暂时没有网友评论

编辑评论

举报

×

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

侵犯我的权益

×

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

泄露了我的隐私

×

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

侵犯了我企业的权益

×

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

抄袭了我的内容

×

原文链接或出处

诽谤我

×

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

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

×

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

不规范转载

×

举报说明

提出建议

    +

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

确定

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