Faire une cryptomap que l’on positionnera sur l’interface outside (VpnMAP).
(config)# crypto map VpnMAP 10 ipsec-isakmp
(config-crypto-map)# set peer 83.0.0.1
(config-crypto-map)# set transform-set CrypSET
(config-crypto-map)# match address VPN
(config)# interface serial 0/0/0
(config-if)# crypto map VPNMAP *Jan 3 07:16:26.785: %CRYPTO-6-ISAKMP_ON_OFF: ISAKMP is ON
Router Y config
(config)# crypto isakmp policy 10
(config-isakmp)# encryption aes
(config-isakmp)# authentication pre-share
(config-isakmp)# group 5
(config)# crypto isakmp key KeyVPN address 80.0.0.1
(config)# crypto ipsec transform-set CrypSET esp-aes esp-sha-hmac
Création de l’ACL LAN du NAT.
(config)# ip access-list extended LAN
(config-ext-nacl)# no permit ip 192.168.10.0 0.0.0.255 any
(config-ext-nacl)# deny ip 192.168.10.0 0.0.0.255 192.168.20.0 0.0.0.255
(config-ext-nacl)# permit ip 192.168.10.0 0.0.0.255 any
Création de l’ACL nommé VPN.
(config)# ip access-list extended VPN
(config-ext-nacl)# permit ip 192.168.10.0 0.0.0.255 192.168.20.0 0.0.0.255
Création du Cryptomap.
(config)# crypto map VpnMap 10 ipsec-isakmp
(config-crypto-map)# set peer 80.0.0.1
(config-crypto-map)# set transform-set CryptSET
(config-crypto-map)# match address VPN
Attribution du cryptomap sur l’interface outside.