f1005防火墙用ipsec主模式对接云上,有没有详细配置案例,谢谢
f1005防火墙用ipsec主模式对接云上,有没有详细配置案例,谢谢
(0)
最佳答案
#创建IPSEC的感兴趣流,用于匹配IPSEC数据。
<H3C>system-view
[H3C]acl advanced 3999
[H3C-acl-ipv4-adv-3999]rule permit ip source 192.168.10.0 0.0.0.255 destination 192.168.20.0 0.0.0.255
[H3C-acl-ipv4-adv-3999]quit
#创建acl 3888调用在外网接口用于排除IPSEC兴趣流不做NAT。
[H3C]acl advanced 3888
[H3C-acl-ipv4-adv-3888]rule deny ip source 192.168.10.0 0.0.0.255 destination 192.168.20.0 0.0.0.255
[H3C-acl-ipv4-adv-3888]rule permit ip source any
[H3C-acl-ipv4-adv-3888]quit
#加密类型设置为aes-cbc-128,认证类型设置为sha1。
[H3C]ipsec transform-set 1
[H3C-ipsec-transform-set-1]esp encryption-algorithm aes-cbc-128
[H3C-ipsec-transform-set-1]esp authentication-algorithm sha1
[H3C-ipsec-transform-set-1]quit
#IKE安全提议默认的认证类型为sha1,加密类型为DES-CBC,DH组为DH1,所以不需要配置也存在这些参数。
[H3C]ike proposal 1
[H3C-ike-proposal-1]quit
#创建IKE密钥,地址填写分部侧设备的公网IP,密码设置为123456。
[H3C]ike keychain 1
[H3C-ike-keychain-1]pre-shared-key address 198.76.26.90 key simple 123456
[H3C-ike-keychain-1]quit
#创建IKE安全框架,将本端地址、对端地址、keychain、proposal关联起来。
[H3C]ike profile 1
[H3C-ike-profile-1]keychain 1
[H3C-ike-profile-1]local-identity address 101.88.26.34
[H3C-ike-profile-1]match remote identity address 198.76.26.90
[H3C-ike-profile-1]proposal 1
[H3C-ike-profile-1]quit
#创建IKE安全策略GE1/0/3将transform-set、acl、ike-profile、本端地址、对端地址关联起来。
[H3C]ipsec policy GE1/0/3 1 isakmp
[H3C-ipsec-policy-isakmp-GE1/0/3-1]transform-set 1
[H3C-ipsec-policy-isakmp-GE1/0/3-1]security acl 3999
[H3C-ipsec-policy-isakmp-GE1/0/3-1]local-address 101.88.26.34
[H3C-ipsec-policy-isakmp-GE1/0/3-1]remote-address 198.76.26.90
[H3C-ipsec-policy-isakmp-GE1/0/3-1]ike-profile 1
[H3C-ipsec-policy-isakmp-GE1/0/3-1]quit
[H3C]interface GigabitEthernet 1/0/3
[H3C-GigabitEthernet1/0/3]ipsec apply policy GE1/0/3
[H3C-GigabitEthernet1/0/3]nat outbound 3888
[H3C-GigabitEthernet1/0/3]quit
#创建对象组,组名称为192.168.10.0
[H3C]object-group ip address 192.168.10.0
[H3C-obj-grp-ip-192.168.10.0]0 network subnet 192.168.10.0 255.255.255.0
[H3C-obj-grp-ip-192.168.10.0]quit
#创建对象组,名称为192.168.20.0
[H3C]object-group ip address 192.168.20.0
[H3C-obj-grp-ip-192.168.20.0]0 network subnet 192.168.20.0 255.255.255.0
[H3C-obj-grp-ip-192.168.20.0]quit
#创建对象策略,策略名称为Untrust-Trust
[H3C]object-policy ip Untrust-Trust
[H3C-object-policy-ip- Untrust-Trust] rule 0 pass source-ip 192.168.20.0 destination-ip 192.168.10.0
[H3C-object-policy-ip- Untrust-Trust]quit
#创建Untrust到Tust域的域间策略调用Untrust-Trust策略
[H3C]zone-pair security source Untrust destination Trust
[H3C-zone-pair-security-Untrust-Trust]object-policy apply ip Untrust-Trust
[H3C-zone-pair-security-Untrust-Trust]quit
#创建对象策略,策略名称为Untrust-Local
[H3C]object-policy ip Untrust-Local
[H3C-object-policy-ip-Untrust-Local] rule 0 pass
[H3C-object-policy-ip-Untrust-Local]quit
#创建Untrust到Local域的域间策略调用Untrust- Local策略
[H3C]zone-pair security source Untrust destination Local
[H3C-zone-pair-security-Untrust-Local]object-policy apply ip Untrust-Local
[H3C-zone-pair-security-Untrust-Local]quit
#创建对象策略,策略名称为Local-Untrust
[H3C]object-policy ip Local-Untrust
[H3C-object-policy-ip-Local-Untrust] rule 0 pass
[H3C-object-policy-ip-Local-Untrust]quit
#创建Local到Untrust域的域间策略调用Local-Untrust策略
[H3C]zone-pair security source Local destination Untrust
[H3C-zone-pair-security-Local-Untrust]object-policy apply ip Local-Untrust
[H3C-zone-pair-security-Local-Untrust]quit
#与总部侧配置基本相同,IPSEC感兴趣流需要取反配置。
[H3C]save force
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论