How to Configure BGP Routing over an IKEv1 IPsec VPN Tunnel
Follow the instructions in this article to configure the BGP service with an intermediary /30 network between a local and remote VPN gateway. The BGP service uses the IPsec tunnel to dynamically learn the routes of the remote network. You must configure both the local and remote Barracuda CloudGen Firewalls.
| Example Values for the Local Barracuda CloudGen Firewall | Example Values for the Remote Barracuda CloudGen Firewall |
|---|---|---|
VPN Next Hop Interface Index | 13 | 13 |
VPN Next Hop Interface IP Address | 192.168.22.1/30 | 192.168.22.2/30 |
Shared Network IP Address | 192.168.22.1 | 192.168.22.2 |
VPN Local Networks | 192.168.22.0/30 | 192.168.22.0/30 |
VPN Remote Networks | 192.168.22.0/30 | 192.168.22.0/30 |
VPN Interface Index | 13 | 13 |
VPN Next Hop Routing | 192.168.22.2 | 192.168.22.1 |
ASN | 64577 | 64579 |
Router ID | 192.168.22.1 | 192.168.22.2 |
Neighbor IPv4 | 192.168.22.2 | 192.168.22.1 |
Neighbor AS Number | 64579 | 64577 |
Neighbor Update Source Interface | vpnr13 | vpnr13 |
Before You Begin
Before you configure BGP over an IPsec VPN, obtain the following:
A free /30 subnet. E.g.,
192.168.22.0/30Autonomous system numbers (ASNs) for the remote and local networks. The ASNs can be private or public because the VPN is not directly connected to the Internet.
Step 1. Add a VPN Next Hop Interface
Add a VPN next hop interface using a /30 subnet.
Go to CONFIGURATION > Configuration Tree > Box > Assigned Services > VPN-Service > VPN Settings.
Click Lock.
In the left menu, select Routed VPN.
Next to the Next Hop Interface Configuration table, click Add.
Configure the VPN next hop interface settings:
In the VPN Interface Index field, enter a number between
0and999. E.g.,13In the IP Addresses field, enter the VPN interface IP address. E.g.,
192.168.22.1/30for the local firewall or192.168.22.2/30for the remote firewall.Click OK. The VPN next hop interface is listed in the VPN Next Hop Interface Configuration table.
Click Send Changes and Activate.
Step 2. Add the VPN Interface IP to the Shared IP Addresses
Introduce the IP address of the VPN next hop interface on the firewall.
CloudGen Firewalls installed using version 8.0.2 (or higher) do not require the interface IP address to be added to the Shared Networks table as this is handled by the host firewall ruleset.
Go to CONFIGURATION > Configuration Tree > Box > Network.
In the left menu, select IP Configuration.
Click Lock.
In the Shared Networks and IPs section, click +. The Shared Network and IPs window opens.
Select the virtual Interface.
In the Network Address field, enter the network the virtual interface resides in.
In the Shared IPs in this Network table, click + and add the intermediary VPN IP address of the VPN interface. E.g., 192.168.22.1 for the local firewall or 192.168.22.2 for the remote firewall.
Click OK.
Click Send Changes and Activate.
Step 3. Configure the Site-to-Site VPN Settings
Configure a site-to-site VPN IPsec tunnel including the VPN next hop interface.
Go to CONFIGURATION > Configuration Tree > Box > Assigned Services > VPN-Service > Site to Site.
Click Lock.
Click the IPsec IKEv1 Tunnels tab.
Right-click the table under the IPsec IKEv1 Tunnels tab and then select New IPsec IKEv1 tunnel.
In the IPsec IKEv1 Tunnel window:
In the Local Networks tab, enter:
Local IKE Gateway – Enter the local public IP address the VPN service is listening on.
Network Address – Add the intermediary VPN subnet. E.g.,
192.168.22.0/30
In the Remote Networks tab, enter:
Remote IKE Gateway – Enter the remote public IP address the remote VPN service is listening on.
Network Address – Add the intermediary VPN subnet. E.g.,
192.168.22.0/30
Click the Peer Identification tab and then enter a passphrase the Shared Secret.
The password can consist of small and capital characters, numbers, and non-alpha-numeric symbols, except the hash sign (#).
Click the Advanced tab and enter:
VPN Next Hop Routing – Enter the IP address of the remote (opposite) VPN next hop interface. E.g.,
192.168.22.2for the local firewall or192.168.22.1for the remote firewall.Interface Index – Enter the interface number of the VPN next hop interface configured in Step 1. E.g.
13
Click OK.
Click Send Changes and Activate.