Remote Access VPN Connection Using ASA

| Comments

Remote Access Network Diagram - IMG

The blue firewall on the left is a Cisco ASA and the red computer on the right is any computer that is running the Cisco VPN Client.

After applying the config below the remote access user will be able to access the device at as if it was on the same network as it. We will also be implementing a DNS entry so the Remote Access user can use hostnames.


! Create ACL's for NAT's and Split tunnel
access-list ACL-RA-SPLIT standard permit host
access-list ACL-RA-SPLIT standard permit host
access-list ACL-INSIDE-NONAT extended permit ip host
access-list ACL-INSIDE-NONAT extended permit ip host
! Create pool of IPs that will be assigned to the client.
ip local pool POOL-RA-SPLIT mask
! Create the group policy to define this type of tunnel, dns, wins, domain information
group-policy POLI-RA-SPLIT internal
group-policy POLI-RA-SPLIT attributes
  vpn-tunnel-protocol IPSec
  split-tunnel-policy   tunnelspecified
  split-tunnel-network-list value ACL-RA-SPLIT
  dns-server value
! Create a tunnel-group to define the pre-shared key and pool
tunnel-group TUN-RA-SPLIT type remote-access
tunnel-group TUN-RA-SPLIT general-attributes
  default-group-policy POLI-RA-SPLIT
  address-pool  POOL-RA-SPLIT
  tunnel-group TUN-RA-SPLIT ipsec-attributes
  pre-shared-key sekretK3Y
! Define usernames for authentication
! If using radius, define the radius server with aaa-server commands and then in the tunnel-group authentication-server-group.
username ra-user password passw0rd priv 1
! Apply crypto statements
crypto ipsec transform-set 3DES esp-3des esp-sha-hmac
crypto dynamic-map dynmap 10 set transform-set 3DES
crypto map Outside_Map 500 ipsec-isakmp dynamic dynmap
crypto map Outside_Map interface outside
crypto isakmp identity address
crypto isakmp enable outside
crypto isakmp policy 1
  authentication pre-share
  encryption 3des
  hash sha
  group 1
  lifetime 3600
crypto isakmp policy 2

Cisco VPN Client config

  • Create a new VPN profile in the Cisco VPN Client
  • Use the group name: TUN-RA-SPLIT.
  • Use the username ra-user/passw0rd

RA VPN Client - IMG

RA VPN Client - IMG

asa, cisco, ra, remote access, scripts, vpn