Define the private VLAN1 and VLAN2 interfaces (IP address and mask), and define one of them as the PMI and ICC-VLAN.
Define the public FastEthernet10/3 interface (IP address and mask).
Define the default gateway (the IP of the next router).
Define the DNS name-server-list and the IP address of the DNS server.
Note:
Alternatively, you can use DHCP Client or PPPoE to dynamically learn the DNS server’s IP address. Use the ip dhcp client request command when using DHCP client, or use the ppp ipcp dns request command when using PPPoE.
Define the ISAKMP policy, using the crypto isakmp policy command.
Define the remote peer with FQDN, using the crypto isakmp peer address command, including:
the pre-shared key
the ISAKMP policy
Define the IPSEC transform-set, using the crypto ipsec transform-set command.
Define the crypto map, using the crypto map command.
Define the crypto list as follows:
Set the local address to the public interface name (for example, FastEthernet 10/3.0)
For each private interface, define an ip-rule using the following format:
source-ip<private subnet><private subnet wild card mast>. For example, 10.10.10.0 0.0.0.255
destination-ip any
protect crypto map 1
Define the ingress access control list (ACL) to protect the device from Incoming traffic from the public interface, as follows:
Permit DNS traffic to allow clear (unencrypted) DNS traffic
Permit IKE Traffic (UDP port 500) for VPN control traffic (IKE)
Permit ESP traffic (IP Protocol ESP) for VPN data traffic (IPSEC)
Permit ICMP traffic, to support PMTU application support, for a better fragmentation process
For each private subnet, add a permit rule, with the destination being the private subnet and the source being any.
This traffic will be allowed only if it tunnels under the VPN, because of the crypto list.
Define all other traffic (default rule) as deny in order to protect the device from non-secure traffic
Define the egress access control list to protect the device from sending traffic that is not allowed to the public interface (optional):
Permit DNS traffic to allow clear (unencrypted) DNS traffic
Permit IKE Traffic (UDP port 500) for VPN control traffic (IKE)
Permit ESP traffic (IP Protocol ESP) for VPN data traffic (IPSEC)
Permit ICMP traffic, to support PMTU application support, for a better fragmentation process
For each private subnet, add a permit rule, with the source being the private subnet, and the destination being any
Define all other traffic (default rule) as deny in order to protect the device from sending non-secure traffic
Activate the crypto list, the ingress access control list, and the egress access control list, on the public interface.