<!-- File: $Id$ -->
<!-- Rev: $Revision$ -->

<body class="help">

<h3 class="help"><a name="Add Site-to-Site IPSec Tunnel"></a><a name="Add Site-to-Site IPSec Tunnel"></a>Add Site&ndash;to&ndash;Site IPSec Tunnel</h3>

<p>Use this page to create or edit a site&ndash;to&ndash;site VPN tunnel. Make sure that the configuration of the opposite peer matches this one; otherwise, the tunnel will not be established.</p>

<h4 class="help"><a name="Tunnel naming"></a><a name="Tunnel naming"></a>Tunnel naming</h4>
<ul>
<li><b>Name</b> &mdash; The name for the tunnel.</li>
<li><b>Disabled</b> &mdash; Select the check box to temporarily disable the tunnel. All tunnel settings will be preserved.</li>
</ul>

<h4 class="help"><a name="Phase 1"></a><a name="Phase 2"></a>IPsec Connection Phase 1 and Phase 2</h4>
The sections <b>Phase 1</b> and <b>Phase 2</b> are for configuring the encryption parameters for the phases 1 and 2 of an IPsec connection. 
The available settings for both are basically the same; the only difference is that <b>Encryption</b> and <b>DH Group</b> are not necessarily needed in phase 2 and can therefore be set to <b>None</b>. 
<br><br>Configure the following options:
<ul>
<li><b>Encryption</b> &mdash; Select an encryption method. Using strong encryption is recommended. The following options are available:
	<ul>
	<li><b>3DES</b> &mdash; Further developed DES encryption; three keys with a length of 56 bits per key are used one after another, resulting in a key length of 168 bit. This is not a strong encryption method.</li>
	<li><b>DES</b> &mdash; Digital Encryption Standard. Since DES is only capable of a 56 bit key length, it cannot be considered as safe today. Not a strong encryption method.</li>
	<li><b>AES</b> &mdash; Advanced Encryption Standard. Capable of 128&frasl;256 bit key length. This is the default setting.</li>
	<li><b>AES256</b> &mdash; AES with a key length of 256 bit.</li>
	<li><b>Blowfish</b> &mdash; This algorithm works with a variable key length of up to 128 bit.</li>
	<li><b>CAST</b> &mdash; An algorithm similar to DES with a key length of 128 bit.</li>
	<li><b>None</b> &mdash; No encryption. Only available for phase 2.</li>
	</ul></li>
<li><b>Hash Method</b> &mdash; Type of hash algorithm to be used.</li>
<li><b>DH Group</b> &mdash; The Diffie&ndash;Hellman group parameter defines the type of key exchange. Available options are:
	<ul>
	<li><b>Group1</b> &mdash; 768&ndash;bit modulus. Default value.</li>
	<li><b>Group2</b> &mdash; 1024&ndash;bit modulus. Strong.</li>
	<li><b>Group5</b> &mdash; 1536&ndash;bit modulus. Strongest.</li>
	<li><b>None</b> &mdash; No key exchange. Only available for phase 2.</li>
	</ul>
	</li>
<li><b>Perfect Forward Secrecy</b> &mdash; Increases security by creating unique session keys so that attackers cannot derive keys from previously exposed ones. 
Both IPsec peers must have this option enabled for it to work.</li>
<li><b>Lifetime</b> &mdash; Rekeying time in milliseconds. Defaults to <b>3600</b>.</li>
</ul>


<h4 class="help"><a name="Tunnel params"></a><a name="Tunnel params"></a>Tunnel parameters</h4>
<ul>
	<li><b>Local End</b> &mdash; Select either <b>Active</b> or <b>Passive</b>. The active end of an IPsec tunnel establishes a UDP connection at port 500 to the passive one.</li>
	<li><b>Local Address</b> &mdash; The IP address of the local gateway. Select one from the list.</li>
	<li><b>Local Networks</b> &mdash; Enter the local networks to include. Type an IP address with or without a subnet in CIDR notation. Click <b>&#43; &#40;Plus&#41;</b> to add a network. Click <b>&ndash; &#40;Minus&#41;</b> next to a network in the list to remove it.</li>
	<li><b>Remote Gateway</b> &mdash; The gateway IP address of the remote VPN gateway.</li>
	<li><b>Remote Networks</b> &mdash; Enter the remote networks to include. Type an IP address with or without a subnet in CIDR notation. Click <b>&#43; &#40;Plus&#41;</b> to add a network. Click <b>&ndash; &#40;Minus&#41;</b> next to a network in the list to remove it.</li>
	<li><b>Authentication</b> &mdash; Select an authentication method to use. The following authentication methods are available:
		<ul>
		<li><b>Shared Passphrase</b> &mdash; This method uses a passphrase that must be identical on both peers and is to be entered into the <b>Passphrase</b> field.</li>
		<li><b>X.509 Certificate &#40;CA Signed&#41;</b> &mdash; This method is capable of many restrictive configurations, such as matching on one root certificate, matching on all root certificates, for additional pattern check on subject or subject alternative name, for policy match, or generic v3 OID match. Keys signed by a certificate authority are needed.</li>
		</ul></li>
	<li><b>Passphrase</b> &mdash; Enter the shared passphrase here if <b>Shared Passphrase</b> was chosen as the authentication method.</li>
	<li><b>Enable aggressive mode</b> &mdash; Set this to <b>Yes</b> to enable the aggressive mode. Defaults to <b>No</b>.</li>
	<li><b>Aggressive mode ID</b> &mdash; The ID for aggressive mode must be entered here if <b>Enable aggressive mode</b> is set to <b>Yes</b>.</li>
	<li><b>Encapsulation mode Auto Detection &#40;Expert&#41;</b> &mdash; Detect and set the encapsulation mode for IPsec tunnels using NAT traversal &#40;NAT-T&#41;.
		<p>
		<info>Append <b>&amp;expert=1</b> to the URL to see the expert settings.</info></li>
		</p>
	<li><b>Local Certificate</b> &mdash; Choose a VPN certificate. You can create or upload VPN certificates on the <b>ADVANCED &gt; Certificate Manager</b> page.</li>
	<li><b>CA Root Certificate</b> &mdash; Choose the root certificate to use. Defaults to <b>Use All Known</b>.</li>
	<li><b>x509 Matching Conditions</b> &mdash; Define a list of one or more matching criteria for an X.509 certificate to be valid. Select the field to match in the dropdown and enter a matching string into the text field. Wildcards <b>*</b> and <b>?</b> can be used. Click <b>&#43; &#40;Plus&#41;</b> to add the criterion to the list. To remove a criterion from the list, click the <b>&ndash; &#40;Minus&#41;</b> button next to it.</li>
</ul>
<p>Click <b>Save</b> to save or <b>Cancel</b> to discard the changes.</p>
</body>
