The Barracuda NextGen Firewall X-Series supports client-to-site VPN with certificate authentication. You can use either the Barracuda VPN client, mobile clients running iOS or Android, as well as third-party IPsec clients supporting client authentication:
Mobile devices
The X-Series Firewall supports IPsec VPN connections for Apple iOS and Android devices. You must enable the IPsec client option in the access policy to be able to connect with a mobile client.
Barracuda VPN client
The Barracuda VPN client authenticates with the certificate and username/password. You must enable the Barracuda VPN Client option in the access policy to be able to connect with the Barracuda VPN client.
Third-party IPsec clients
The X-Series Firewall adheres to the IPsec standard. Any third-party IPsec client implementing this standard can connect to the IPsec VPN. You must enable IPsec client in the access policy to use the IPsec VPN client.
Step 1. Enable the VPN service on a network interface
Enable the VPN service on a static IP address. If you do not have a static WAN IP address, you must enable the VPN service for a static internal interface and then redirect incoming connections to the VPN service with a firewall rule.
Static (fixed) WAN IP address
To enable the VPN service for the static network interface:
- Go to the NETWORK > IP Configuration page.
- In the Static Interface Configuration section click Edit to configure your static WAN interface.
In the Edit Static Network Interface window, select the VPN Server check box.
- Click Save.
Dynamic (DHCP/3G/PPPoE) WAN IP Address
To use the VPN service with a dynamic WAN IP address, run the VPN service on an internal IP address. Do not use the management IP address; instead, add a secondary IP address. Then, create an access rule to redirect all incoming VPN traffic from the dynamic interface to the VPN service.
- Go to the NETWORK > IP Configuration page.
- Enable dynamic DNS.
- In the Dynamic Interface Configuration section, click Edit to configure the dynamic WAN interface.
- In the Edit Dynamic Network Interface window, enable Use Dynamic DNS.
Enter the DynDNS Hostname and authentication information.
- Click Save.
- In the Management IP Configuration section, enter a secondary IP address:
- IP ADDRESS – Enter an IP address that is free in the local network. For example,
10.0.10.6
if the MIP address is in the 10.0.10.0/24 network. - VPN SERVER – Select this check box.
- IP ADDRESS – Enter an IP address that is free in the local network. For example,
- Click Add.
- Create an access rule to redirect incoming VPN connections on the dynamic interface to the VPN server listening on the local IP address.
- Go to the FIREWALL > Firewall Rules page.
- Click Add Access Rule.
- In the Add Access Rule window, configure a Redirect to Service firewall rule.
- For the Destination, select the network object corresponding to your Internet connection type (DHCP, 3G, or DSL).
- For the Redirected To setting, select the VPN network object.
- Click Save.
- Move the access rule above the BLOCKALL rule so it is the first access rule to match incoming VPN traffic. For more information, see Firewall Rules Order.
- Click Save.
Step 2. Upload or create certificates
Use a third-party PKI to create the VPN and client certificates. For more information on how to create certificates, see How to Create Certificates with XCA and How to Create Certificates for a Client-to-Site VPN.
- Go to the ADVANCED > Certificates page.
- Click Upload.
- Certificate Name – Enter
VPN Certificate
. - Certificate Type – Select the type of certificate you want to upload.
- Add to VPN Certificates – Enable the checkbox.
- Certificate File – Select the certificate file you want to upload.
- Certificate Name – Enter
- Click Save.
Step 3. Configure client-to-site VPN settings
Configure user authentication and IPsec settings.
Step 3.1 Configure user authentication and select the certificate
- Go to the VPN > Client-To-Site VPN page.
- In the Settings section, select a User Authentication method. You can use local or external user authentication.
- From the Local Certificate list, select the certificate that you created in Step 2 (e.g., VPNCertificate).
- Click Save.
Step 3.2 Configure IPsec settings for certificate authentication
Configure the authentication type and, if needed, the encryption algorithms for IPsec phase 1 and 2.- Go to the VPN > Client-To-Site VPN page.
- In the IPsec Settings section select Client Certificate as the Authentication type.
(optional) Configure the IPsec Phase 1 Settings and IPsec Phase 2 Settings.
- Click Save.
Step 3.3 Create a VPN access policy
Define the VPN clients and network information to be passed to client.
- Go to the VPN > Client-To-Site VPN page.
- In the VPN Access Policies section, click Add Access Policy.
- In the Add VPN Access Policy window, configure the following settings:
Name – A name for the access policy.
Client Network – The network that the client will be assigned to (e.g.,
192.168.100.0/24
).- (Optional) Domain – The domain assigned to the client.
- Primary DNS Server – The IP address of the DNS server.
Published Networks – The local networks available for the VPN client.
- IPsec Phase 2 – The IPsec Phase 2 settings that you configured in Step 3.2 (e.g., Client2SiteVPNClients from the example in Step 3.2).
No Split Tunnel Mode – Enable to lock down the client to only connect to the Published Networks of the VPN tunnel. Windows hosts using the Barracuda VPN client only.
- Allowed Peers – Enable IPsec Clients for mobile devices and third-party IPsec clients and Barracuda VPN client to be able to connect with the Barracuda VPN client.
- Allowed Groups – The groups that are allowed to connect. To allow all groups, enter an asterisk (*).
- Use for CudaLaunch – Enable self-provisioning on Windows, macOS, or iOS devices for remote clients using the CudaLaunch portal. For more information, see CudaLaunch.
Configure the following settings:- CudaLaunch Server – Enter the IP address of the server providing CudaLaunch.
- Allowed Groups – Enter the user groups that the policy applies to. Click + after each entry. You can use question marks (?) and asterisks (*) as wildcard characters.
- Click Save.
Step 4. Configure clients
Configure VPN clients to connect to the IPsec VPN with certificate authentication.
Barracuda VPN clients
Configure the Barracuda VPN client to connect to the IPsec VPN with certificate authentication you just created.
- Go to the VPN > Client-To-Site page.
- Download and install the Barracuda VPN Client.
- In the Settings section, select your operating system from the Download Barracuda VPN Client list and click Download.
- Install the Barracuda VPN Client. You must have administrative rights.
- Reboot the computer after the installation.
- In the Settings section, select your operating system from the Download Barracuda VPN Client list and click Download.
- Configure a profile for connecting to the IPsec VPN.
- Start the Barracuda VPN Client.
- In the left pane, click Preferences.
- In the Barracuda VPN Control window, right-click the default profile and select Modify Profile.
- In the Properties window, specify these settings:
- Certificate – Select X509 authentication.
- Remote Server – Enter the WAN IP address or DynDNS name (e.g.,
62.99.0.51
orbfw-vpn.dyndns.org
) in the Host names or IP addresses of remote server field.
- Click OK.
- Close the Barracuda VPN Control window.
After configuring the Barracuda VPN client, you can connect to the IPsec VPN:
- Start the Barracuda VPN Connector.
- Enter your Username and Password.
- Click Connect.
You are now connected to the client-to-site IPsec VPN with the Barracuda VPN Client.
The connection status is displayed on the VPN > Active Connections page.
Mobile clients
For instructions on configuring mobile clients, see these articles:
Mobile OS | Supported Version | Article |
---|---|---|
Apple iOS | 5.2 and above | How to Configure the Apple iOS VPN Client for IPsec Shared Key VPN |
Android | 4.0 and above | How to Configure the Android VPN Client for IPsec Shared Key VPN |
Third-party IPsec VPN clients
The X-Series Firewall adheres to the IPsec standard. Any third-party IPsec client implementing this standard can connect to the IPsec VPN.