Although the process of configuring UserGate as a site-to-site VPN server is very similar to how it is configured as a remote access VPN server, we recommend you to make all the settings separately, because some of them can be different.
To configure a site-to site VPN server, follow these steps:
Task |
Description |
---|---|
Step 1. Create a local user for the authorization of the VPN client server. |
In the Users and devices --> Users section, create a user for each of the remote UserGate servers that will work as VPN clients and set passwords for the users. It is recommended to place all these users in a group that will be given permission to connect using a VPN. To that end, there is a default group named VPN servers in UserGate. |
Step 2. Allow the VPN service in the zone to which VPN clients will connect. |
In the Network --> Zones section, edit the access control settings for the zone to which VPN clients will connect, and enable the VPN service. Usually, this is the Untrusted zone. |
Step 3. Create a zone where the servers connecting using a VPN will be placed. |
In the Network --> Zones section, create a zone where the servers connecting via a VPN will be placed. This zone can later be used in security policies. It is recommended to use the existing default zone, VPN for Site-to-Site. |
Step 4. Create a firewall rule that allows traffic from the zone created earlier. |
In the Network policies --> Firewall section, create a firewall rule that allows traffic from the zone you created to other zones. In UserGate, there is a default rule named VPN for Site-to-Site to Trusted and Untrusted that allows all traffic from the zone VPN for Site-to-Site to the Trusted and Untrusted zones. This rule is disabled by default. To let the traffic pass to the client via the VPN tunnel from the desired server zone, you need to create an allowing firewall rule, specifying that zone as the source and VPN for Site-to-Site as the destination zone. |
Step 5. Create an authentication profile. |
In the Users and devices --> Auth profiles section, create an authentication profile for VPN users. The same authentication profile may be used that you use to authorize users for Internet access. Note that transparent authentication methods such as Kerberos, NTLM, or SAML IDP cannot be used for VPN authorization. For more details on authentication profiles, see the section Authentication Profiles. |
Step 6. Create a VPN security profile. |
A security profile contains settings such as the pre-shared key and encryption and authentication algorithms. Multiple security profiles may be used for connecting to different client types. To create a profile, go to VPN --> Security profiles, click Add, and fill in these fields:
Next, the settings for the first and second negotiation phases need to be configured. In the first phase, IKE security is negotiated. The authentication is done using a pre-shared key in the mode selected earlier. Provide the following settings:
In the second phase, the method for securing IPsec connections is selected. You need to specify the following:
In UserGate, there is a default security profile named Site-to-Site VPN profile that provides the required settings. If you plan to use this profile, make sure to change the pre-shared encryption key. To facilitate connection setup for 3rd party devices, there are additional default security profiles (Cisco compatible VPN profile for Cisco devices and Fortinet compatible VPN profile for Fortinet devices). |
Step 7. Create a VPN interface. |
A VPN interface is a virtual network adapter that will be used to connect VPN clients. This is a cluster-type interface, which means that it will be created automatically on all UserGate configuration cluster nodes. If a HA cluster exists, VPN clients will be automatically switched to a backup server in case of any problems with the active server without terminating the existing VPN connections. In the Network --> Interfaces section, click Add and select Add VPN. Provide the following settings:
There is a default VPN interface named tunnel2 that is recommended for use as a site-to-site VPN interface. |
Step 8. Create a VPN tunnel. |
A VPN determines the network settings that will be used for connecting the client to the server. This is primarily the assignment of IP addresses to the clients inside the tunnel, the DNS settings, and (optionally) the routes that will be passed to the clients that support the use of routes assigned to them. Multiple tunnels may be used with different settings for different clients. To create a VPN tunnel, go to VPN --> VPN networks, click Add, and fill in these fields:
There is a default network in UserGate named Site-to-Site VPN network with the recommended settings. To use this network, you need to add routes that will be passed to the client server. To allow the VPN server to know about the client's subnets, configure a static route on the server by specifying the VPN tunnel address used on the client server as the destination address. |
Step 9. Create a VPN server rule. |
Create a VPN server rule using the VPN tunnel and profile created earlier. To create the rule, go to VPN --> Server rules, click Add, and fill in these fields:
In UserGate, there is a default server rule named Site-to-Site VPN rule that provides the required settings for a site-to-site VPN, and VPN access is allowed to the members of the local group VPN servers. Important! To apply different server rules to different clients, use the Source zone and Source address settings. The User parameter does not govern the selection of a server rule, as the user is checked only after the VPN connection has been established. |
To configure a client VPN server, follow these steps:
Task |
Description |
---|---|
Step 1. Create a zone where the interface used for VPN connections will be placed. |
In the Network --> Zones section, create a zone where the interfaces used for VPN connections will be placed. This zone can later be used in security policies. It is recommended to use the existing default zone, VPN for Site-to-Site. |
Step 2. Create a firewall rule that allows traffic to the zone created earlier. |
Create an allowing firewall rule for the incoming traffic to the zone in the Network policies --> Firewall section. In UserGate, there is a default rule named VPN for Site-to-Site to Trusted and Untrusted that allows all traffic between the VPN for Site-to-Site, Trusted, and Untrusted zones. To let the traffic pass to the server via the VPN tunnel from the desired client server zone, you need to create an allowing firewall rule, specifying that zone as the source and VPN for Site‑to‑Site as the destination zone. |
Step 3. Create a VPN security profile. |
A security profile contains settings such as the pre-shared key and encryption and authentication algorithms. Multiple security profiles may be used for connecting to different client types. To create a profile, go to VPN --> Security profiles, click Add, and fill in these fields:
Next, the settings for the first and second negotiation phases need to be configured. In the first phase, IKE security is negotiated. The authentication is done using a pre-shared key in the mode selected earlier. Provide the following settings:
In the second phase, the method for securing IPsec connections is selected. You need to specify the following:
In UserGate, there is a default security profile named Client VPN profile that provides the required settings. If you plan to use this profile, make sure to change the pre-shared encryption key. To facilitate connection setup for 3rd party devices, there are additional default security profiles (Cisco compatible VPN profile for Cisco devices and Fortinet compatible VPN profile for Fortinet devices). |
Step 4. Create a VPN interface. |
A VPN interface is a virtual network adapter that will be used to connect VPN clients. This is a cluster-type interface, which means that it will be created automatically on all UserGate configuration cluster nodes. If a HA cluster exists, VPN clients will be automatically switched to a backup server in case of any problems with the active server without terminating the existing VPN connections. In the Network --> Interfaces section, click Add and select Add VPN. Provide the following settings:
There is a default VPN interface named tunnel3 that is recommended for use for site-to-site VPN client connections. Important! If the existing tunnel2 interface with the default settings was selected during the configuration of a tunnel interface on the server side, an IP conflict will occur on the client trying to connect to the server, because a similar tunnel2 interface with the same address range already exists on the client. For things to work correctly, the address ranges of the tunnel interfaces should not overlap. It is recommended to change the address range on the client to a unique one. |
Step 5. Create a VPN client rule. |
Create a VPN client rule that will initiate a VPN server connection. To create the rule, go to VPN ‑‑> Client rules, click Add, and fill in these fields:
|
When the VPN server and client have been configured, the client initiates a connection to the server, and if the settings are correct, a VPN tunnel is brought up. To bring down the tunnel, disable the VPN client rule (set on the client) or the VPN server rule (set on the server).