pfSense and Firebox Policy-Based BOVPN Integration Guide

This integration guide describes how to configure a policy-based Branch Office VPN (BOVPN) between a WatchGuard Firebox and a pfSense firewall.

Contents

Integration Summary

The hardware and software used in this guide include:

  • WatchGuard Firebox with Fireware v12.11.2 (B713726)
  • pfSense device with v2.8.0-BETA (amd64)

Integration Topology

This diagram outlines the topology used in this integration.

Topology diagram

Configure the Firebox

You can configure your Firebox for a policy-based BOVPN from WatchGuard Cloud for a cloud-managed Firebox or Fireware Web UI for a locally-managed Firebox.

Configure pfSense

This section describes how to configure the pfSense settings.

Configure Basic Settings

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

Screenshot of pfSense, picture new1

Screenshot of pfSense, picture new10

Configure the pfSense IPSec VPN Phase 1 and 2 Settings

  1. Log in to the pfSense Web UI at: https://<IP address of the pfSense device>
  2. Select VPN > IPsec > Tunnels.
  3. Click + Add P1.
  4. In the IKE Endpoint Configuration section, from the Key Exchange Version drop-down list, select IKEv2.
  5. From the Internet Protocol drop-down list, select IPv4.
  6. From the Interface drop-down list, select WAN.
  7. In the Remote Gateway text box, type the external IP address of the Firebox.
  8. In the Phase 1 Proposal (Authentication) section, from the Authentication Method drop-down list, select Mutual PSK.
  9. From the My Identifier drop-down list, select My IP Address.
  10. From the Peer Identifier drop-down list, select Peer IP address.
  11. In the Pre-Shared Key text box, type the pre-shared key.
  12. In the Phase 1 Proposal (Encryption Algorithm) section, from the Algorithm drop-down list, select AES.
  13. From the Key Length drop-down list, select 256 bits.
  14. From the Hash drop-down list, select SHA256.
  15. From the DH Group drop-down list, select 14 (2048 bit).
  16. In the Life Time text box, type 28800.

    Screenshot of pfSense, picture Pfsense-IPsec-Phase-1_001

    Screenshot of pfSense, picture Pfsense-IPsec-Phase-1_002

  17. Keep the default values for all other settings.

    Screenshot of pfSense, picture Pfsense-IPsec-Phase_1-003

  18. Click Save.

    Screenshot of pfSense, picture new6

  19. Click Show Phase 2 Entries.
  20. Click + Add P2.
  21. In the General Information section, from the Mode drop-down list, select Tunnel IPv4.
  22. For Local Network, from the Type drop-down list, select Network.
  23. In the Address text box, type the local network IP address.
  24. For Remote Network, from the Type drop-down list, select Network.
  25. In the Address text box, type the remote network IP address.
  26. In the Phase 2 Proposal (SA/Key Exchange) section, from the Protocol drop-down list, select ESP.
  27. For Encryption Algorithms, select AES. In the adjacent drop-down list, select 256 bits. Do not select the AES128-GCM check box.
  28. For Hash Algorithms, select the SHA256 check box.
  29. From the PFS Key Group drop-down list, select 14 (2048 bit).
  30. In the Life Time text box, type 3600.

    Screenshot of pfSense, picture IPsec Phase 2 one

  31. Click Save.

    Screenshot of pfSense, picture new8

  32. Click Apply Changes.

Configure Rule Settings

  1. Log in to the pfSense Web UI at: https://<IP address of the pfSense device>

  2. Select Firewall > Rules > IPsec.
  3. Click Add.
  4. From the Action drop-down list, select Pass.
  5. From the Protocol drop-down list, select Any.
  6. From the Source drop-down list, select Network.
  7. In the Source Address text box, type the remote network IP address.
  8. From the Destination drop-down list, select Network.
  9. In the Destination Address text box, type the local network IP address.
  10. Keep the default values for all other settings.

    Screenshot of pfSense, picture new11

  11. Click Save.
  12. (Optional) Repeat Steps 2-10 to create another rule.

    Screenshot of pfSense, picture new12

  13. Click Apply Changes.

Test the Integration