Cisco ASA5505-k9 IPSec 真实项目配置实例 8.2或以前版本

Cisco ASA5505-K9 IPSec VPN配置

端口VLAN配置如下:

ASA Version 8.2(5) 
interface Ethernet0/0
 switchport access vlan 10
interface Ethernet0/1
 switchport access vlan 20
interface Ethernet0/2
 switchport access vlan 30

对应端口划分到不同的安全区域(Zone)如下:

interface Vlan10
nameif outside       //端口Eth0/0 划分到outside区域zone
security-level 0
ip address 10.10.10.1  255.255.255.252 

interface Vlan20
nameif inside      	 //端口Eth0/1 划分到inside区域zone
security-level 90
ip address 10.6.1.1 255.255.255.0 

interface Vlan30
nameif inside20			 //端口Eth0/2 划分到inside20区域zone
security-level 60
ip address 192.168.20.1 255.255.255.0 

IPSec VPN 感兴趣的数据流(本端LANIP段:10.6.156.0/24 对端LAN IP段:10.6.1.0/24 和10.0.0.0/16*

access-list vpn-nonat extended permit ip 10.6.156.0 255.255.255.0 10.6.1.0 255.255.255.0 
access-list vpn-nonat extended permit ip 10.6.156.0 255.255.255.0 10.0.0.0 255.255.0.0

感兴趣数据流禁止做NAT转换

nat (inside) 0 access-list vpn-nonat

Define the phase-2 transform set/IPSec Policy(配置第二阶段转换集/ IPSec 策略)

//Configure static crypto map (配置map映射参数)
crypto ipsec transform-set dongtu-set esp-3des esp-md5-hmac

//vpn-nonat匹配的不做NAT转换的数据流
crypto map dongtu-map 1 match address** vpn-nonat

//设置对端IPSec Site的IP地址
crypto map dongtu-map 1 set peer 218.249.Y.Y

//dontu-set 转换集
crypto map dongtu-map 1 set transform-set dongtu-set

//Apply the crypto map and enable ISAKMP/IKEv1 on the outside interface (应用map和ISAKMP/IKEV1 到outside接口上)
crypto map dongtu-map interface outside
crypto isakmp enable outside

Define the phase-2/ISAKMP policy(配置第二阶段 IPsec策略)

crypto isakmp policy 10
 authentication pre-share  	//认证方法为预共享密钥
 encryption 3des   			//加密方法
 hash md5 					 // 散列算法
 group 2
 lifetime 86400

Configure a tunnel-group for a static VPN peer and preshared key(配置通道类型type和通道预共享 密码)

tunnel-group 218.249.X.X type ipsec-l2l
tunnel-group 218.249.X.X ipsec-attributes
 pre-shared-key   donglai123

**//限速配置

class-map speed-limite-dl
 match access-list inside-2-outside

policy-map speed-limite-dl
 class speed-limite-dl
  police output 4000000 1000000

service-policy speed-limite-dl interface inside
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Dreamzhqw

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值