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 FastEthernet 10/3 interface (IP address and mask).
Define the default gateway (the IP address of the next router).
Define the object tracking configuration, and define when an object tracker is considered down, as follows:
Define a track list that will monitor (by ICMP) five hosts behind the specific peer. If two or more hosts are not working then the object tracker is down. The Branch Gateway will then pass on to the next peer in the peer group list.
Define the ISAKMP policy, using the crypto isakmp policy command.
Define the 3 remote peers, using the crypto isakmp peer address command, and specify for each one:
Define a peer group that include all three remote peers, using the crypto isakmp peer-group command.
Define the IPSEC transform-set, using the crypto ipsec transform-set command.
Define the Crypto map entity, 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:
Define the ingress access control list to protect the device from incoming traffic from the public interface, as follows:
Permit IKE Traffic (UDP port 500) for VPN control traffic (IKE)
Note:
If you are using NAT Traversal, you must also open UDP port 4500 and 2070.
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
Optionally, define the egress access control list to protect the device from sending traffic that is not allowed to the public interface:
Permit IKE Traffic (UDP port 500) for VPN control traffic (IKE)
Note:
If you are using NAT Traversal, you also need to open UDP port 4500 and 2070.
Permit ESP traffic (IP Protocol ESP) for VPN data traffic (IPSEC)
Permit ICMP traffic, to support the PMTU application, 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.