pfSense and Firebox BOVPN Virtual Interface Integration Guide

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, see 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 software installation.

Integration Summary

The hardware and software used in this guide include:

  • WatchGuard Firebox T55-W with Fireware v12.5.2
  • pfSense v2.4.4-RELEASE-p3(amd64)

Integration Topology

This diagram outlines the topology used in this integration:

Topology diagram

Configure the Firebox

To configure a BOVPN virtual interface on your Firebox:

  1. Log in to Fireware Web UI.
  2. Select VPN > BOVPN Virtual Interfaces.
    The BOVPN Virtual Interfaces configuration page opens.
  3. Click Add.
  4. In the Interface Name text box, type a name to identify this BOVPN virtual interface.
  5. From the Remote Endpoint Type drop-down list, select Cloud VPN or Third-Party Gateway.
  6. From the Gateway Address Family drop-down list, select IPv4 Addresses.
  7. In the Credential Method section, select Use Pre-Shared Key. Type the pre-shared key.
  8. In the Gateway Endpoint section, click Add.
    The Gateway Endpoint Settings dialog box opens.

Screenshot of firebox, picture1

  1. From the Physical drop-down list, select External.
  2. Select By IP Address.
  3. 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.
  4. In the By IP Address text box, type the primary IP address of the external Firebox interface.

Screenshot of firebox, picture2

  1. Select the Remote Gateway tab.
  2. Select Static IP Address. Type the IP address of your pfSense WAN connection.
  3. Select By IP Address. Type the IP address of your pfSense WAN connection.

Screenshot of firebox, picture3

  1. Click OK.
  2. In the Gateway Endpoint section, select the Start Phase 1 tunnel when it is inactive check box.
  3. Select the Add this tunnel to the BOVPN-Allow policies check box.

Screenshot of firebox, picture4

  1. Select the VPN Routes tab.
  2. Click Add.

Screenshot of firebox, picture5

  1. From the Choose Type drop-down list, select Network IPv4.
  2. In the Route To text box, type the network IP address of a route that will use this virtual interface.

Screenshot of firebox, picture6

  1. Click OK.
  2. Select the Assign virtual interface IP addresses check box.
  3. In the Local IP address and Peer IP address or netmask text boxes, type the virtual interface IP addresses.

Screenshot of firebox, picture7

  1. Select the Phase 1 Settings tab.
  2. From the Version drop-down list, select IKEv2.
  3. Keep all other values as default Phase 1 Settings.

Screenshot of firebox, picture8

  1. Keep all Phase 2 Settings as the default values.

Screenshot of firebox, picture9

  1. Click Save.

For more information about BOVPN virtual interface configuration on the Firebox, see BOVPN Virtual Interfaces.

Configure pfSense

Configure Basic Settings

  1. Log in to the pfSense Web UI at https://<IP address of the pfSense device>.
    The default IP address is https://192.168.1.1.
  2. Configure the pfSense interfaces.
    For information about how to configure interfaces and route, see the pfSense documentation.

pfSense1

pfSense2

pfSense3

Configure pfSense IPSec VPN Phase 1 Settings

  1. Select VPN > IPsec.
  2. Click + Add P1.
  3. In the General Information section, from the Key Exchange version drop-down list, select IKEv2.
  4. From the Internet Protocol drop-down list, select IPv4.
  5. From the Interface drop-down list, select WAN.
  6. In the Remote Gateway text box, type the IP address of the remote gateway.
  7. In the Phase 1 Proposal (Authentication) section, from the Authentication Method drop-down list, select Mutual PSK.
  8. From the My identifier drop-down list, select My IP address.
  9. From the Peer identifier drop-down list, select Peer IP address.
  10. In the Pre-Shared Key text box, type the pre-shared key.
  11. In the Phase 1 Proposal (Encryption Algorithm) section, from the Algorithmdrop-down list, select AES.
  12. From the Key length drop-down list, select 256 bits.
  13. From the Hash drop-down list, select SHA256.
  14. From the DH Group drop-down list, select 14 (2048 bit).
  15. In the Lifetime (Seconds) text box, type 28800.

pfSense4

  1. Keep the default values for all other settings.

pfSense5

  1. Click Save.

pfSense6

Configure pfSense IPSec VPN Phase 2 Settings

  1. Click Show Phase 2 Entries (0).
  2. Click + Add P2.
  3. In the General Information section, from the Mode drop-down list, select Routed (VTI).
  4. For Local Network, from the Type drop-down list, select Network.
  5. In the Address text box, type the local VTI address.
  6. For Remote Network, in the Address text box, type the remote VTI address.
  7. In the Phase 2 Proposal (SA/Key Exchange) section, from the Protocol drop-down list, select ESP.
  8. For Encryption Algorithms, select the AES check box and from the adjacent drop-down list, select 256 bits.
  9. For Hash Algorithms, select the SHA256 check box.
  10. From the PFS key group drop-down list, select 14 (2048 bit).
  11. In the Lifetime text box, type 3600.

pfSense7

  1. Click Save.

pfSense8

  1. Click Apply Changes.

Add the VTI Interface

  1. Select Interfaces > Assignments.

pfSense9

  1. Click + Add.
  2. Select the interface you created.
  3. Select the Enable interface check box.
  4. In the Description text box, type the interface name (for example, IPsecVTI).

pfSense10

  1. Click Save.
  2. Click Apply Changes.

Add the pfSense Static Route

  1. Select System > Routing > Gateways.
  2. Verify that it automatically creates a gateway for the IPsecVTI interface.

pfSense11

  1. Click Static Routes.
  2. Click + Add.
  3. In the Destination network text box, type the network you want to route to.
  4. From the Gateway drop-down list, select IPSECVTI_VTIV4 - 10.0.11.11.

pfSense12

  1. Click Save.
  2. Click Apply Changes.

Configure Rule Settings

  1. Select Firewall > Rules > IPsec.
  2. Click Add.
  3. From the Action drop-down list, select Pass.
  4. From the Protocol drop-down list, select Any.
  5. Keep the default values for all other settings.

pfSense13

  1. Click Save.
  2. Click Apply Changes.

pfSense14

Test the Integration

To test the integration, from Fireware Web UI:

  1. Select System Status > VPN Statistics.
  2. Select the Branch Office VPN tab.
  3. Verify that the VPN is established.

Firebox10

  1. Verify that Host 1 (behind the Firebox) and Host 2 (behind the pfSense) can ping each other.