Running Gateway on OPNsense firewall
OPNsense plugin
OPNsense® is an open source, feature rich firewall and routing platform, offering cutting-edge network protection.
To start Defguard Gateway as OPNsense plugin:
On the release page find and download OPNsense package which will be named:
defguard-gateway_VERSION_x86_64-unknown-opnsense.pkg
– this package includes both Defguard Gateway and OPNsense plugin.Install the package:
pkg add defguard-gateway_VERSION_x86_64-unknown-opnsense.pkg
Refresh your OPNsense UI by running command below:
opnsense-patch
Go to your OPNsense UI and navigate to VPN > Defguard Gateway.

Fill out the form with appropriate values, click Save, and then click Start/Restart.
If everything went well, Defguard Gateway should be connected to Defguard Core and you can start adding new devices to your network.
See also: how to configure Defguard in OPNsense
Binary Install
Checkout Gateway releases here and download compatible binary from GitHub page.
Decompress and move to bin directory
tar xcf ./gateway.tar.gz
sudo chmod +x gateway
sudo mv gateway /usr/bin/
Start gateway
gateway -g <CORE_GRPC_URL:GRPC_PORT> -t <DEFGUARD_TOKEN>
Last updated
Was this helpful?