Install the community plugin os-tailscale to join your OPNsense firewall to your tailnet from the web interface. Tailscale’s OPNsense guide
| Goal | OPNsense role | What the remote client uses |
|---|---|---|
| Reach a service on the firewall itself | Tailnet device with an inbound firewall rule | The firewall’s Tailscale IP and the permitted service port. Router access |
| Reach devices on your LAN | Subnet router | The LAN device’s IP inside an advertised and approved subnet. Subnet routing |
| Send internet traffic through OPNsense | Exit node | OPNsense selected as the client’s exit node. Exit-node setup |
Install the plugin and join your tailnet
OPNsense Community Edition 24.7.11 introduced os-tailscale 1.0. OPNsense release notes
- Go to System → Firmware → Plugins. Check Show community plugins and install
os-tailscale. Plugin installation - Open VPN → Tailscale → Settings. Plugin menu Select Enabled, then Apply. Enabled setting · Apply button
- With plugin version 1.4, open VPN → Tailscale → Status and use the
AuthURLto register the firewall. Plugin menu · Version 1.4 changelog - You can find its Tailscale IP in the admin console. Admin console and device IP
Allow one service on OPNsense
OPNsense’s default firewall policy blocks incoming Tailscale traffic to the firewall itself until you assign the Tailscale interface and add a pass rule for the service. OPNsense firewall setup
- Go to Interfaces → Assignments. Under New interface, select
tailscale0and click +. Open the new interface, select Enable interface, give it a description such astailscale, then select Save and Apply changes. Interface assignment - In Firewall → Aliases, create an alias containing the Tailscale IPs of the devices that need access. Trusted-device alias
- In Firewall → Rules, select the assigned Tailscale interface and choose Add. Adding the pass rule Use the settings below for an HTTPS service listening on TCP port 443. Firewall rule fields and HTTPS example
| Rule field | Value for this example |
|---|---|
| Action | Pass |
| Direction | Incoming |
| Version | IPv4 |
| Protocol | TCP |
| Source | Your trusted-device alias |
| Destination | OPNsense’s Tailscale IPv4 address |
| Destination Port | 443 |
Set the protocol and destination port to match the service you intend to reach. Give the rule a description, select Save, then select Apply changes. Saving firewall rules
Advertise and approve one LAN subnet
- Go to VPN → Tailscale → Settings. Plugin menu Open Advertised Routes and select +. Route controls
- In Subnet, enter your LAN’s CIDR, such as
192.168.1.0/24. Subnet field Add the route entry, then select Apply on the Settings page. Route editor and Apply button - To approve the route manually, open Machines in the Tailscale admin console, select the OPNsense device with the Subnets badge, and go to its Subnets section. Select the advertised route and choose Save. Manual route approval
- In Access controls, check that your policy allows the intended clients to reach the advertised subnet. If it does not, add a grant. Set
srcto the group that needs access, such as["group:dev"], anddstto the advertised subnet, such as["192.168.1.0/24"]. The Tailscale grant example usesip: ["*:*"]. Route approval and permission to send traffic are separate. Subnet access rules - On a remote Linux client, enable subnet route acceptance. Android, iOS, macOS, tvOS and Windows accept these routes by default. Client route acceptance
sudo tailscale set --accept-routes
OPNsense is based on FreeBSD. OPNsense platform Tailscale uses userspace routing for subnet routers and exit nodes on FreeBSD. It relays TCP and UDP by opening new outbound connections to the destination, and it handles ICMP ping by issuing its own ping. FreeBSD routing behavior
Advertise and select an exit node
- In VPN → Tailscale → Settings, select Advertise Exit Node, then Apply. Plugin menu · Exit-node setting · Apply button
- In the Tailscale admin console, go to Machines and find OPNsense with the Exit Node badge. Open its device menu, select Edit route settings, check Use as exit node, then select Save. Exit-node approval
- If you use a custom tailnet policy, check that the intended users have permission to reach the internet. A grant or ACL with
autogroup:internetas its destination permits exit-node use for the users it matches. Exit-node access policy - On a remote Linux client, replace
<exit-node-ip>with the firewall’s Tailscale IP before running the command below. Linux exit-node selection
sudo tailscale set --exit-node=<exit-node-ip>
Verify router access, LAN access and internet egress
Run each check from a remote tailnet client.
| Check | What to try |
|---|---|
| OPNsense service | From an allowed device, open the service using the firewall’s Tailscale IP and the permitted port. If it fails, look for a default-deny entry for tailscale0 in Firewall → Log Files → Live View. Router access and firewall logs |
| LAN service | Try opening a LAN service at the device’s own IP, such as 192.168.1.50 in the example subnet. The client must accept the approved route, and the access policy must permit the traffic. Routed LAN address example |
| Internet egress | With OPNsense selected as the exit node, check your public IP using an online IP checker. It should show the exit node’s public IP. Exit-node verification |
If you’ve allowed ICMP ping, you can also ping the router’s Tailscale IP as a preliminary check. Subnet router verification
If the LAN route is missing, check that OPNsense is advertising it and that it is approved in Machines. On the Linux client, run tailscale debug prefs and look for RouteAll: true. If RouteAll is false, rerun the route-acceptance command above. Missing routes If the route is present, check the tailnet policy, whether OPNsense can reach the destination, and whether either firewall blocks the traffic. Blocked traffic
If you’re choosing among native VPNs, see the OPNsense comparison of WireGuard, OpenVPN and IPsec. For a manually configured link between two firewalls, see the WireGuard site-to-site setup.
Evidence and limits
The plugin steps follow the OPNsense stable/26.1 plugin interface and the os-tailscale 1.4 changelog. The routing, approval and client steps follow Tailscale’s documentation. The guide covers one IPv4 LAN subnet and a Linux client for the commands shown. Documentation checked November 30, 2026. No hands-on testing was performed for this guide.