6.1 IKEv2 CLI 配置Anyconnect3.0 to ASA

来源:互联网 发布:java工程师任职要求 编辑:程序博客网 时间:2024/06/15 16:42
IKEv2.6.1 CLI 配置Anyconnect3.0 to ASA 
---------------------------------------------------
   .1    .10      .10    .1        .1     .10 
win7-------Internet-------Center-ASA-------Inside 
  202.100.1.0/24   61.128.1.0/24    10.1.1.0/24  


---------------------------------------------------


Win7 


ip : 202.100.1.1 
mask:255.255.255.0 
GW:  202.100.1.10 
 
c:/windows/system32/drivers/etc/hosts
在hosts 文件里加一个A记录:
61.128.1.1 Center-ASA.mingjiao.org




hostname Internet 


interface FastEthernet 0/0 
 ip address 202.100.1.10 255.255.255.0 
 no shutdown 
 
interface FastEthernet 1/0 
 ip address 61.128.1.10 255.255.255.0 
 no shutdown 


hostname Center-ASA 
 
interface GigabitEthernet 1 
 nameif Outside 
 security-level 0 
 ip address 61.128.1.1 255.255.255.0 
 no shutdown 
 
interface GigabitEthernet 2 
 nameif Inside 
 security-level 100 
 ip address 10.1.1.1 255.255.255.0 
 no shutdown 


route Outside 0.0.0.0 0.0.0.0 61.128.1.10 


hostname Inside 


interface FastEthernet 2/0 
 ip address 10.1.1.10 255.255.255.0 
 no shutdown 


ip route 0.0.0.0 0.0.0.0 10.1.1.1 


--------------------------------------------------


配置NTP (时间同步非常重要)


Internet 上配置:


clock timezone GMT +8 
clock set 11:54:00 14 oct 2016 
ntp master 


Center-ASA 上配置: 


clock timezone GMT +8 
ntp server 61.128.1.10 


---------------------------------------------------
Internet 上配置证书服务器


ip http server 


ip domain name mingjiao.org 


crypto pki server CA
 database level complete 
 issuer-name cn=Internet.mingjiao.org,ou=mingjiao
 grant auto 
 no shutdown 
---------------------------------------------------
ASA:


Center-ASA 上配置 Trustpoint
 
1. 配置 Trustpoint 


domain-name mingjiao.org 
crypto key generate rsa label Center-ASA.mingjiao.org modulus 1024 
crypto ca trustpoint CA
 enrollment url http://61.128.1.10:80 
 fqdn Center-ASA.mingjiao.org 
 subject-name cn=Center-ASA.mingjiao.org,ou=mingjiao
 keypair Center-ASA.mingjiao.org 


2.认证证书服务器,获取根证书:


crypto ca authenticate CA 


3.申请个人证书: 
 
crypto ca enroll CA 




配置SSL使用 “CA”颁发的证书


ssl trust-point CA 


查看 Profile配置 


Center-ASA#more flash:/CCIE-Profile.xml 


可以通过ASDM和anyconnnect Profile-Editor产生




配置 WebVPN 


webvpn 
 enable Outside 
 anyconnetct image disk0:/anyconnetct-win-3.0.0629-k9.pkg 1 
 anyconnetct profiles CCIE-Profile disk0:/CCIE-Profile.xml
 anyconnetct enable


配置地址池 


ip local pool CCIE-Pool 123.1.1.100-123.1.1.200 




配置 Group-Policy


group-policy CCIE-Policy internal 
group-policy CCIE-Policy attributes 
 vpn-tunnel-protocol ikev2 ssl-client ssl-clientless
 address-pools value CCIE-Pool 
 webvpn 
  anyconnect profiles value CCIE-Profile type user 


创建用户并关联 Group-Policy


username CCIEuser password cisco 
username CCIEuser attributes 
 vpn-group-policy CCIE-Policy 




配置 IKEv2


crypto ikev2 enable Outside client-services port 443 
crypto ikev2 remote-access trustpoint CA 
crypto ikev2 policy 10 
crypto ipsec ikev2 ipsec-proposal CCIE-IKEv2-Proposal 


crypto dynamic-map CCIE-Dynamp 100 set ikev2 ipsec-proposal CCIE-IKEv2-Proposal
crypto map CCIE-Map 1000 ipsec-isakmp dynamic CCIE-Dymap 
crypto map CCIE-Map interface Outside


--------------------------------------------------


show webvpn 


先使用www用ssl下载 anyconnect3.0 ,在使用anyconnet3.0 去连接ipsec webvpn。




--------------------------------------------



























































































































































































































0 0
原创粉丝点击