MikroTik BOVPN 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 integration guide describes how to configure a Branch Office VPN (BOVPN) tunnel between a WatchGuard Firebox and a MikroTik device.
Integration Summary
The hardware and software used in this guide include:
- WatchGuard T55-W
- Fireware v12.5
- MikroTik rb2011l-in
- Version RouterOS v6.45.3 or higher
Test Topology
This diagram shows the topology used to connect your WatchGuard Firebox to MikroTik with a VPN.
Configure the Firebox
To configure a BOVPN connection, from Fireware Web UI:
- Select VPN > Branch Office VPN.
The Branch Office VPN configuration page appears. - To add a gateway, in the Gateways section, click Add.
The Gateway Endpoint Settings dialog box appears. - In the Gateway Name text box, type the Gateway name.
- In the Address Family drop-down list, select IPv4 Address.
- Under 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 appears. - From the External Interface drop-down list, select External.
- From the Interface IP Address drop-down list, select Primary Interface IP Address.
The Primary Interface IP Address is the primary IP address you configured on the selected external interface. - Select By IP Address.
- In 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 public IP address of your MikroTik connection.
- Select By IP Address.
- In the adjacent text box, type the public IP address of your MikroTik connection.
- Keep the default settings for all other options.
- Click OK.
Next, configure the Phase 1 settings.
- Select the Phase 1 Settings tab.
- From the Version drop-down list, select IKEv2.
- For all other settings, keep the default values.
- Click Save.
Next, configure the Tunnels:
- On the Branch Office VPN page, in the Tunnels section, click Add.
The Branch Office VPN Tunnel configuration interface appears. - From the Gateway drop-down list, select the gateway that you added.
- In the Addresses section, click Add to configure tunnel routes for the tunnel.
The Tunnel Route Settings dialog box appears. - In the Local IP section, from the Choose Type drop-down list, select Network IPv4.
- In the Network IP text box, type the Network IP address, which is the internal network IP address of WatchGuard firebox.
- In the Remote IP section, from the Choose Type drop-down list, select Network IPv4.
- In the Network IP text box, type the Network IP address, which is the internal network IP address of MikroTik.
- For all other settings, keep the default values.
- Click OK.
- Click Save.
For more information about Branch Office VPN configuration on the Firebox, see Configure Manual BOVPN Gateways and Configure Manual BOVPN Tunnels
Configure MikroTik
To configure the MikroTik device:
- Log on to the MikroTik Web UI. The default IP address and port are http://192.168.88.1 and ether2.
- Configure all required MikroTik interfaces.
- Verify that MikroTik can connect to the Internet and to host2.
- Select IP > Firewall > NAT.
- Click Add New.
- From the Chain drop-down list, select srcnat.
- In the Src. Address text box, type the Network IP address, which is the internal network IP address of the MikroTik device.
- In the Dst. Address text box, type the Network IP address, which is the internal network IP address of the Firebox.
- From the Out. Interface drop-down list, select ether1.
- From the Action drop-down list, select Accept.
- Keep the default settings for all other options.
- Click Apply.
Next, configure IPSec settings on the MikroTik device:
- Select IP> IPsec > Proposals.
- Modify the default proposal.
- In the Name text box, type the proposal name or keep the default name.
- In the Auth. Algorithms section, select sha256.
- In the Encr. Algorithms section, selet aes-256 cbc.
- From the PFS Group drop-down list, select modp2048.
- Keep the default settings for all other options.
- Click Apply and OK.
- Select the Peers tab.
- To add new peer, click Add New .
- In the Name text box, type the peer name.
- In the Address text box, type the IP address of the External interface of the Firebox.
- In the Local Address text box, type the IP address of the ether1 interface of the Firebox.
- From the Exchange Mode drop-down list, select IKE2.
- Keep the default settings for all other options.
- Click Apply and OK.
- Select the Identities tab.
- To add a new Identity, click Add New .
- From the Peer drop-down list, select peer1.
- From the Auth. Method drop-down list, select pre shared key.
- In the Secret text box, type the secret. The secret must match the pre-shared key specified in the Firebox settings.
- Keep the default settings for all other options.
- Click Apply and OK.
- Select the Profiles tab.
- Modify the default Profile.
- From the Hash Algorithms drop-down list, select sha256.
- In the Encryption Algorithm section, select aes-256.
- In the DH Group section, select modp2048.
- Keep the default settings for all other options.
- Click Applyand OK.
- Select the Policies tab.
- To add new policy, click Add New.
- From the Peer drop-down list, select peer1.
- Select Tunnel.
- In the Src. Address text box, type the Network IP address, which is the internal network IP address of the MikroTik device.
- In the Dst. Address text box, type the Network IP address, which is the internal network IP address of the WatchGuard Firebox.
- Keep the default settings for all other options.
- Click Applyand OK.
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.
To test the integration, from the MikroTik Web UI:
- Select IP> IPsec > Policies.
- Verify that the PH2 State is established.
Finally, verify that Host1 and Host2 can ping each other successfully. In our example, Host1 is a computer behind the Firebox. Host2 is a computer behind the MikroTik device.