Sophos XG Firewall 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, go to the documentation and support resources for that product.
This integration guide describes how to configure a BOVPN Virtual Interface tunnel between a WatchGuard Firebox and a Sophos XG Firewall.
Contents
Integration Summary
The hardware and software used in this guide include:
- WatchGuard Firebox
- Fireware v12.9.2
- Sophos XG Firewall SFVUNL
- SFOS 19.5.1 MR-1
Topology
This diagram shows the topology for a BOVPN virtual interface connection between a Firebox and a Sophos XG Firewall.
Configure the Firebox
On the Firebox, configure a BOVPN Virtual Interface connection, from 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.
- In the adjacent text box, 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 adjacent text box, type the primary IP address of the External Firebox interface.
- Select the Remote Gateway tab.
- Select Static IP Address.
- In the adjacent text box, type the IP address of your Sophos XG Firewall WAN connection.
- Select By IP Address.
- In the adjacent text box, type the IP address of your Sophos XG Firewall WAN connection.
- Click OK.
- In the Gateway Endpoint section, select Start Phase 1 tunnel when it is inactive.
- Select Add this tunnel to the BOVPN-Allow policies.
- 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 for this virtual interface.
- Click OK.
- Select the Assign virtual interface IP addresses (required for dynamic routing) 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 Phase 1 settings as the default values.
- Keep 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 the Sophos XG Firewall
From the Sophos XG Firewall Web UI, configure the Sophos XG firewall.
Basic Settings
- Log in to the Sophos XG Firewall Web UI at https://<IP address of Sophos>. The default IP address is 172.16.16.16:4444.
- Configure the interfaces. For information about how to configure interfaces, go to the Sophos XG Firewall documentation. Our example uses 192.168.13.3 for the IPv4 address of PortA.
- Select Configure > Routing > Gateways.
- Verify the gateway status is on (green).
Configure IP Hosts
From the Sophos XG Firewall Web UI, configure IP hosts:
- Select System > Hosts and services > IP host.
- Click Add.
- In the Name text box, type the object name. In our example, the name is Sophos_lan.
- For Type, select Network.
- In the IP address text box, type the IP segment.
- Keep all other settings as the default values.
- Click Save.
- Repeat steps 1–7 to create another IP segment.
Add IPSec Profiles
From the Sophos XG Firewall Web UI, add IPSec profiles:
- Select System > Profiles > IPsec profiles.
- Click Add.
- In the Name text box, type the object name. In our example, the name is BOVPN_Virtual_Interface_IKEv2.
- For Key exchange, select IKEv2.
- Select the Re-key connection check box.
- In the Phase 1 section, from the DH group (key group) drop-down list, select 14 (DH2048).
- Delete the other default DH groups.
- In the Phase 2 section, from the PFS group (DH group) drop-down list, select 14 (DH2048).
- Keep the default values for all other settings.
- Click Save.
IPSec VPN Connection Settings
From the Sophos XG Firewall Web UI, configure IPSec VPN connection settings:
- Select Configure > Site-to-site VPN > IPsec.
- In the IPsec connections section, click Add.
- In the General settings section, type an object name in the Name text box. In our example, the name is wg_connection.
- From the Connection type drop-down list, select Tunnel interface.
- For IP version, select IPv4 or Dual.
- From the Gateway type drop-down list, select Initiate the connection.
- Select Activate on save.
- In the Encryption section, from the Profile drop-down list, select BOVPN_Virtual_Interface_IKEv2.
- From the Authentication type drop-down list, select Preshared key.
- In the Preshared key text box, type the pre-shared key.
- In the Repeat preshared key text box, type the pre-shared key again.
- In the Gateway settings section, from the Listening interface drop-down list, select PortB - 198.51.100.2.
- In the Gateway address text box, type the WAN IP address of Firebox.
- Leave the default values for all other settings.
- Click Save.
- Click OK.
Edit the XFRM Interface
From the Sophos XG Firewall Web UI, edit the XFRM Interface:
- Select Configure > Network > Interfaces.
- Expand the WAN interface (PortB in our example).
- Select and click the xfrm interface. In our example, the xfrm interface name is xfrm1.
- In the IPv4/netmask text box, type the xfrm IP address.
- Click Save.
- Click Update interface.
Configure a Static Route
From the Sophos XG Firewall Web UI, configure a static route:
- Select Configure > Routing > Static routes.
- In the IPv4 unicast route section, click Add.
- In the Destination IP / Netmask text box, type the destination IP address.
- From the Interface drop-down list, select xfrm1-10.0.11.10.
- Click Save.
Configure Firewall Rules
From the Sophos XG Firewall Web UI, configure firewall rules:
- Select Protect > Rules and Policies > Firewall rules > IPv4.
- Click Add firewall rule > New firewall rule.
- In the Rule name text box, type a rule name. In our example, the name is Rule1.
- Select the Log firewall traffic check box.
- In the Source zones section, click Add new item and select VPN.
- In the Source networks and devices section, click Add new item and select WG_lan.
- In the Destination zones section, click Add new item and select LAN.
- In the Destination networks section, click Add new item and select Sophos_lan.
- Keep the default values for all other settings.
- Click Save.
- Repeat steps 1–10 to create another firewall rule.
Test the Integration
From Fireware Web UI, test the integration:
- Select System Status > VPN Statistics.
- Select the Branch Office VPN tab and verify the VPN is established.
- Verify that Host1 (behind the Firebox) and Host2 (behind the Sophos XG Firewall) can ping each other.