???EASY??? VPN for Cisco Router


{ 🌐 (LAN: 192.168.1.0/24) [R1/L2TP-VPN-Server] (.1) <- (1.1.12.0/30) -> (.2) [R2] (.2) <- (1.1.23.0) -> (.1) [R3/NAT] (LAN: 172.16.1.0/24) [PC1/DHCP] 🌐 }

[R1]

R1(config)#aaa new-model
R1(config)#aaa authentication login default line none
R1(config)#aaa authentication login EASYVPN-AAA local
R1(config)#aaa authorization network EASYVPN-AAA local
R1(config)#username easyuser password P@$$w0rd
R1(config)#service password-encryption
R1(config)#crypto iaskmp fragmentation
R1(config)#crypto iaskmp policy 10
R1(config-iaskmp)#encryption aes 256
R1(config-iaskmp)#authentication pre-share
R1(config-iaskmp)#group 5
R1(config-iaskmp)#exit
R1(config)#ip local pool EVC-POOL 192.168.1.101 192.168.1.149
R1(config)#ip access-list extended EASYVPN-TRAFFIC
R1(config-ext-nacl)#permit ip 192.168.1.0 0.0.0.255 any
R1(config-ext-nacl)#exit
R1(config)#crypto iaskmp client configuration group EASYVPN-GROUP
R1(config-isakmp-group)#acl EASYVPN-TRAFFIC
R1(config-isakmp-group)#key P@$$w0rd
R1(config-isakmp-group)#dns 192.168.1.1
R1(config-isakmp-group)#domain vdi.local
R1(config-isakmp-group)#pool EVC-POOL
R1(config-isakmp-group)#banner *
! ! ! AUTHORIZED ACCESS ONLY ! ! !
*
R1(config-isakmp-group)#exit
R1(config)#crypto ipsec transform-set EASYVPN-PHASE2 esp-aes 256 esp-sha-hmac
R1(cfg-crypto-trans)#exit