45.4. Manual configuration on the Intra2net system

45.4.1. Prerequisites

First of all, you must ensure that each side has its own key as well as the public key or the certificate of the other. It is recommended to create a separate key for VPNs on each system.

If you set up multiple VPNs on the Intra2net system, you do not have to create a separate key for each connection: you can use a separate key for all VPNs. Of course, only the public key is required from each of the peers.

It is therefore best to create a certificate for VPNs as described in Section 45.2.1, „Create certificate“.

Further details on key management can be found in 44. Chapter, „Key Management“.

A connection configured on the Intra2net system applies to the connection between a client and a network behind the Intra2net system. If you want to access multiple networks behind the Intra2net system from the one client, multiple connections can be easily configured. Make sure that you always use the same combination of keys and certificates for each of these connections.

45.4.2. Default Settings

You can configure VPN connections in the Services > VPN > Connections menu.

To manually configure a new connection, select "Site-to-site or custom configured ".

Set the options for the peer. The peer is not usually known on individual clients. Therefore, set it to "Dynamic IP (Road Warrior)".

The encryption algorithms used can be selected using the encryption profile; for details see Section 43.5, „Algorithms“. It is important that the settings for Perfect Forward Secrecy (PSF) are identical on both sides.

Encapsulation controls how the packets for the VPN tunnel are packed. With ESP, encryption and authentication are encapsulated. ESP+AH uses separate encryption and authentication. ESP+AH cannot be routed through NAT, so it is strongly recommended to use ESP for individual clients. This setting must be identical on both sides of the connection.

45.4.3. Authentication

Select your own key and the key of the remote side.

Some client programs offer the option of verifying a user's login and password in addition to authentication using a pre-shared key (PSK) or certificates. This is done using the Extended Authentication (XAUTH) protocol. If this is to be used by clients, activate the option "XAUTH server mode".

The XAUTH server mode now prompts the client from this connection to log on with the credentials of a user who has the group right "VPN authentication via XAUTH" on the Intra2net system. You can assign this group privilege on the "Usermanager > Groups : Rights" page.

For the reasons mentioned in Section 43.6, „Limitations“ we advise against authenticating connections using a pre-shared key (PSK). This solution is particularly dangerous for multiple portable devices.

45.4.4. Configuring the Tunnel

On the "Tunnel" page, you can configure which network is connected to which virtual client IP via this VPN connection.

The "Local network" option selects the network to be connected on the Intra2net system side. With the option "Local networks" select one of the networks directly connected or routed to the Intra2net system.

If you want all client traffic to run through the Intra2net system and thus also benefit from the firewall and proxy server, select the "All (0.0.0.0/0.0.0.0)" option for "Local network".

For "Network on remote side", select "Custom net". Select a previously unused IP that is not located on one of the networks of the Intra2net system or client. This is the virtual IP that you must also enter into the client. Always use 255.255.255.255 as the netmask.

Most VPN clients can have their virtual IP and related DNS servers automatically assigned via the Mode Config protocol extension. If your client supports this (e.g. Shrew Soft, NCP or iPhone, see the description of the individual clients), set the "Remote network" option to "Assign IP (mode-config)" and enter the IP that the client should get. As a DNS server, the Intra2net system automatically transmits its own IP.

If "Local network" has been set to a network containing addresses that are not located in local or other VPN networks, the client can access the Internet via the VPN. This applies in particular to the setting "Everything". Since the virtual IP usually originates from a private address range, it can be rewritten to the external address of the Intra2net system (NAT) via the "Rewrite remote addresses for Internet access (NAT)" option. This NAT is only active when accessing the Internet, accesses to the local network continue to be made with the virtual IP.

Further options for address conversion (NAT) are explained in 57. Chapter, „Solving IP Address Conflicts in VPNs Through NAT“.

45.4.5. Rights

This menu defines the rights of the VPN client. This applies to all packets coming from the VPN client. A description of the rights options can be found under Section 8.3, „Access Rights of a Network Object“.

45.4.6. Activation

This menu is used to configure when the connection is established and when existing sessions are to be extended. With VPN clients, the Intra2net system cannot initiate the connection itself. Therefore, set the start to "Passive / manual" and use the default values for the remaining options.