[cicso-cisco] [cisco-win2008] 点到点 ipsec

一 网络拓扑图
网络拓扑图
*首先配置思科路由器之间的IPSEC,两个内网互通以后将右端设备换成windows2008服务器


二 CISCO site-to-site
物理连接图

R1/R2配置

R1#  sh run
Building configuration...

Current configuration : 1832 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
resource policy
!
ip subnet-zero
no ip icmp rate-limit unreachable
!
!
ip cef
ip tcp synwait-time 5
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
crypto isakmp policy 1
 encr 3des
 hash md5
 authentication pre-share
 lifetime 28800
crypto isakmp key pReKeY address 10.1.2.1
!
!
crypto ipsec transform-set transet esp-3des esp-md5-hmac
 mode transport
!
crypto map map1 1 ipsec-isakmp
 set peer 10.1.2.1
 set transform-set transet
 match address 100
!
!
!
!
interface FastEthernet0/0
 ip address 192.168.1.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 duplex half
!
interface Serial1/0
 ip address 10.1.1.1 255.255.255.0
 ip nat outside
 ip virtual-reassembly
 serial restart-delay 0
 crypto map map1
!
interface Serial1/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart-delay 0
!
ip classless
ip route 0.0.0.0 0.0.0.0 Serial1/0
!
no ip http server
no ip http secure-server
!
ip nat inside source list 101 interface Serial1/0 overload
!
access-list 100 permit ip 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255
access-list 101 deny   ip 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255
access-list 101 permit ip 192.168.1.0 0.0.0.255 any
no cdp log mismatch duplex
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
 shutdown
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
 stopbits 1
line aux 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
 stopbits 1
line vty 0 4
 login
!
!
end

R1#

测试结果


三 CISCO-WIN2008 site-to-site
物理连接图
(两个局域网的网关设备分别是R1和Win2008)

1.开启windows 2008的NAT功能(路由和远程访问)
开启NAT

2.打开安全策略,添加IP安全策略
IP安全策略

3.依次添加IP筛选器(双向)和筛选器操作
3.1)创建IP筛选器一,左至右
IP筛选器一,左至右

3.2)创建IP筛选器一,右至左
IP筛选器一,右至左

3.3)创建筛选器操作
筛选器操作

3.4)创建IP筛选器规则
规则

3.5)IP筛选器属性
属性

4.应用IP策略
应用IP策略

5.开启IPSEC审核查看结果
IPSEC审核

6.测试结果
6.1)互PING、show结果
结果1

6.2)事件查看器+防火墙记录
事件查看器+防火墙记录

6.3)事件查看器详细内容

已建立 IPSec 快速模式安全关联。
	
本地终结点:
	网络地址:	192.168.2.0
	网络地址掩码:	255.255.255.0
	端口:			0
	隧道终结点:		10.1.2.1

远程终结点:
	网络地址:	192.168.1.0
	网络地址掩码:	255.255.255.0
	端口:			0
	专用地址:		0.0.0.0
	隧道终结点:		10.1.1.1

	协议:		0
	密钥模块名称:	-

加密信息:
	完整性算法 - AH:	-
	完整性算法 - ESP:	MD5
	加密算法:	3DES

安全关联信息:
	生存时间 - 秒:		3600
	生存时间 - 数据:		4608000
	生存时间 - 数据包:	2147483647
	模式:			隧道
	角色:			响应程序
	快速模式筛选器 ID:	66922
	主模式 SA ID:		113
	快速模式 SA ID:		11

其他信息:
	入站 SPI:		2881199904
	出站 SPI:		3526004510
	虚拟接口隧道 ID:		0
	流量选择器 ID:		0
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值