Setting up site-to-site on Barracuda

Note: If you are unsure whether site-to-site is the best solution for you, please take a look at our Remote Access article first. What is more, if your device/service supports SHA256 and DH group 14, it is recommended to use these settings instead.


Configuring the tunnel at the Barracuda Management Interface

1. Open the Barracuda Management Interface

2. In the top menu, select Configuration > Virtual Servers > Your virtual server > Assigned Services > VPN (VPN-Service) > Site to Site


3. Select IPsec IKEv2 Tunnels and create a new tunnel, then fill in the following information:


Phase 1:

  • Encryption: AES256
  • Hash: SHA256
  • Diffie-Hellman Group: 14
  • Proposal Handling: Strict
  • Lifetime: 28800

Phase 2:

  • Encryption: AES256
  • Hash: SHA256
  • DH-Group: 14
  • Proposal Handling: Strict
  • Lifetime: 43200
  • Traffic Volume (KB): Unlimited

4. Next, you will need to configure the Network Settings, go to the Configuration > Site to Site VPN (vpn) and edit or add a new one:03_Setting_up_site-to-site_on_Barracuda.png

  • Endpoint Type: IPv4
  • One VPN Tunnel per Subnet Pair: Unchecked
  • Universal Traffic Selectors: Unchecked
  • Force UDP Encapsulation: Unchecked
  • IKE Reauthentication: Checked
  • Next Hop Routing:
  • Interface Index: 0


Network Local:

  • Local Gateway: <Barracuda FW Public IP>
  • Local ID: <Barracuda FW Public IP>
  • Network address: <Internal-Network Subnets>


Network Remote:

  • Remote Gateway: <the IP of your NordLayer dedicated server>
  • Remote ID: <the IP of your NordLayer dedicated server>
  • Network address: <>


Dead Peer Detection:

  • Action: Restart
  • Delay (seconds): 30


5. Click OK

Don't forget to click on Send Changes, Activation Pending and Activate:



Configuring firewall and static routing

Be sure to allow-list NordLayer private gateway public IP on your firewall rules to allow for incoming traffic, under Firewall > Forwarding Rules:


It should appear under the firewalls rules as seen below:


It is also necessary to add static routes from the NordLayer subnet ( to the local network and from the local network to the NordLayer subnet ( to the local network through the VPN tunnel gateway.

1. Go to Configuration-> Client Networks

2. Add a new network and set the following:

Network Address: 172.XXX.0.0/16 (or relevant subnet)

Gateway: local Barracuda IP

Name: NordLayer (or any other name you chose for the tunnel).

3. Select OK

Make sure the tunnel is up

At the Barracuda Management Interface, go to VPN -> Site-to-Site. If the tunnel is up the line will appear in the table:



Ending note:

In order to finalize the site-to-site setup on our end, we will need these values:

  • Pre-shared key - you can generate it or we can provide it
  • Encryption  details (AES, SHA and DH group) - AES256, SHA256 and DH group 14 are recommended (also must support IKEv2)
  • Remote gateway/router public IP (must be reachable while connected to the dedicated server)
  • Remote subnet and mask (the subnet is used in your local network)

Lastly, it is important to know what device or cloud network is being used (Ubiquiti, Fortigate, AWS, Google Cloud, etc.)

You can provide all of these values to us securely via

In case you are experiencing different results, make sure that you have you carefully gone through all the steps. Having said that, in case the issue persists please feel free to contact our 24/7 customer support team.

Return to top