This document describes the OpenROUTE Networks implementation of IPSec. It has the following topics:
Introducing IPSec
How IPSec Works
Entering IPSec Commands
Configuring IPSec
Using IPSec With NAT, IP Filters and Other IP Protocols
IPSec Commands
Introducing IPSec
The IPSec protocol provides secure, interoperable communication across a network, transparent to the application. IPSec is the emerging standard for secure internet applications, such as electronic commerce and corporate VPNs. The OpenROUTE implementation goes beyond other offerings by also implementing the Internet Key Exchange (IKE) protocol for key management at the application level in secure networks.
This document describes the IPSec component of OpenROUTE Networks software.
A related document, Managing Certificates, describes the process of handling the certificate requirements for IKE and IPSec.
Terminology
This document uses the following terminology.
Features
OpenROUTE IPSec provides three main functions:
Authentication, which includes data authentication (integrity) and origin authentication.
Data authentication verifies that data is not altered during transmission. This includes Anti-replay service, which OpenROUTE software automatically provides if you are using IKE.
Origin authentication ensures that you are actually communicating with the individual or organization you believe you are communicating with.
Encryption, makes your data confidential by making it unreadable to everyone but you.
Compression, to compress data before encrypting it.
Authentication Header (AH) Protocol uses packets headers to authenticate the origin of traffic, as well as the integrity of data.
Encapsulating Security Payload (ESP) uses packets headers to encrypt user data. You can also use ESP to authenticate the origin of traffic.
IPCOMP (IP Compression) compresses data.
Exporting Algorithms from the United States
OpenROUTE provides several encryption and authentication algorithms to provide different levels of encryption or authentication strength.
United States (U.S.) government encryption export policy limits the key size, and hence the strength, of encryption equipment exported outside of the U.S., with the exception of Canada. OpenROUTE Networks provides different software for domestic and export-controlled use.
The following table shows the algorithms and key lengths provided in these two versions of software.
| Algorithm | U.S. and Canada Key Lengths | Export-controlled Key Lengths |
|---|---|---|
| DES | 56 | 56 |
| Triple DES | 168 (Three 56-bit keys) | Not Exportable |
| Blowfish | 56 to 256 | 56 |
| Diffie-Hellman Modulus | 768, 1024, 1536 | 768, 1024 |
RFCs Supported
The OpenROUTE Networks IPSec software implements the following RFCs:
The ESP CBC-Mode Cipher Algorithms (RFC 2451)
The ESP DES-CBC Cipher Algorithm With Explicit IV (RFC 2405)
The ESP DES-CBC Transform (RFC 1829)
HMAC: Keyed-Hashing for Message Authentication (RFC 2104)
The Internet IP Security Domain of Interpretation for ISAKMP (RFC 2407)
The Internet Key Exchange (IKE) (RFC 2409)
Internet Security Association and Key Management Protocol (ISAKMP) (RFC 2408)
IP Authentication Header (RFC 2402)
IP Encapsulating Security Payload (ESP) (RFC 2406)
IP Payload Compression Protocol (IPComp) (RFC 2393)
IP Security Document Roadmap (RFC 2411)
The NULL Encryption Algorithm and Its Use With IPSec (RFC 2410)
IP Payload Compression Using LZS (RFC 2395)
Security Architecture for the Internet Protocol (RFC 2401)
The Use of HMAC-MD5-96 within ESP and AH (RFC 2403)
The Use of HMAC-SHA-1-96 within ESP and AH (RFC 2404)

IP Addressing for IPSec
In cases where you use dynamic addressing on your WAN connection, you may want to use the router's internal IP address as the source or destination address in your peer definitions.
Other situations where you may want to use the router's internal IP address as the source or destination address is in cases where you are using IPSec with multiple WAN interfaces. If one WAN interface is down, IPSec traffic could be routed through the second WAN card, as long as you have set up routing accordingly.
IKE Transforms
IKE provides an automated way to securely exchange keys and to negotiate security associations, or policies. IKE identifies the peer and authenticates that you are communicating with the desired party.
IKE uses two phases
IKE phase 1 establishes the exchange of session keys using the information you specify in IKE transforms. IKE then uses these keys to protect IKE phase 2 negotiations.
IKE phase 2 establishes IPSec-level security associations, which are then used to protect user data. IKE phase 2 uses the parameters in SA proposals to negotiate security associations.
If it finds a match, it accepts the matching IKE transform proposal.
If it does not find a match, it rejects the request, and the session is not established.
The responder considers only the first proposal from the initiator; it ignores any subsequent proposals.
Within a proposal, the responder considers only the first authentication, encryption, or compression algorithms. It ignores any subsequent algorithms in a proposal.
Main mode uses a series of six messages to negotiate security settings, while aggressive mode uses three messages.
Main mode provides identity protection, while aggressive mode does not provide identity protection.
Main mode negotiates the Diffie-Hellman group, while aggressive mode does not negotiate the Diffie-Hellman group.
IKE Parameters
An IKE transform contains the following parameters.
SA Proposals
A Security Association (SA) is an agreement between two peers on how they authenticate and protect packets they send to each other. You can manually configure this agreement using Manual SA Proposals. If you are using IKE, the peers negotiate this agreement using an IKE Phase 2 exchange. You set your preferences for this negotiation in SA proposals.
SA proposals control what this router proposes to the IPSec peer when creating a new IPSec security association via IKE. You may specify a ordered sequence of SA proposals in one IPSec policy to provide the IPSec peer with several choices.
When you set up IKE-negotiated SAs, all authentication and encryption methods and algorithms, as well as other SA parameters, must match exactly at each peer or IKE negotiations fail and the SA is not established. IKE does not establish an SA where protection would not be equal for both peers.
Selecting Algorithms
You indicate your preferences for the following IPSec features in your SA proposal definition.
authentication method and algorithm
encryption method and algorithm
compression algorithm
On the positive side, more choices mean a better chance at interoperability with the IPSec peer.
On the negative side, more choices mean that the IPSec peer might not choose the algorithm you really prefer.
both ESP encryption and authentication
Or
AH authentication
ESP encryption only
Or
manual SA proposals
one SA for AH header
one SA for ESP header
one SA for compression
IPSec> prompt.
Manual SA Proposals
If you are not using IKE, you can set up manual SA proposals. You create the manual proposals the same way as IKE SA proposals, but you need to enter inbound and outbound keys and SPI values for each header (AH, ESP, compression) that you use.
IPSec peers do not negotiate via IKE Phase 2 when you use a manual SA proposal. IPSec creates the SA proposal using whatever the SA proposal indicates as its preferred choice.
Notes:
Timeout parameters in manual SA proposals do not apply because manual SAs do not time out.
The Anti-replay feature is always off in manually-created SAs.
You cannot share manual SA proposals in multiple policies. The reason is that inbound SPIs for each protocol type (AH, ESP, or Comp) must be unique for each SA proposal on this router. At the same time, two peers at either end of an IPSec connection must have matching SPIs.
In addition to these settings, if after one minute an SA has sent at least three outbound packets to the peer, but has received no inbound packets from the peer, the SA automatically expires. You can adjust the length of this inactivity timer.
SA Proposal Parameters
SA proposals contain the following parameters.
Policies
A policy lets you determine what type of traffic IPSec protects and how it protects that traffic. Like a filter, a policy has criteria that describe the types of packets it recognizes, and it takes action when it recognizes a packet.
The policy lets you protect different classes of traffic, such as traffic from different hosts, protocols, or ports, independently of others.
You can set up a policy to take one of the following actions when it matches a packet. This prevents traffic from unnecessarily receiving cryptographic protection, and it prevents unwanted traffic from being passed on at all.
protect traffic by applying IPSec encryption and authentication
pass traffic without applying IPSec protection
discard traffic
Detecting Incoming Traffic That Should Have Been Encrypted
This feature is not included in the IPSec documentation.
The router detects and discards inbound application traffic that is not encrypted, but should have been according to the inbound protection policies. The router compares nonencrypted application traffic to inbound protection policies. If the router finds a match, it discards the packet.
Policy Criteria
A policy contains the properties in the following table. It includes the peer and SA proposal definitions that you set up.
If a packet matches the criteria in a policy, IPSec applies the action that you selected for the policy.
Profiles
A profile contains one or more security policies that control all traffic through an IPSec interface. It determines and authenticates who can send traffic and how traffic is protected.
You can set up profiles to provide access to specific resources in a private network for a user or group of users. You can also set up profiles that let users inside your private network have access to public networks, while keeping your private network secure.
Profiles are associated with an interface in an ordered sequence. The interface consults the policies in its associated profiles on each incoming and outgoing packet.
Interfaces
IPSec does not run until you attach a profile to an interface.
Entering IPSec Commands
This section covers the following topics.
Command Completion
Press Space (once or twice) from any prompt and the software lists the possible completions for the present input. For example,
IPSec Config> add sa_proposal headquarters AH_auth_method =
AH authentication method
The choices/prefixes are (a complete list):
hmac_sha
hmac_md5
none
IPSec Config> add sa_proposal headquarters AH_auth_method =
| Ctrl u or Up arrow | Go up the command list. |
| Ctrl n or Down arrow | Go down the command list. |
How IPSec Commands Work
When you enter an add or set command, you can include options for the parameter on the same command line. Pressing Space at any time lets you see available options.
For example,
IPSec Config> add ike_transform newike 12 <SPACE>
Adds IKE-transforms.
The choices/prefixes are (a complete list):
hash (optional) -- hash algorithm
encrypt (optional) -- encryption algorithm
auth (optional) -- authentication method
dh_group (optional) -- Diffie-Hellman Group
lifesecs (optional) -- lifetime in seconds,
or 0 for no limit
lifeKB (optional) -- lifetime in Kilobytes
of traffic, or 0 for no limit.
rename (optional) -- Specifies the new name of the
IKE transform.
change_priority_number (optional) -- Orders the IKE-transforms.
IPSec Config> add ike_transform newike 12 auth = DSA_Signatures
hash = hmac_sha encrypt = 3des lifesecs = 600
IPSec Config> and the IPSec> prompts. This section explains the differences between these two prompts and shows how to display the prompts.
IPSec Config> prompt, changes you make are saved in the router's configuration memory. These changes do not take effect until you restart the router.
To display the IPSec Config> prompt,Config> prompt, enter protocol ip.
Config>protocol ip
Internet protocol user configuration
IP config>
IP config>ipsec
IPSec Config>
+PROTOCOL ip
IP>ipsec
IPSec>
If you add a definition, such as a peer or policy, that requires another definition, IPSec automatically creates the required definition and names it default. See Default Definitions.
You can attach the same IPSec profile to multiple interfaces.
Multiple IPSec policies can reference the same SA proposal or peer definition. (The exception is manual SA proposals. Since each manual SA proposal must have unique SPIs, you cannot share them.)
Multiple IPSec peers can reference the same IKE transform.
You need to define the IP address of IPSec peers only once, in the peer definition.
You define all certificates under the Certificate Management configuration.

Setting Up the Branch Office Router
Setting Up the Headquarters Router
As you set up each side of an IPSec connection, keep in mind that all addresses, names, and matching rules must be mirror images of each other. In order to successfully negotiate security associations, each side must agree on authentication and encryption algorithms and methods.
This section walks you through setting up the Headquarters router to protect traffic between the finance server on the headquarters network and the subnet on the branch network.
This configuration assumes that WAN interface 1 is the default route.
Setting Up the Peer
The IPSec peer is the IPSec router interface at the branch office.
IPSec Config> add peer westboro
IPSec Config> list peer westboro
Source Peer Type
Peer Peer's IP Address to IKE or
Name IP Address use with peer MANUAL
-----------------------------------------------------------------
westboro 10.10.10.10 <automatic> IKE
IKE-transform: default IKE-mode: main
IP Filters usage: none NAT usage: none
Hardware-assist usage: On My certificate: default
pre-shared key: 1234
By default, this peer uses the IKE transform called default. The peer also uses a preshared key to negotiate sessions. The default value for the preshared key is 1234. When you set up two OpenROUTE routers to run IPSec, you can get up and running using default settings because the preshared keys match. However, you need to replace these values with a secure key.
IPSec Config> set peer westboro ip_address = 128.185.7.3
IPSec Config> list ike
IKE Priority Auth Hash Encr DH Lifetime Lifetime
Transform Name Seq Method Alg Alg Grp Seconds Kilobytes
-----------------------------------------------------------------------
default 10 preshare sha 3des 768 28800 0
Setting Up the SA Proposal
Add an SA proposal called sa_branch.
IPSec Config> add sa_proposal sa_branch
IPSec Config> list sa_proposal sa_branch
SA-proposal name: sa_branch
AH_auth: hmac_sha ESP_auth: none
ESP_encr: 3des Comp_alg: none
Lifetime in seconds: 0 Lifetime in kilobytes: 0
Perfect Forward Secrecy: none
Outbound Manual SPI and Key Values:
AH: SPI: 00000000 auth_key: no key configured
ESP: SPI: 00000000 auth_key: no key configured
encr_key: no key configured
COMP: SPI: 0000
Inbound Manual SPI and Key Values:
AH: SPI: 00000000 auth_key: no key configured
ESP: SPI: 00000000 auth_key: no key configured
encr_key: no key configured
COMP: SPI: 0000
AH authentication with the HMAC-SHA algorithm,
ESP encryption with the 3DES algorithm, and
IKE rather than manual SA proposals, which means you do not need to enter outbound or inbound manual keys.
IPSec Config> add profile branch
When you enter a policy name, you must first specify the profile name to which the policy belongs. You do this by entering the profile name followed by the policy name. Separate the names using a period. For example:
IPSec Config> add policy branch.finance
In this example, branch is the profile name, finance is the policy name.
IPSec Config> list policy branch.finance
-- *=opaque allowed --
Name Dir Address Port Protocol Action
------------------------------------------------------------
branch.finance both Any protect
sa_proposal=default, peer=default
IPSec Config> set policy branch.finance sa_proposal = sa_branch peer = westboro
IPSec Config> list policy branch.finance
-- *=opaque allowed --
Name Dir Address Port Protocol Action
------------------------------------------------------------
branch.finance both Any protect
sa_proposal=sa_branch, peer=westboro
Note: When a policy applies to traffic in both directions, add source and destination addresses as they relate to inbound packets.
IPSec Config> set policy branch.finance destination = 128.185.21.9
IPSec Config> set policy branch.finance source = 10.2.2.0&255.255.255.0
IPSec Config> list policy branch.finance
-- *=opaque allowed --
Name Dir Address Port Protocol Action
---------------------------------------------------------------
branch.finance both sa=10.2.2.0&255.255.255.0 Any protect
da=128.185.21.9
sa_proposal=sa_branch, peer=westboro
IPSec Config> set interface 1 profile +=branch
IPSec Config> list interface 1
Don't Path
IPSec Enable Frag Bit MTU
Ifc Status Handling Ageout Attached IPsec Profiles
----------------------------------------------------------------
1 On Set 600 branch
IPSec Config> add peer chicago
IPSec Config> list peer chicago
Source Peer Type
Peer Peer's IP Address to IKE or
Name IP Address use with peer MANUAL
-----------------------------------------------------------------
chicago 10.10.10.10 <automatic> IKE
IKE-transform: default IKE-mode: main
IP Filters usage: none NAT usage: none
Hardware-assist usage: On My certificate: default
pre-shared key: none
By default, this peer uses the IKE transform called default. The peer also uses a preshared key to negotiate sessions. The default value for the preshared key is 1234. When you set up two OpenROUTE routers to run IPSec, you can get up and running using default settings because the preshared keys match. However, you need to replace these values with a secure key.
IPSec Config> set peer chicago ip_address = 128.15.3.1
IPSec Config> list ike
IKE Priority Auth Hash Encr DH Lifetime Lifetime
Transform Name Seq Method Alg Alg Grp Seconds Kilobytes
-----------------------------------------------------------------------
default 10 dsa_sig sha 3des 768 28800 0
Setting Up the SA Proposal
Add an SA proposal called sa_hq.
IPSec Config> add sa_proposal sa_hq
IPSec Config> list sa_proposal sa_hq
SA-proposal name: sa_hq Proposal Type: IKE
AH_auth: hmac_sha ESP_auth: none
ESP_encr: 3des Comp_alg: none
Lifetime in seconds: 0 Lifetime in kilobytes: 0
Perfect Forward Secrecy: none
Outbound Manual SPI and Key Values:
AH: SPI: 00000000 auth_key: no key configured
ESP: SPI: 00000000 auth_key: no key configured
encr_key: no key configured
COMP: SPI: 0000
Inbound Manual SPI and Key Values:
AH: SPI: 00000000 auth_key: no key configured
ESP: SPI: 00000000 auth_key: no key configured
encr_key: no key configured
COMP: SPI: 0000
AH authentication with the HMAC-SHA algorithm,
ESP encryption with the 3DES algorithm, and
IKE rather than manual SA proposals, which means you do not need to enter outbound or inbound manual keys.
IPSec Config> add profile hq
When you enter a policy name, you must first specify the profile name to which the policy belongs. You do this by entering the profile name followed by the policy name. Separate the names using a period. For example:
IPSec Config> add policy hq.finance
In this example, hq is the profile name, finance is the policy name.
IPSec Config> list policy hq.finance
-- *=opaque allowed --
Name Dir Address Port Protocol Action
-----------------------------------------------------------------------
hq.finance both Any protect
sa_proposal=default, peer=default
IPSec Config> set policy hq.finance sa_proposal = sa_hq peer = chicago
IPSec Config> list policy hq.finance
-- *=opaque allowed --
Name Dir Address Port Protocol Action
----------------------------------------------------------------------
hq.finance both Any protect
sa_proposal=sa_hq, peer=chicago
Note: When a policy applies to traffic in both directions, add source and destination addresses as they relate to inbound packets.
IPSec Config> set policy hq.finance destination = 10.2.2.0&255.255.255.0
IPSec Config> set policy hq.finance source = 128.185.21.9
IPSec Config> list policy hq.finance
-- *=opaque allowed --
Name Dir Address Port Protocol Action
----------------------------------------------------------------------
hq.finance both sa=128.185.21.9 Any protect
da= 10.2.2.0&255.255.255.0
sa_proposal=sa_hq, peer=chicago
IPSec Config> set interface 1 profile +=hq
IPSec Config> list interface 1
Don't Path
IPSec Enable Frag Bit MTU
Ifc Status Handling Ageout Attached IPsec Profiles
------------------------------------------------------------------
1 Enabled Set 600 hq
NAT Config>add service
Service table involved is the global table([Yes] or No): [yes]?
Service name ([CR] to get a list of well-known-services)? ike
Server's IP address [0.0.0.0]? 10.1.1.1
Server's local port (0 = no port translation) [0]?
Enter protocol [TCP]? udp
Enter starting port number ([CR] for all) [-1]? 500
Enter ending port number [500]? 500
Using IPSec With IP Filters
If you are running IPSec and IP filters on the same router interface, no changes in your IP filter configuration are necessary to get IPSec up and running on the same interface.
By default, the router does not apply IP filters to IPSec traffic. However in your IPSec configuration you can set whether or not to apply filters to IPSec-protect traffic to or from select peers. To do this, use the ip_filter_usage option with the add peer or set peer commands.
For inbound traffic, IPSec processes the traffic first so that filters are applied to IPSec traffic after IPSec encapsulation is removed.
For outbound traffic, IP filters are applied to a packet before IPSec processes the packet. Thus, IPSec protection is wrapped around packets.
Press Space twice after you type a command to display the available parameters for each command. Enter help for information about using the command line interface.
[C] means the command is available at the IPSec Config> prompt.
[M] means the command is available at the IPSec> prompt.
Add Peer [C]
Adds and defines IPSec peers. See Peer Parameters for an overview of the options you can set for peers.
The remainder of this section describes the parameters you can define when you add a peer. You can add to or change the peer definition using the set peer command.
add peer chicago ipaddress=0.0.0.0
If your router is the initiator, and you are using aggressive mode, make sure the Diffie-Hellman key size in your IKE transform matches the key size of the peer. If they do not match, the peer will reject the IKE proposal.
If your router is the responder, the router behaves as follows:
The responder considers only the first proposal from the initiator; it ignores any subsequent proposals.
Within a proposal, the responder considers only the first authentication, encryption, or compression algorithms. It ignores any subsequent algorithms in a proposal.
Example:
add peer chicago mode=aggressive peer_type
Sets whether IPSec uses a manual SA proposal or uses IKE phase 2 to negotiate the security association to use with this peer.
Syntax: peer_type =
add peer chicago peer_type = manual
ike_transform
Assigns the name of the IKE transform to use for this peer. Use the default IKE transform or a sequence that you defined using the add ike_transform command. To see the default IKE transform, enter list ike_transforms default. You can assign the same IKE transform to more than one peer.
Example:
add peer chicago ike_transform = pre_shared_key
Adds a shared key for a peer. If you set up the IKE transform for this peer to use the preshared key authentication method, the router uses this key for IKE Phase 1 peer establishment. You set the authentication method IKE uses with the IKE transform auth option.
By default, the router is set up to use preshared keys, and it comes with a default preshared key of 1234. When you set up two OpenROUTE routers to run IPSec, you can quickly get up and running using default settings because the preshared keys match. Of course, you need to change 1234 to your own preshared key as soon as possible. You can add the shared key in either ASCII or hexadecimal format, and the key can be up to 128 bytes. Hexadecimal format requires two hex characters (0-9 or a-f) for each password byte. OpenROUTE Networks recommends using random sequences. For ASCII keys, use a random sequence of upper- and lower-case characters with many numbers also included. Syntax: pre_shared_key
add peer chicago pre_shared_key ascii=SiH67HuRtyP5902WmLKJgfdUiphw895KkSdfGgLhW2JVgcgExample:
add peer chicago pre_shared_key hex=87b49ef8359730c2c4dd8a29b4b9a688405195869367040602041895b6c5afce
add peer chicago my_certificate = certchicago
source_ip_address
Explicitly sets the source IP address this router uses when communicating with this peer.
The default setting of 0.0.0.0 causes IPSec to use the IP address of the router's IPSec interface.
You need to set this address only in special situations. For example, in cases of setting up redundant connections, you may have two IPSec interfaces connected to the Internet, but you want to present only one address to the IPSec peer.
Another case is if you are using dynamic addressing for your IPSec interface, but the IPSec peer needs to know your address in advance, or the peer requires that you present a constant address. In this case, you may want to use the router's internal IP address as the source or destination address in your peer definitions.
Syntax: source_ip_address =
add peer chicago source_ip_address = 192.168.32.3
add peer chicago rename=boston
Example:
add peer chicago ip_filter_usage = same_as_interface nat_usage
If you have Network Address Translation (NAT) set up on the IPSec interface to which this peer definition is attached, you can set whether or not to apply NAT to the IPSec-protected traffic for this peer.
Syntax: nat_usage =
Example:
add peer chicago nat_usage = same_as_interface hardware_assist
This command applies to router platforms that provide hardware, as well as software, to run compression, encryption, and authentication. It lets you control on a per-peer basis whether the router hardware or software performs these tasks. Note:
Using hardware rather than software to perform these tasks greatly increases the speed of IPSec.
add peer chicago hardware_assist = on
| On | Router hardware performs compression, encryption, and authentication. This is the default setting. |
| Off | Router software performs compression, encryption, and authentication. |
Add sa_proposal [C]
Adds and defines SA proposals. See SA Proposal Parameters for an overview of the options you can set for SA proposals.
When you set up IKE-negotiated SAs, all authentication and encryption methods and algorithms, as well as other SA parameters, must match exactly at each peer or IKE negotiations fail and the SA is not established. IKE does not establish an SA where protection would not be equal for both peers. The remainder of this section describes the parameters you can define when you add an SA proposal. You can add to or change the SA definition using the set sa_proposal command.
AH_auth_method
To use the Authentication Header (AH) protocol as the method of authenticating that data was not altered during transmission and authenticating the origin of communication, use this option to set the algorithm you want AH to use.
By default, the SA proposal uses AH as the authentication method with HMAC-SHA as the default algorithm.
Syntax: AH_auth_method =
Example:
add sa_proposal sa2 AH_auth_method = hmac_sha ESP_auth_method
If you want to use the Encapsulating Security Payload (ESP) protocol as the method of protecting data from being altered during transmission, use this option to set the algorithm you want ESP to use. The default is HMAC-SHA.
Notes:
OpenROUTE Networks recommends using the AH protocol for authentication because ESP does not protect the outer IP header.
If you are using IKE to negotiate SAs and you are using ESP as the authentication method, you must also use ESP encryption. This restriction does not apply to manual SAs.
Example:
add sa_proposal sa2 esp_auth_method=hmac_sha ESP_encr_method
The ESP encryption algorithm is used to encrypt user data. Select the algorithm you want ESP to use to encrypt the data.
Syntax: ESP_encr_method =
Example:
add sa_proposal sa2 ESP_encr_method = blowfish compression_method
Sets the compression algorithm used to compress data packets.
Syntax: compression_method=
| Entry | Description |
|---|---|
| lzs | The router uses the STAC-LZS algorithm to compress data. |
| none | The router does not compress user data to traffic to which this SA proposal applies. This is the default. |
Example:
add sa_proposal sa2 compression_method=lzs lifesecs
The duration of the SA measured in seconds. Once IKE phase 2 has negotiated the SA, it remains in affect until this time expires. When this time expires, IKE renegotiates and replaces the SA using IKE phase 2 exchanges.
If you are using manual SAs rather than using IKE to negotiate SAs, this setting does not apply because manual SAs do not time out.
Enter 0 for no limit, which is the default. The range is 0 to 4294967295 seconds. You can also set the duration in amount of data using the lifeKB option. If you set both options, the SA expires whenever the first limit is reached.
add sa_proposal sa2 lifesecs = 32000
add sa_proposal sa2 lifeKB=329347329834
| Entry | Description |
|---|---|
| 768_bit_(group_1) | |
| 1024_bit_(group_2) | |
| 1536_bit_(group_5) | |
| none | This is the default. |
Example:
add sa_proposal sa2 pfs_group = 1024_bit_(group_2) key_alg_detail
Some algorithms have adjustable key lengths. This option lets you adjust the key length for those algorithms.
Currently, Blowfish is the only algorithm for which you can change the key length.
Syntax: key_alg_detail
Example:
add sa_proposal sa2 key_alg_detail what_algorithm = esp_encr_blowfish outbound_manual_keying
If you are creating a manual SA proposal, use this parameter to enter SPIs and outbound keys.
If you are using AH as the authentication method and MD5 as the authentication algorithm, enter an MD5 key using the ah_auth_key = option.
If you are using ESP as the encryption method and 3DES as the encryption algorithm, enter a 3DES key using the esp_encr_key = option.
Example:
add sa_proposal sa3 outbound_manual_keying esp_auth_key = 12903748243909384923472827609154098279 inbound_manual_keying
If you are creating a manual SA proposal, use this parameter to enter SPIs and inbound keys.
CAUTION:
In order for IPSec to run correctly, each inbound SA proposal must have unique SPIs within each IPSec protocol (AH, ESP, or IPComp).
If you are using AH as the authentication method and MD5 as the authentication algorithm, enter an MD5 key using the ah_auth_key = option.
If you are using ESP as the encryption method and 3DES as the encryption algorithm, enter a 3DES key using the esp_encr_key = option.
Example:
add sa_proposal sa2 inbound_manual_keying ah_spi = 3368 rename
Changes the name of the SA proposal. You can also rename an SA proposal later using the set sa_proposal command.
When you rename an SA proposal, the IPSec software automatically changes the proposal name in any policy that references the proposal.
Syntax: rename =
add sa_proposal sa2 rename=sa3
add profile branch
For an overview of the options you can set for policies, see Policy Criteria.
When you enter a policy name, you always need to type its profile name first, followed by a period (.) and then type the policy name. For example, Syntax: add policy profilename.policyname
Example:add policy branch.finance
Example:
add policy branch.finance action = protect after
Specifies the position of the policy within the profile. You can place the policy after a specific policy or at the top of the policy list.
As the default, the software adds new policies to the end of the list.
Syntax: after =
| Entry | Description |
|---|---|
| policy name | Places the policy after this policy. |
| * | Places the policy at the top of the list. |
Example:
add policy branch.finance
add policy branch.sales
add policy branch.telecommuter after = finance
IPSec Config> list policy branch.
-- *=opaque allowed --
Name Dir Address Port Protocol Action
-----------------------------------------------------------------------branch.finance both Any protect
sa_proposal=default, peer=default
branch.telecommuter both Any protect
sa_proposal=default, peer=default
branch.sales both Any protect
sa_proposal=default, peer=default
Example:
add policy branch.finance direction =outbound peer
Adds a peer to the policy. You must have previously added the peer using the add peer command.
add policy branch.finance peer =boston
add policy branch.finance rename =sales
To add more than one SA proposal to a policy, type a comma (,) after the proposal name. Syntax: sa_proposal =
add policy branch.finance sa_proposal =sa2This example adds three SA proposals to the policy Example:
add policy branch.finance sa_proposal =sa2,sa3,default
| Entry | Description |
|---|---|
| ipaddress | One address with a default mask of 255.255.255.255. |
| ipaddress&mask | One address and a mask. |
| ipaddress-ipaddress | A range of addresses with a default mask of 255.255.255.255. |
The following example adds a range of IP addresses.
Example:
add policy branch.finance destination =128.185.22.0-
128.185.25.0add policy branch.finance destination =
128.185.25.0&255.255.255.0 source
Applies the policy to traffic that originates from this source. You can add a single IP address and mask or a range of IP addresses. This lets you create a policy for a subnet or for a group of hosts within a range of addresses. Note:
When you are using a policy that applies to traffic in both directions, add source and destination addresses as they relate to inbound packets.
| Entry |
|---|