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

客户端iNode拨号 L2TP over IPsec 模拟器环境

  • 0关注
  • 1收藏 1146浏览
粉丝:39人 关注:3人

组网及说明


注:如无特别说明,描述中的 FW1 或 MSR1 对应拓扑中设备名称末尾数字为 1 的设备,FW2 或 MSR2 对应拓扑中设备名称末尾数字为 2 的设备,以此类推;另外,同一网段中,IP 地址的主机位为其设备编号,如 FW1 的 g0/0 接口若在 1.1.1.0/24 网段,则其 IP 地址为 1.1.1.1/24,以此类推。

实验说明: 

1. FW1和FW2均为NAT设备,FW3为内网防火墙,外部FW上做了针对UDP500和4500端口的映射 

2. FW3为LNS设备 

3. SW4为内网服务器

4. 不涉及安全域和安全策略的配置,缺省全部放通


配置步骤

 

FW3

Host

地址、路由、安全策略

#

interface GigabitEthernet1/0/0

 port link-mode route

 combo enable copper

 ip address 10.2.2.3 255.255.255.0

 ipsec apply policy ply

#

interface GigabitEthernet1/0/1

 port link-mode route

 combo enable copper

 ip address 192.168.0.3 255.255.255.0

#

security-zone name Trust

 import interface GigabitEthernet1/0/1

 import interface Virtual-Template1

#

security-zone name Untrust

 import interface GigabitEthernet1/0/0

#

 ip route-static 0.0.0.0 0 10.2.2.2

#

security-policy ip

 rule 0 name any

  action pass

C:\Users\Administrator>route add 1.1.1.12 mask 255.255.255.255 10.1.1.1

 

C:\Users\Administrator>route add 10.2.2.3 mask 255.255.255.255 10.1.1.1

L2TP部分

#

 ip pool aaa 192.168.200.2 192.168.200.250

 ip pool aaa gateway 192.168.200.1

#

interface Virtual-Template1

 ppp authentication-mode pap domain system

 ppp ipcp dns 114.114.114.114

 remote address pool aaa

 ip address 192.168.200.1 255.255.255.0

#

domain system

 authorization-attribute ip-pool aaa

 authentication ppp local

 accounting ppp local

#

local-user l2tp class network

 password cipher $c$3$AbdCFddrmyOZSo++Rv5gkdMmtE4RA4Hhgw==

 service-type ppp

 authorization-attribute user-role level-15

 authorization-attribute user-role network-operator

#

l2tp-group 1 mode lns

 allow l2tp virtual-template 1

 undo tunnel authentication

 tunnel name l2tp

#

 l2tp enable

 

IPsec

#

interface GigabitEthernet1/0/0

 port link-mode route

 combo enable copper

 ip address 10.2.2.3 255.255.255.0

 ipsec apply policy ply

#

ipsec transform-set 1

 encapsulation-mode transport

 esp encryption-algorithm 3des-cbc

 esp authentication-algorithm md5

#

ipsec transform-set 2

 encapsulation-mode transport

 esp encryption-algorithm aes-cbc-128

 esp authentication-algorithm sha1

#

ipsec transform-set 3

 encapsulation-mode transport

 esp encryption-algorithm aes-cbc-256

 esp authentication-algorithm sha1

#

ipsec transform-set 4

 encapsulation-mode transport

 esp encryption-algorithm des-cbc

 esp authentication-algorithm sha1

#

ipsec transform-set 5

 encapsulation-mode transport

 esp encryption-algorithm 3des-cbc

 esp authentication-algorithm sha1

#             

ipsec transform-set 6

 encapsulation-mode transport

 esp encryption-algorithm aes-cbc-192

 esp authentication-algorithm sha1

#

ipsec transform-set 7

 esp encryption-algorithm 3des-cbc

 esp authentication-algorithm md5

#

ipsec transform-set 8

 esp encryption-algorithm aes-cbc-128

 esp authentication-algorithm sha1

#

ipsec transform-set 9

 esp encryption-algorithm aes-cbc-256

 esp authentication-algorithm sha1

#

ipsec transform-set 10

 esp encryption-algorithm des-cbc

 esp authentication-algorithm sha1

#

ipsec transform-set 11

 esp encryption-algorithm 3des-cbc

 esp authentication-algorithm sha1

#

ipsec transform-set 12

 esp encryption-algorithm aes-cbc-192

 esp authentication-algorithm sha1

#

ipsec transform-set l2tp

 esp encryption-algorithm 3des-cbc

 esp authentication-algorithm md5

#

ipsec policy-template pt 1

 transform-set 3 4 5 7 8 9

 ike-profile pf

 reverse-route dynamic

#

ipsec policy ply 1 isakmp template pt

#

ike profile pf

 keychain 1

 exchange-mode aggressive

 local-identity fqdn lns

 match remote identity fqdn lac

 match remote identity address 0.0.0.0 0.0.0.0

 proposal 1 2 3 4 5 6

#

ike proposal 1

 encryption-algorithm aes-cbc-128

 dh group2

 authentication-algorithm md5

#

ike proposal 2

 encryption-algorithm 3des-cbc

 dh group2

 authentication-algorithm md5

#

ike proposal 3

 encryption-algorithm 3des-cbc

 dh group2

#             

ike proposal 4

 encryption-algorithm aes-cbc-256

 dh group2

#

ike proposal 5

 dh group2

#

ike proposal 6

 encryption-algorithm aes-cbc-192

 dh group2

#

ike keychain 1

 pre-shared-key address 0.0.0.0 0.0.0.0 key cipher $c$3$zJ43hnEq21nU56zR2GjAny9C1I+e8x8FPw==

 

 


配置关键点

1. 客户端Host需要手动添加路由,不然拨号的报文可能从电脑的其他网卡出去。

2.开启IPsec反向路由注入功能,开启后在FW3上查看去往Host网段的路由如下:

<H3C>disp ip rou 10.1.1.10

 

Summary count : 2

 

Destination/Mask   Proto   Pre Cost        NextHop         Interface

0.0.0.0/0          Static  60  0           10.2.2.2        GE1/0/0

10.1.1.10/32       Static  60  0           1.1.1.11        GE1/0/0

该案例对您是否有帮助:

您的评价: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

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