[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

Configuring IPsec Rules

A rule defines a set of conditions that determine what actions the router software performs on packets in the data stream. You define each rule by specifying a rule name and configuring terms. An IPsec rule specifies the traffic that you want to send through the IPsec tunnel using source and destination address combinations, and also specifies the IKE and IPsec policies to be applied on that traffic.

To configure an IPsec rule:

  1. Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.
  2. Perform the configuration tasks described in Table 34.
  3. Go on to Configuring IPsec Services Interfaces.

Table 34: Configuring IPsec Rules

Task

J-Web Configuration Editor

CLI Configuration Editor

Navigate to the Services>Ipsec vpn level in the configuration hierarchy.

  1. In the J-Web interface, select Configuration>View and Edit>Edit Configuration.
  2. Next to Services, click Configure or Edit.
  3. Next to Ipsec vpn, click Configure.

From the [edit] hierarchy level, enter

edit services ipsec-vpn

Configure an IPsec rule named ipsec-dynamic-rule to act on all input traffic.

  1. Next to Rule, click Add new entry.
  2. In the Rule name box, type ipsec-dynamic-rule.
  3. In the Match direction box, select Input from the list.

Enter

set rule ipsec-dynamic-rule match-direction input

Configure a term—for example, term1, and a remote gateway—for example, 10.90.90.1.

Note: Because the rule applies to all traffic, you configure only the action (or then statement) for the term.

  1. Next to Term, click Add new entry.
  2. In the Term name box, type term1.
  3. Next to Then, select the Yes check box and click Configure.
  4. In the Remote gateway box, type 10.90.90.1.
  1. Enter

    edit rule ipsec-dynamic-rule

  2. Enter

    set term term1 then remote-gateway 10.90.90.1

Configure the IPsec rule ipsec-dynamic-rule to reference the IKE policy ike-dynamic-policy and the IPsec policy ipsec-dynamic-policy for the IPsec dynamic SA.

  1. In the Sa choice box, select Dynamic.
  2. Next to Dynamic, click Configure.
  3. In the Ike policy box, type ike-dynamic-policy.
  4. Click OK until you return to the main Configuration page.
  1. Enter

    edit term term1.

  2. Enter

    set then dynamic ike-policy ike-dynamic-policy ipsec-policy ipsec-dynamic-policy


[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]