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

中低端防火墙单机等价双出口链路IPsec典型配置

2024-01-25 发表
  • 0关注
  • 3收藏 414浏览
粉丝:35人 关注:3人

组网及说明

理想组网如下:


FW1作为公网出口,存在等价双链路,和对端FW2设备建立IPsec隧道。

实际环境模拟公网用SW代替,通过OSPF动态路由协议打通设备间路由,FW上配置环回口Loop1模拟客户端流量。安全域及安全策略本案例不涉及,省略。

 


配置步骤

相关配置如下:

 

FW1

FW2

IP、接口、路由基本配置

#

interface LoopBack0

 ip address 16.1.1.1 255.255.255.255  ---ospf router-id

#

interface LoopBack1

 ip address 192.168.106.1 255.255.255.255  ---感兴趣流

#

interface LoopBack10

 ip address 101.16.3.1 255.255.255.255   ----隧道起点

#

interface Route-Aggregation2.10

 description ipsec_1

 ip address 101.16.1.1 255.255.255.0

 ospf network-type p2p

 vlan-type dot1q vid 10

 ipsec apply policy ply

#

interface Route-Aggregation2.20

 description ipsec_2

 ip address 101.16.2.1 255.255.255.0

 ospf network-type p2p

 vlan-type dot1q vid 20

 ipsec apply policy ply

#

ospf 1 router-id 16.1.1.1

 import-route direct route-policy ipsec   ---将环回口地址引入到ospf中

 area 0.0.0.0

  network 101.16.1.0 0.0.0.255

  network 101.16.2.0 0.0.0.255

#

route-policy ipsec permit node 10

 if-match ip address prefix-list ipsec

#             

 ip prefix-list ipsec index 10 permit 101.16.3.1 32

#

 

#

interface LoopBack0

 ip address 16.1.1.2 255.255.255.255  ---ospf router-id

#

interface LoopBack1

 ip address 192.168.206.1 255.255.255.255   ---感兴趣流

#

interface Route-Aggregation2

 ip address 102.16.1.1 255.255.255.0   ---隧道终点

 ospf network-type p2p

 ipsec apply policy ply

#

#

ospf 1 router-id 16.1.1.2

 area 0.0.0.0

  network 102.16.1.0 0.0.0.255

#

 

Ike keychain配置

#

ike keychain k1

 pre-shared-key address 102.16.1.1 255.255.255.255 key cipher $c$3$WeDkyPg7q6q1PRMNDknQp4zQ0eWxZB0zdw==

#

#

ike keychain k1

 pre-shared-key address 101.16.3.1 255.255.255.255 key cipher $c$3$/J6Q33LbK9vq57CUNIR/roA7qrZStXhR3w==

#

Ike profile

#

ike profile pf

 keychain k1

 dpd interval 10 on-demand

 local-identity address 101.16.3.1

 match remote identity address 102.16.1.1 255.255.255.255

#

#

ike profile pf

 keychain k1

 dpd interval 10 on-demand

 local-identity address 102.16.1.1

 match remote identity address 101.16.3.1 255.255.255.255

#

IPsec policy

#

acl advanced 3000

 rule 0 permit ip source 192.168.106.1 0 destination 192.168.206.1 0

#

ipsec policy ply 1 isakmp

 transform-set ts

 security acl 3000

 local-address 101.16.3.1   ---一定要指定本端地址,不然缺省以 接口地址发送报文

 remote-address 102.16.1.1

 ike-profile pf

#

 ipsec policy ply local-address LoopBack10   ---指定IPsec安全策略与Loop10进行绑定

#

 

#

acl advanced 3000

 rule 0 permit ip source 192.168.206.1 0 destination 192.168.106.1 0

#

ipsec policy ply 1 isakmp

 transform-set ts

 security acl 3000

 remote-address 101.16.3.1

 ike-profile pf

#

 

SW配置也罗列下,供参考:

#
interface LoopBack0
 ip address 68.1.1.1 255.255.255.255
#
interface Vlan-interface10
 ip address 101.16.1.2 255.255.255.0
 ospf network-type p2p
#
interface Vlan-interface20
 ip address 101.16.2.2 255.255.255.0
 ospf network-type p2p
#
interface Vlan-interface100
 ip address 102.16.1.2 255.255.255.0
 ospf network-type p2p
#
ospf 1 router-id 68.1.1.1
 default-route-advertise always
 area 0.0.0.0
  network 101.16.1.0 0.0.0.255
  network 101.16.2.0 0.0.0.255
  network 102.16.1.0 0.0.0.255
#


配置关键点

关键点表格已列出,实验室测试单机收发加密ESP报文不在同一接口业务正常,但案例仅供参考。

对应 IPsec SA:

-------------------------------

Interface: LoopBack10    ---下发接口为Loop接口

-------------------------------

 

  -----------------------------

  IPsec policy: ply

  Sequence number: 1

  Mode: ISAKMP

  -----------------------------

    Tunnel id: 1

    Encapsulation mode: tunnel

    Perfect Forward Secrecy: 

    Inside VPN: 

    Extended Sequence Numbers enable: N

    Traffic Flow Confidentiality enable: N

    Transmitting entity: Responder

    Path MTU: 1460

    Tunnel:

        local  address: 101.16.3.1

        remote address: 102.16.1.1

    Flow:

        sour addr: 192.168.106.1/255.255.255.255  port: 0  protocol: ip

        dest addr: 192.168.206.1/255.255.255.255  port: 0  protocol: ip

               

    [Inbound ESP SAs]

      SPI: 1552869680 (0x5c8ee930)

      Connection ID: 1138166333442

      Transform set: ESP-ENCRYPT-AES-CBC-256 ESP-AUTH-SHA256

      SA duration (kilobytes/sec): 1843200/3600

      SA remaining duration (kilobytes/sec): 1843200/2627

      Max received sequence-number: 0

      Anti-replay check enable: Y

      Anti-replay window size: 64

      UDP encapsulation used for NAT traversal: N

      Status: Active

 

    [Outbound ESP SAs]

      SPI: 2575420673 (0x9981cd01)

      Connection ID: 1138166333443

      Transform set: ESP-ENCRYPT-AES-CBC-256 ESP-AUTH-SHA256

      SA duration (kilobytes/sec): 1843200/3600

      SA remaining duration (kilobytes/sec): 1843200/2627

      Max sent sequence-number: 0

      UDP encapsulation used for NAT traversal: N

 

      Status: Active

对应IKE SA信息:

   -----------------------------------------------

   Connection ID: 12

   Outside VPN: 

   Inside VPN: 

   Profile: pf

   Transmitting entity: Responder

   Initiator COOKIE: 6658e2b12d9faafb

   Responder COOKIE: f08a4ec966e88d24

   -----------------------------------------------

   Local IP/port: 101.16.3.1/500

   Local ID type: IPV4_ADDR

   Local ID: 101.16.3.1

 

   Remote IP/port: 102.16.1.1/500

   Remote ID type: IPV4_ADDR

   Remote ID: 102.16.1.1

 

   Authentication-method: PRE-SHARED-KEY

   Authentication-algorithm: SHA1

   Encryption-algorithm: DES-CBC

 

   Life duration(sec): 86400

   Remaining key duration(sec): 71948

   Exchange-mode: Main

   Diffie-Hellman group: Group 1

   NAT traversal: Not detected

 

   Extend authentication: Disabled

   Assigned IP address:

   Vendor ID index:0xffffffff

 

   Vendor ID sequence number:0x0


该案例对您是否有帮助:

您的评价:1

若您有关于案例的建议,请反馈:

0 个评论

该案例暂时没有网友评论

编辑评论

举报

×

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

侵犯我的权益

×

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

泄露了我的隐私

×

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

侵犯了我企业的权益

×

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

抄袭了我的内容

×

原文链接或出处

诽谤我

×

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

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

×

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

不规范转载

×

举报说明

提出建议

    +

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

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

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