pfSense and Firebox BOVPN Virtual Interface Integration Guide
Contents
Deployment Overview
WatchGuard provides integration instructions to help our customers configure WatchGuard products to work with products created by other organizations. If you need more information or technical support about how to configure a third-party product, go to the documentation and support resources for that product.
This guide describes how to configure a BOVPN virtual interface between a WatchGuard Firebox and a pfSense device.
Integration Summary
The hardware and software used in this guide include:
- WatchGuard Firebox with Fireware v12.10 (Build 682931)
- pfSense device with v2.7.0-RELEASE (amd64)
Integration Topology
This diagram outlines the topology used in this integration:
Configure the Firebox
To configure a BOVPN virtual interface on your Firebox:
- Log in to Fireware Web UI.
- Select VPN > BOVPN Virtual Interfaces.
The BOVPN Virtual Interfaces configuration page opens. - Click Add.
- In the Interface Name text box, type a name to identify this BOVPN virtual interface.
- From the Remote Endpoint Type drop-down list, select Cloud VPN or Third-Party Gateway.
- From the Gateway Address Family drop-down list, select IPv4 Addresses.
- In the Credential Method section, select Use Pre-Shared Key. Type the pre-shared key.
- In the Gateway Endpoint section, click Add.
The Gateway Endpoint Settings dialog box opens.
- From the Physical drop-down list, select External.
- From the Interface IP Address drop-down list, select Primary Interface IPv4 Address.
The Primary Interface IP Address is the primary IP address you configured on the selected external interface. - Select By IP Address.
- In the By IP Address text box, type the primary IP address of the external Firebox interface.
- Select the Remote Gateway tab.
- Select Static IP Address. Type the IP address of your pfSense WAN connection.
- Select By IP Address. Type the IP address of your pfSense WAN connection.
- Click OK.
- In the Gateway Endpoint section, select the Start Phase 1 tunnel when it is inactive check box.
- Select the Add this tunnel to the BOVPN-Allow policies check box.
- Select the VPN Routes tab.
- Click Add.
- From the Choose Type drop-down list, select Network IPv4.
- In the Route To text box, type the network IP address of a route that uses this virtual interface.
- Click OK.
- Select the Assign virtual interface IP addresses check box.
- In the Local IP address and Peer IP address or netmask text boxes, type the virtual interface IP addresses.
- Select the Phase 1 Settings tab.
- From the Version drop-down list, select IKEv2.
- Keep all other values as default Phase 1 Settings.
- Keep all Phase 2 Settings as the default values.
- Click Save.
For more information about BOVPN virtual interface configuration on the Firebox, go to BOVPN Virtual Interfaces.
Configure pfSense
Configure Basic Settings
- Log in to the pfSense Web UI at: https://<IP address of the pfSense device>
The default IP address of the interface is: https://192.168.1.1 - Configure the pfSense interfaces.
For information about how to configure interfaces, go to the pfSense documentation.
Configure pfSense IPSec VPN Phase 1 Settings
- Select VPN > IPsec.
- Click + Add P1.
- In the IKE Endpoint Configuration section, from the Key Exchange version drop-down list, select IKEv2.
- From the Internet Protocol drop-down list, select IPv4.
- From the Interface drop-down list, select WAN.
- In the Remote Gateway text box, type the IP address of the remote gateway.
- In the Phase 1 Proposal (Authentication) section, from the Authentication Method drop-down list, select Mutual PSK.
- From the My identifier drop-down list, select My IP address.
- From the Peer identifier drop-down list, select Peer IP address.
- In the Pre-Shared Key text box, type the pre-shared key.
- In the Phase 1 Proposal (Encryption Algorithm) section, from the Algorithmdrop-down list, select AES.
- From the Key length drop-down list, select 256 bits.
- From the Hash drop-down list, select SHA256.
- From the DH Group drop-down list, select 14 (2048 bit).
- In the Life Time text box, type 28800.
- Keep the default values for all other settings.
- Click Save.
Configure pfSense IPSec VPN Phase 2 Settings
- Click Show Phase 2 Entries (0).
- Click + Add P2.
- In the General Information section, from the Mode drop-down list, select Routed (VTI).
- For Local Network, from the Type drop-down list, select Address.
- In the Address text box, type the local VTI address.
- From the Remote Network drop-down list, select Address.
- In the Address text box, type the remote VTI address.
- In the Phase 2 Proposal (SA/Key Exchange) section, from the Protocol drop-down list, select ESP.
- For Encryption Algorithms, select the AES check box and from the adjacent drop-down list, select 256 bits.
- For Hash Algorithms, select the SHA256 check box.
- From the PFS key group drop-down list, select 14 (2048 bit).
- In the Life Time text box, type 3600.
- Click Save.
- Click Apply Changes.
Add the VTI Interface
- Select Interfaces > Assignments.
- From the Available network ports drop-down list, select ipsec1 (IPsec VTI:).
- Click + Add.
- Select the interface you created.
- Select the Enable interface check box.
- In the Description text box, type the interface name (for example, IPsecVTI).
- Click Save.
- Click Apply Changes.
Add the pfSense Static Route
- Select System > Routing > Gateways.
- Verify that a gateway for the IPsecVTI interface was created automatically.
- Click Static Routes.
- Click + Add.
- In the Destination network text box, type the network you want to route to.
- From the Gateway drop-down list, select IPSECVTI_VTIV4 - 10.0.11.11.
- Click Save.
- Click Apply Changes.
Configure Rule Settings
- Select Firewall > Rules > IPsec.
- Click Add.
- From the Action drop-down list, select Pass.
- From the Protocol drop-down list, select Any.
- From the Source drop-down list, select Network.
- In the Source Address text box, type the remote network IP address.
- From the Destination drop-down list, select Network.
- In the Destination Address text box, type the local network IP address.
- Keep the default values for all other settings.
- Click Save.
- Click Apply Changes.
Test the Integration
To test the integration, from Fireware Web UI:
- Select System Status > VPN Statistics.
- Select the Branch Office VPN tab.
- Verify that the VPN is established.
- Verify that Host 1 (behind the Firebox) and Host 2 (behind the pfSense) can ping each other.