This document describes the Nx Networks implementation of IPSec. For examples on how to configure IPSec, see Setting Up IPSec.
This document has the following topics:
Introducing IPSec
How IPSec Works
Using IPSec With NAT, IP Filters and Other IP Protocols
Entering IPSec Commands
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 Nx Networks 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 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
Nx Networks 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.
| 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 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
You may want to use the router's internal IP address as the source or destination address in your peer definitions in the following cases:
You are using dynamic addressing on your WAN connection.
You are running IPSec with multiple WAN interfaces. If one WAN interface goes down, IPSec traffic could be routed through the second WAN interface, 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 an 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.
Expiration of SAs
There are two lifetime settings you can use to cause SA sessions to expire and new sessions to be negotiated, lifesecs and lifeKB.
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.
Overlap Rekeying of SAs
If there is still application traffic running through an SA when the SA session expires, IKE negotiates a new SA. To prevent the router from dropping packets while IKE negotiates the new SA, IPSec begins negotiating the new SA before the existing SA expires. The show sa command shows when the software is scheduled to renegotiate the SA.
There can be a short overlap of SA bundles between the time the new SA is created and the old SA expires. The router always uses the new SA when sending packets. Once the peer begins sending packets using the new SA, the router deletes the older SAs, if they have not already expired.
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:
The peer determines whether to use IKE or manual SAs. When you set up a peer, you can set the peer type to manual or IKE.
If you set up a peer to use manual SA proposals, you need to enter manual inbound and outbound keys.
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.
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
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.
Profile Criteria
The following table shows the parameters you can set for profiles.
| Parameter | Options | Description |
|---|---|---|
| rename |
newname
| Renames the profile. |
| type | spd roadwarrior_client roadwarrior_gateway | Defines the type of peer that uses this profile. |
Interfaces
IPSec does not run until you attach a profile to an interface.
IPSec Road Warriors
A road warrior (RW) is an IPSec peer whose IP address is not known in advance. Since IPSec cannot identify the peer using its IP address, IPSec identifies the peer using a name.
There are two types of road warriors.
Road Warrior Clients
An example is a PC client, such as a mobile or telecommuting user, dialing into an ISP. The ISP dynamically assigns an IP address to the PC. This dynamic IP address serves as the IP address of the IPSec tunnel endpoint in the IPSec outer IP header, and application IP address in the application IP header.
Road Warrior Gateways
An example is an IPSec router at a branch whose ISP dynamically assigns its IP address. This dynamic IP address serves as the IPSec tunnel endpoint IP address in the IPSec outer IP header, but the application IP addresses may be other IP addresses.
If you set up an IPSec router to work with a RW peer, you set Peer IDs in your peer definition so that when the RW peer dials in, the IPSec router can identify the peer and apply the correct policies.
Since the IPSec router does not know the RW peer's IP address in advance, the RW peer must always be the initiator.
If you set up an IPSec router to be the RW, you set My ID in the IPSec global configuration using the set global command.
Road warrior policies are not active policies in the Security Policy Database (SPD). They are template policies. Once IKE phase 2 negotiation begins, IPSec creates a dynamic policy using the information in the SA proposal along with the actual IP addresses that the RW is using. IPSec instantiates this dynamic policy in the SPD.
Road warrior policies are never used to initiate communication, since only the road warrior can initiate sessions.
Using IPSec With NAT, IP Filters and Other IP Protocols
This section provides information on using IPSec with NAT and with IP Filters. It also shows how IPSec handles other IP protocols.
Using IPSec With NAT
When you use IPSec with Network Address Translation (NAT), on the same router interface as your IPSec peer, you do not need to configure anything special in NAT. In this case, when you attach an IPSec profile to an interface on which NAT is running, the NAT software automatically creates services that let IPSec traffic pass through the NAT interface. These services are UDP port 500 for IKE traffic and the AH, ESP, and IPCOMP protocols.
However, if IPSec is not running on the same interface as NAT, you need to set up NAT to allow IKE traffic, which runs on UDP port 500, through NAT.
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.
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 = RSA_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>
Monitor> prompt, enter protocol ip.
Monitor>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.
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 you use a peer ID type other than IP address, you also need to set the actual ID using the peer_id_value option.
If you use the peer's IP address as peer ID type, IPSec uses the IP address you set using the ip_address option.
add peer chicago2 peer_id_type = email_(User_Fully_Qualified_Domain_Name)
peer_id_value
The peer ID value identifies peers that IPSec cannot identify using an IP address. For users such as road warrior peers, whose IP address is not known in advance, you can identify a peer using its domain name, e-mail address, or a Key ID.
In the case where the router is a road warrior, the peer type and value must match the IKE-ID that the responder is configured to accept.
Before you enter a peer ID value, you need to select the peer_id_type, which tells IPSec the type of peer ID value you are going to add. The following table shows what IPSec expects as a value for each peer ID type.
add peer chicago peer_id_value ascii_for_peer_id = abc@nxnetworks.com
| Value | Description |
|---|---|
| domain name | If you selected domain name in the peer_id_type option, enter the domain name that identifies this peer. For example, nxnetworks.com. |
| e-mail address | If you selected email in the peer_id_type option, enter the e-mail address that identifies this peer. For example, abc@nxnetworks.com. |
| Key ID | If you selected KeyID in the peer_id_type option, enter the key ID that identifies this peer. A Key ID is a string of characters assigned to the peer at each end of the IPSec connection. |
Before you enter the peer ID value, you need to specify whether you are entering the value in ASCII or hex format.
rw_profile
Specifies the road warrior profile IPSec uses to create dynamic policies when this peer completes IKE Phase 1 negotiation and begins Phase 2 negotiation. Phase 2 SA negotiation fails if you do not specify an RW profile for the peer. Note:
It is not necessary to make a separate road warrior profile for each road warrior. RW peers that have the same access rights to HQ can use the same road warrior profile.
add peer chicago rw_profile = branches
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 ike_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 first set up two routers to run OpenROUTE IPSec software, the routers can easily negotiate IKE using the 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. Nx 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_for_preshared_key =SiH67HuRtyP5902WmLKJgfdUiphw895KkSdfGgLhW2JVgcgExample:
add peer chicago pre_shared_key hex_for_preshared_key =87b49ef8359730c2c4dd8a29b4b9a688405195869367040602041895b6c5afce
add peer chicago preferred_ca = certchicago
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. |
send_cert_id
Specifies whether the local IKE peer uses the SubAltName as its ID in its certificate when it negotiates IKE phase 1 with this peer.
Example:
add peer chicago send_cert_id = on match_id
With this matching set to on, IKE checks the peer ID during IKE negotiations. If you are using certificates, IKE also checks that the peer ID matches the SubAltName in the peer's certificate.
Example:
add peer chicago match_id = on 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
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 none.
Notes:
Nx 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 when the SA first reaches one of the maximum values.
add sa_proposal sa2 lifesecs = 32000
add sa_proposal sa2 lifeKB=329347329834
add sa_proposal sa2 pfs_group = 1024_bit_(group_2)
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
add profile chicago rename=boston
Add Policy [C]
Creates a new policy and lets you define the properties of the policy. Before you use this command, you need to add a profile.
The remainder of this section describes the parameters you can define when you add a policy. You can add to or change the policy later using the set policy command.
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. When IPSec receives traffic that matches this policy, it sends that traffic to this peer. 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 | 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 source =128.185.22.0-
128.185.25.0add policy branch.finance source =
128.185.25.0&255.255.255.0 protocol
Sets the policy to recognize certain transport protocols. This narrows the policy to match only packets of the specified protocol. The protocol, combined with the policy's action lets you protect certain types of traffic or allow other traffic to pass unprotected.
The software recognizes certain well-known protocols that you can enter by name. Enter protocol = SPACE to see a list of well-known protocol names.
Type protocol = space to see a list of protocol names. For example,
IPSec Config> add policy branch.finance protocol =
Matches the transport protocol
The choices/prefixes are (a partial list):
TCP
UDP
Any
ENCAP
ICMP
IGMP
SKIP
OSPF
AH
ESP
IPCOMP
If you use protocol names in IKE-negotiated SAs, the names must match exactly at each end of the IPSec connection. For example, if you enter protocol=any on one peer and protocol=tcp on the other peer, the protocols do not match and the IKE negotiation fails.
If a policy has any source or destination ports defined, you cannot change the protocol.
When you are using a policy that applies to traffic in both directions, add the protocol as it relates to inbound packets.
add policy branch.finance protocol =tcp
add policy branch.finance opaque_protocol = on
Well-known port name, the software automatically sets the protocol correctly.
Port number, you must first set the protocol to TCP or UDP. See protocol.
add policy branch.finance dport = ftp_dataExample:
add policy branch.finance protocol = tcp dport = 20The following example shows how to remove port 20 from the policy. Example:
add policy branch.finance dport -=20
Well-known port name, the software automatically sets the protocol correctly.
Port number, you must first set the protocol to TCP or UDP. See protocol.