IPSec(IP Security)协议:IPSec 协议不是一个单独的协议,它给出了IP 网络上数据安全的一整套体系结构。包括AH(Authentication Header)、ESP(Encapsulating Security Payload)、IKE(Internet Key Exchange)等协议。
创建安全策略,可以采用手工或者自动协商配置两种方式
配置步骤:
1.acl访问控制
2. 创建安全提议、使用DES 加密,采用传输模式
3.创建安全策略,使用IKE 协商方式,并配置IKE 预设认证字。
4.在接口上配置IP 地址,应用安全策略组。
案例1:
配置步骤:
firewall-1:
基本配置:
ip address 192.168.10.1 255.255.255.0
ip route-static 0.0.0.0 0.0.0.0 1.1.10.1 preference 60
acl配置:
acl number 3000
rule 10 permit ip source 192.168.10.0 0.0.0.255 destination 192.168.20.0 0.0.0.255
rule 20 deny ip source any destination any
rule 10 permit ip source 192.168.10.0 0.0.0.255 destination 192.168.30.0 0.0.0.255
rule 20 deny ip source any destination any
安全提议1
ipsec proposal ipsec1 encapsulation-mode tunnel esp authentication-algorithm md5 esp encryption-algorithm des 安全提议2 ipsec proposal ipsec2 encapsulation-mode tunnel esp authentication-algorithm md5 esp encryption-algorithm des ike名称
ike设置
ipsec policy policy1 10 isakmp sec acl 3000 proposal ipsec1 ipsec policy policy1 20 isakmp sec acl 3001 proposal ipsec2 interface ethernet0/2 ipsec policy policy1
firewall-2:
基本设置:
interface ethernet0/0
ip address 1.1.20.100 255.255.255.0
设置acl:
acl number 3000
rule 10 permit ip source 192.168.20.0 0.0.0.255 dest 192.168.10.0 0.0.0.255
rule 20 deny ip source any dest any
安全提议:
ipsec propo ipsec
encapsulation-mode tunnel
transform esp
ike名称:
ike local-name fw2
ike设置:
ike peer peer1
exchange-mode aggressive
pre-shared-key simple 123
remote-address 1.1.10.1
安全策略:
ipsec policy policy2 10 isakmp
ike-peer peer1
应用到接口:
interface ethernet0/0
firewall-3:
基本设置:
interface ethernet0/1
ip address 1.1.30.100 255.255.255.0
设置acl:
acl number 3000
rule 10 permit ip source 192.168.30.0 0.0.0.255 dest 192.168.10.0 0.0.0.255
rule 20 deny ip source any dest any
安全提议:
ipsec propo ipsec1
encapsulation-mode tunnel
ike名称:
ike local-name fw3
ike设置:
ike peer peer2
exchange-mode aggressive
pre-shared-key simple 123
remote-address 1.1.10.1
安全策略:
ipsec policy policy3 10 isakmp
ike-peer peer1
应用到接口:
interface ethernet0/1
三层交换机:
interface ethernet0/0
ip address 1.1.20.1 255.255.255.0
interface ethernet0/1
ip address 1.1.30.1 255.255.255.0
interface ethernet0/2
ip address 1.1.10.1 255.255.255.0