用野蛮模式
总部侧配置:
interface LoopBack0
ip address 172.16.1.1 24
interface GigabitEthernet 0/0
ip address 192.168.1.2 24
nat outbound 3001
ipsec apply policy MSR1
acl advanced 3001
rule 10 deny ip source 172.16.1.0 0.0.0.255 destination 172.16.2.0 0.0.0.255
rule 15 deny ip source 172.16.1.0 0.0.0.255 destination 172.16.3.0 0.0.0.255
rule 30 deny ip source 172.16.2.0 0.0.0.255 destination 172.16.3.0 0.0.0.255 //分支2与分支1通过总部通信
rule 35 deny ip source 172.16.3.0 0.0.0.255 destination 172.16.2.0 0.0.0.255 //分支1与分支2通过总部通信
rule 300 permit ip
ipsec transform-set R1-tran
esp encryption-algorithm 3des-cbc
esp authentication-algorithm sha1
#
ipsec policy-template tem 1
transform-set R1-tran
ike-profile R1-profile
#
ipsec policy MSR1 1 isakmp template tem
#
ike identity fqdn zongbu
#
ike profile R1-profile
keychain R1-keychain
dpd interval 10 on-demand
exchange-mode aggressive
local-identity fqdn zongbu
match remote identity fqdn client
match remote identity address 0.0.0.0 0.0.0.0
proposal 1
#
ike proposal 1
encryption-algorithm 3des-cbc
dh group2
#
ike keychain R1-keychain
pre-shared-key hostname client key simple 12345
分支1侧配置:
interface LoopBack0
ip address 172.16.2.1 24
interface GigabitEthernet 0/0
ip address 192.168.2.2 24
nat outbound 3001
ipsec apply policy MSR2
acl advanced 3000
rule 10 permit ip source 172.16.2.0 0.0.0.255 destination 172.16.1.0 0.0.0.255
rule 15 permit ip source 172.16.2.0 0.0.0.255 destination 172.16.3.0 0.0.0.255
#
acl advanced 3001
rule 10 deny ip source 172.16.2.0 0.0.0.255 destination 172.16.1.0 0.0.0.255
rule 15 deny ip source 172.16.2.0 0.0.0.255 destination 172.16.3.0 0.0.0.255
rule 300 permit ip
ipsec transform-set R2-tran
esp encryption-algorithm 3des-cbc
esp authentication-algorithm sha1
#
ipsec policy MSR2 1 isakmp
transform-set R2-tran
security acl 3000
remote-address 192.168.1.2
ike-profile R2-profile
sa duration time-based 3600
sa duration traffic-based 1843200
#
ike identity fqdn client
#
ike profile R2-profile
keychain R2-keychain
dpd interval 10 on-demand
exchange-mode aggressive
local-identity fqdn client
match remote identity fqdn zongbu
proposal 1
#
ike proposal 1
encryption-algorithm 3des-cbc
dh group2
#
ike keychain R2-keychain
pre-shared-key address 192.168.1.2 255.255.255.255 key simple 12345
分支2侧配置:
interface LoopBack0
ip address 172.16.3.1 24
interface GigabitEthernet 0/0
ip address 192.168.3.2 24
nat outbound 3001
ipsec apply policy MSR3
acl advanced 3000
rule 5 permit ip source 172.16.3.0 0.0.0.255 destination 172.16.1.0 0.0.0.255
rule 10 permit ip source 172.16.3.0 0.0.0.255 destination 172.16.2.0 0.0.0.255
#
acl advanced 3001
rule 5 deny ip source 172.16.3.0 0.0.0.255 destination 172.16.1.0 0.0.0.255
rule 10 deny ip source 172.16.3.0 0.0.0.255 destination 172.16.2.0 0.0.0.255
rule 300 permit ip
ipsec transform-set R3-tran
esp encryption-algorithm 3des-cbc
esp authentication-algorithm sha1
#
ipsec policy MSR3 1 isakmp
transform-set R3-tran
security acl 3000
remote-address 192.168.1.2
ike-profile R3-profile
sa duration time-based 3600
sa duration traffic-based 1843200
#
ike identity user-fqdn client
#
ike profile R3-profile
keychain R3-keychain
dpd interval 10 on-demand
exchange-mode aggressive
local-identity fqdn client
match remote identity fqdn zongbu
proposal 1
#
ike proposal 1
encryption-algorithm 3des-cbc
dh group2
#
ike keychain R3-keychain
pre-shared-key address 192.168.1.2 255.255.255.255 key simple 12345
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论