ASA8.2版本及以下ipsec隧道配置模板

配置模板:

interface e0/0

nameif inside

security-level 100

ip address x.x.x.x 255.255.255.0(修改为本地内网 IP 及掩码 )

!

interface e0/1

nameif outside

security-level 0

ip address x.x.x.x 255.255.255.248 (修改为本地公网 IP 及掩码 )

!

interface Ethernet0/2

!

interface Ethernet0/3

!

access-list 101 extended permit ip x.x.x.x 255.255.255.0 x.x.0.0 255.255.0.0 (修改为本地内网 IP 及掩码 )

route outside 0.0.0.0 0.0.0.0 x.x.x.x (修改为本地公网网关 )

crypto ipsec transform-set 名称1 esp-3des esp-md5-hmac(定义字符集)

crypto map test 1 match address 101(定义兴趣流)

crypto map test 1 set peer x.x.x.x(远端公网IP)

crypto map test 1 set transform-set 名称1

crypto map test interface outside (接口调用策略)

crypto isakmp enable outside(开启IKE协商)

crypto isakmp policy 10(IKE安全策略)

authentication pre-share

encryption des

hash md5

group 2

lifetime 86400

!

tunnel-group x.x.x.x type ipsec-l2l //定义×××的形式以peer

tunnel-group x.x.x.x ipsec-attributes//进入ipsec-***的属性配置

pre-shared-key xxx认证密钥

转载于:https://blog.51cto.com/livetony/2407689

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值