Configuring IPSec
The following sample configuration shows how to configure FTP and telnet for IPSec.
1. Define the transform set.
CONFIGURATION mode
crypto ipsec transform-set myXform-seta esp-authentication md5 esp-
encryption des
2. Define the crypto policy.
CONFIGURATION mode
crypto ipsec policy
myCryptoPolicy 10 ipsec-manual
transform-set myXform-set
session-key inbound esp 256
auth <key> encrypt <key>
session-key outbound esp 257
auth <key> encrypt <key>
match 0 tcp a::1 /128 0 a::2 /128 21
match 1 tcp a::1 /128 21 a::2 /128 0
match 2 tcp 1.1.1.1 /32 0 1.1.1.2 /32 21
match 3 tcp 1.1.1.1 /32 21 1.1.1.2 /32 0
3. Apply the crypto policy to management traffic.
CONFIGURATION mode
management crypto-policy
myCryptoPolicy
436 Internet Protocol Security (IPSec)