OPNsense Router
Illustrated title card for the guide: Tailscale on OPNsense: Setup, Subnet Routes and Exit Node
VPN

Tailscale on OPNsense: Setup, Subnet Routes and Exit Node

Install the Tailscale plugin on OPNsense, restrict access to a router service, approve a LAN subnet, and verify that exit-node traffic uses your router.

By OPNsense Router Editorial · ·Updated · 5 min read

Install the community plugin os-tailscale to join your OPNsense firewall to your tailnet from the web interface. Tailscale’s OPNsense guide

GoalOPNsense roleWhat the remote client uses
Reach a service on the firewall itselfTailnet device with an inbound firewall ruleThe firewall’s Tailscale IP and the permitted service port. Router access
Reach devices on your LANSubnet routerThe LAN device’s IP inside an advertised and approved subnet. Subnet routing
Send internet traffic through OPNsenseExit nodeOPNsense 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

  1. Go to System → Firmware → Plugins. Check Show community plugins and install os-tailscale. Plugin installation
  2. Open VPN → Tailscale → Settings. Plugin menu Select Enabled, then Apply. Enabled setting · Apply button
  3. With plugin version 1.4, open VPN → Tailscale → Status and use the AuthURL to register the firewall. Plugin menu · Version 1.4 changelog
  4. 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

  1. Go to Interfaces → Assignments. Under New interface, select tailscale0 and click +. Open the new interface, select Enable interface, give it a description such as tailscale, then select Save and Apply changes. Interface assignment
  2. In Firewall → Aliases, create an alias containing the Tailscale IPs of the devices that need access. Trusted-device alias
  3. 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 fieldValue for this example
ActionPass
DirectionIncoming
VersionIPv4
ProtocolTCP
SourceYour trusted-device alias
DestinationOPNsense’s Tailscale IPv4 address
Destination Port443

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

  1. Go to VPN → Tailscale → Settings. Plugin menu Open Advertised Routes and select +. Route controls
  2. 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
  3. 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
  4. In Access controls, check that your policy allows the intended clients to reach the advertised subnet. If it does not, add a grant. Set src to the group that needs access, such as ["group:dev"], and dst to the advertised subnet, such as ["192.168.1.0/24"]. The Tailscale grant example uses ip: ["*:*"]. Route approval and permission to send traffic are separate. Subnet access rules
  5. 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

  1. In VPN → Tailscale → Settings, select Advertise Exit Node, then Apply. Plugin menu · Exit-node setting · Apply button
  2. 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
  3. If you use a custom tailnet policy, check that the intended users have permission to reach the internet. A grant or ACL with autogroup:internet as its destination permits exit-node use for the users it matches. Exit-node access policy
  4. 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.

CheckWhat to try
OPNsense serviceFrom 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 serviceTry 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 egressWith 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.

Sources

  1. Using OPNsense with Tailscale
  2. Subnet routers
  3. Exit nodes quickstart
  4. OPNsense 24.7 release notes
  5. os-tailscale menu (stable/26.1)
  6. os-tailscale settings form (stable/26.1)
  7. os-tailscale settings page (stable/26.1)
  8. os-tailscale plugin changelog (stable/26.1)
  9. OPNsense firewall rules
  10. os-tailscale subnet dialog (stable/26.1)
  11. Kernel vs. netstack subnet routing and exit nodes
  12. Route injection

Related