When someone on the team asks to reach the office NAS from a hotel, the shortest honest answer on Fedora is Tailscale. One package and one login put the laptop on a private WireGuard mesh, and nothing gets forwarded on the office router. The catch on current Fedora is that the install line Tailscale publishes still uses dnf4 syntax, and dnf5 rejects it. After that, the subnet router and exit node work with SELinux enforcing, but firewalld quietly drops forwarded traffic when the LAN interface is not in a zone.
This guide shows how to install Tailscale on Fedora with dnf5, log in with tailscale up, confirm MagicDNS through systemd-resolved, and turn one Fedora box into a subnet router and exit node behind firewalld. It also covers a self-hosted Headscale server, which Fedora now packages. We re-ran every step in November 2026 on a Fedora 45 router, a Fedora 44 laptop and a Fedora 45 Headscale box with Tailscale 1.104.7 and SELinux enforcing.
Planning the setup
Every Fedora machine that should join the tailnet needs the same install, and only the box that forwards traffic needs the router steps. You do not have to decide on the router role up front. On our test network that box is vpn-gw, a Fedora server sitting next to an office LAN (172.20.30.0/24) with a NAS at 172.20.30.10 that will never run Tailscale itself. The laptop, laptop44, reaches that NAS by asking vpn-gw to forward for it.

The control server only hands out keys and routes. Traffic between the two Fedora machines goes straight over WireGuard on UDP 41641, and our tailscale ping confirmed a direct path rather than a relay. Before you start, have these ready:
- Fedora 45 or 44 (Workstation, Server or Cloud) with sudo
- A Tailscale account, or a Headscale server you control
- firewalld running on the router box
- Outbound TCP 443 and UDP 3478 from every machine
Fedora Server and Workstation ship firewalld, but the Fedora Cloud image we tested on doesn’t, so the install step below adds it alongside Tailscale (do the same on a Headscale host, if you build one). The core path is the first three sections. Everything after that is optional, and you only need the pieces that match what you want the box to do:
| Section | Needed for | Extra things you need |
|---|---|---|
| Headscale login server | Self-hosted control plane, no Tailscale account | A server for Headscale, TCP 8080 (or 443 behind TLS) |
| Subnet router | Reaching LAN devices that can’t run Tailscale | IP forwarding, LAN interface in a firewalld zone |
| Exit node | Sending all client traffic out through home or office | IP forwarding, route approval |
Adding the Tailscale repo with dnf5
Tailscale publishes signed RPMs for Fedora, so you don’t need COPR or a tarball. The command on pkgs.tailscale.com is dnf config-manager --add-repo, which is dnf4 syntax. Current Fedora ships dnf5 as dnf, and on our VM that line stopped with an error:
Unknown argument "--add-repo" for command "config-manager". Add "--help" for more information about the arguments.
The dnf5 form takes a subcommand and a URL to a .repo file. It fetches that file and drops it into /etc/yum.repos.d/:
sudo dnf config-manager addrepo --from-repofile=https://pkgs.tailscale.com/stable/fedora/tailscale.repo
On our Fedora 45 router the failed dnf4 line and the working dnf5 form sat side by side, followed by the repo file it wrote.

Check what landed. Both gpgcheck and repo_gpgcheck are on, so dnf verifies the repo metadata as well as every package.
cat /etc/yum.repos.d/tailscale.repo
You should see the stable channel pointing at the $basearch tree, with no release number anywhere in the path.
[tailscale-stable]
name=Tailscale stable
baseurl=https://pkgs.tailscale.com/stable/fedora/$basearch
enabled=1
type=rpm
repo_gpgcheck=1
gpgcheck=1
gpgkey=https://pkgs.tailscale.com/stable/fedora/repo.gpg
The repo path has no Fedora release number in it, so the same file worked on both releases we tested and won’t break when you upgrade. That’s a nice change from repos that 404 on a new release, which our third-party repo 404 fixes deal with.
Installing Tailscale and starting tailscaled
The package is called tailscale and carries both the CLI and the tailscaled daemon. We added firewalld to the same transaction because the Cloud image lacks it; on Server or Workstation dnf just reports it as already installed. The first install imports Tailscale’s signing key, so read the fingerprint dnf prints before you trust it:
sudo dnf -y install tailscale firewalld
Our run imported key 0x957F5868, and the Tailscale package itself is a single RPM (75 MiB installed) with no dependencies of its own. Everything else in the list came in with firewalld:
Importing OpenPGP key 0x957F5868:
UserID : "Tailscale Inc. (Package repository signing key) <[email protected]>"
Fingerprint: 2596A99EAAB33821893C0A79458CA832957F5868
From : https://pkgs.tailscale.com/stable/fedora/repo.gpg
The key was successfully imported.
Repositories loaded.
Package Arch Version Repository Size
Installing:
firewalld noarch 0:2.5.2-1.fc45 fedora 2.1 MiB
tailscale x86_64 0:1.104.7-1 tailscale-stable 74.7 MiB
Fedora’s preset leaves new services disabled (the unit shows preset: disabled), so enable and start the daemon yourself. Skip this and tailscale up fails because nothing is listening on its local socket.
sudo systemctl enable --now tailscaled firewalld
Confirm the version and that the service is up before going further, because every later step talks to this daemon.
tailscale version
systemctl status tailscaled --no-pager
The first line of tailscale version is the one you’ll compare against the release notes later, and the service should be active (running):
1.104.7
tailscale commit: fb3b9b2964ace04490fbd65d4f26a0eaf362131f
long version: 1.104.7-tfb3b9b296-g0651cc45e
other commit: 0651cc45e79e308b0b3b808f4b42e7f3a1a8c221
go version: go1.27.4 (tailscale/go 1635316a95)
● tailscaled.service - Tailscale node agent
Loaded: loaded (/usr/lib/systemd/system/tailscaled.service; enabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: active (running) since Sun 2026-11-29 22:35:56 UTC; 2s ago
Status: "Needs login: "
Under SELinux enforcing, tailscaled runs in the unconfined_service_t domain because Fedora ships no dedicated policy for it. That is why nothing here needs a boolean or a custom module, and it’s also why you shouldn’t treat SELinux as a fence around this daemon. You can check the domain yourself with ps -eZ | grep tailscaled:

We ran sudo ausearch -m avc,user_avc -ts today on the router after the full run, and again with -ts boot after a reboot, and both came back <no matches>.
Logging in with tailscale up
With a Tailscale account, one command registers the machine. It prints a login URL and waits until someone approves the device in a browser, so on a headless server you open that link on your own laptop:
sudo tailscale up
The command prints a login link and waits there until you finish the browser step:
To authenticate, visit:
https://login.tailscale.com/a/1a2b3c4d5e6f7
After approval, tailscale ip -4 prints the machine’s 100.x address and tailscale status lists every peer you can see. For servers you’d rather not approve by hand, generate an auth key in the admin console and pass it as --authkey=, which is also how a Headscale client joins.
Checking MagicDNS on Fedora
MagicDNS lets you use machine names instead of 100.x addresses, and Tailscale turns it on for tailnets created since October 2022. Fedora uses systemd-resolved, so tailscaled registers its resolver on the tailscale0 link instead of rewriting /etc/resolv.conf, and you can see exactly which queries it takes:
resolvectl status tailscale0
A working link lists 100.100.100.100 as its DNS server and your tailnet domain as the search domain. On Tailscale’s service that domain ends in .ts.net, and on our Headscale lab it was tailnet.example.com. The real output also lists 64 ~NN.100.in-addr.arpa reverse zones for the 100.64.0.0/10 range, which we cut here:
Link 3 (tailscale0)
Current Scopes: DNS
Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 100.100.100.100
DNS Servers: 100.100.100.100 fd7a:115c:a1e0::53
DNS Domain: tailnet.example.com ~0.e.1.a.c.5.1.1.a.7.d.f.ip6.arpa
Default Route: no
Default Route: no is the line that matters. It means systemd-resolved only sends tailnet names and 100.x reverse lookups to Tailscale, and everything else still goes to your normal DNS server. tailscale dns status gives the same picture from Tailscale’s side, including the full name other machines use for this one:

Short names now resolve, so ping -c 2 vpn-gw from the laptop answered as vpn-gw.tailnet.example.com (100.64.0.1). That split changes in two cases. When the laptop used an exit node, the domain line gained ~. and Default Route flipped to yes, so every lookup went through 100.100.100.100 until we turned the exit node off. A control server that overrides local DNS has the same effect all the time. Fedora’s Headscale package ships override_local_dns: false, but the upstream example config sets it to true, and an earlier run of ours with that file pushed ~. with no exit node involved. If you rely on a LAN DNS server, keep that override off on the control server or opt the Fedora box out with sudo tailscale set --accept-dns=false. That is the core install done. The sections below are optional.
Joining a Headscale server instead
Headscale is an open source control server that speaks the same protocol, so the Fedora client stays exactly the same and only the login target changes. Use it when you don’t want a Tailscale account in the picture. We ran it on a third Fedora 45 VM, hs01 (10.0.1.10). The project itself publishes a .deb but no RPM, so our first pass on this guide used the GitHub release binary. Fedora 45 now ships headscale in its main repo, which gets you SELinux labels, a service user and a systemd unit without any downloads. For a hardened setup with TLS, follow our Headscale install guide or the Docker version with a web UI, then come back for the client step.
Install it with firewalld, which the Cloud image lacks. The package creates the headscale system user through sysusers and drops its config in /etc/headscale/config.yaml:
sudo dnf -y install headscale firewalld
rpm -ql headscale | grep -E "etc|systemd|bin"
headscale version
Fedora’s build trails upstream by a few point releases. Ours was 0.29.2 while GitHub had 0.29.8, which is fine for a small tailnet:
/etc/headscale
/etc/headscale/config.yaml
/usr/bin/headscale
/usr/lib/systemd/system/headscale.service
headscale version 0.29.2
commit: v0.29.2
build time: 2026-07-16T00:00:00Z
built with: go1.27rc2-X:nodwarf5 linux/amd64
The packaged config listens on 127.0.0.1 only, so three keys need changing: the URL clients connect to, the listen address, and the MagicDNS domain. The base domain must differ from the domain in server_url. Our lab used plain HTTP on the private network; in production you’d put https://headscale.example.com here behind TLS. Fedora’s file already has magic_dns: true and override_local_dns: false, so clients keep using your LAN DNS server for everything outside the tailnet:
sudo sed -i -e "s|^server_url: .*|server_url: http://10.0.1.10:8080|" -e "s|^listen_addr: .*|listen_addr: 0.0.0.0:8080|" -e "s|^ base_domain: example.com| base_domain: tailnet.example.com|" /etc/headscale/config.yaml
Start it along with firewalld, which dnf installs but does not start, then open the port. The packaged unit is already in /usr/lib/systemd/system, so no daemon reload is needed:
sudo systemctl enable --now headscale firewalld
sudo firewall-cmd --permanent --add-port=8080/tcp
sudo firewall-cmd --reload
sleep 3
systemctl is-active headscale
curl -s http://127.0.0.1:8080/health
A healthy server reports active and answers {"status":"pass"}. If yours sits in activating and the journal shows noise_private.key: permission denied, someone ran sudo headscale configtest before the first start. We did exactly that on purpose: configtest creates the SQLite database and the Noise key owned by root, and the service user can’t read them. Handing the directory back to the headscale user fixed it at once:

The process label at the bottom is unconfined_service_t, the same as tailscaled. Now create a user and a reusable key the Fedora machines can join with. In the Headscale release we tested, --user on preauthkeys takes the numeric ID from users list, not the name:
sudo headscale users create mary
sudo headscale users list
sudo headscale preauthkeys create --user 1 --reusable --expiration 24h
The last command prints a key starting with hskey-auth-, which we’ve shortened here. Treat it like a password for 24 hours:
User created
ID | Name | Username | Email | Created
1 | | mary | | 2026-11-29 22:38:41
hskey-auth-xxxxxxxxxxxxxxxxxxxxxxxxxxxx
On each Fedora client, add --login-server and the key to tailscale up. No browser step is needed:
sudo tailscale up --login-server=http://10.0.1.10:8080 --authkey=hskey-auth-xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Back on hs01, sudo headscale nodes list shows each machine as online with its 100.64.x address. The SELinux log stayed empty on hs01 for the whole run.
Turning a Fedora box into a subnet router
A subnet router lets tailnet clients reach devices that can’t run Tailscale: printers, NAS boxes, IPMI. The router needs three things before it advertises anything: kernel forwarding, a firewalld zone that allows forwarding to the LAN side, and route approval on the control server. Miss the first and Tailscale warns you; miss the second and it doesn’t, which is the one that cost us time.
Enable IPv4 and IPv6 forwarding persistently. A file in /etc/sysctl.d/ survives reboots, and our router still read net.ipv4.ip_forward = 1 after a reboot:
echo 'net.ipv4.ip_forward = 1' | sudo tee /etc/sysctl.d/99-tailscale.conf
echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
sudo sysctl -p /etc/sysctl.d/99-tailscale.conf
Now check which interfaces firewalld has placed in a zone. firewalld only forwards between interfaces it knows about, and an interface with no zone gets its forwarded packets rejected:
sudo firewall-cmd --get-active-zones
Ours printed public (default) with only ens4, the uplink. On a single-NIC router the LAN sits on that one interface, which is usually listed already, and you can skip ahead. Our router reaches the office LAN on a second interface, veth-lan, which wasn’t in any zone, so we added it to the default zone. Use your own interface name and the zone name your system prints, since Server and Workstation installs don’t default to public. Reading the default zone into a variable keeps the command right on any edition:
ZONE=$(sudo firewall-cmd --get-default-zone)
sudo firewall-cmd --permanent --zone="$ZONE" --add-interface=veth-lan
sudo firewall-cmd --reload
sudo firewall-cmd --get-active-zones
Both interfaces should now share the zone. Run sudo firewall-cmd --list-all as well and look for forward: yes, since a zone with forwarding off would still drop the traffic.
public (default)
interfaces: veth-lan ens4
Tailscale’s subnet router docs say you might need masquerading on firewalld hosts because of a known forwarding issue. On the first run of this guide we tested with and without it on the firewalld build Fedora ships, and both the subnet route and the exit node kept working with it removed, because tailscaled adds its own MASQUERADE rule for tailnet traffic. It costs nothing, so we left it on.
sudo firewall-cmd --permanent --add-masquerade
sudo firewall-cmd --reload
Direct connections worked without any inbound port open, since both peers punch out to each other. On a router that clients hit from awkward NATs, opening UDP 41641 raises the odds of a direct path instead of a relay. Fedora has no firewalld service definition for Tailscale, so open the port number.
sudo firewall-cmd --permanent --add-port=41641/udp
sudo firewall-cmd --reload
Advertise the LAN. On a machine already logged in, tailscale set changes one setting without repeating your other flags. In our Headscale lab we passed the same --advertise-routes and --advertise-exit-node flags to tailscale up at join time, and the result is identical:
sudo tailscale set --advertise-routes=172.20.30.0/24 --advertise-exit-node
Advertised isn’t the same as active. On Tailscale’s service, open Machines in the admin console, select the router (it carries a Subnets badge), tick the route in its Subnets section and Save. On Headscale, list the routes first to find the router’s node ID:
sudo headscale nodes list-routes
Our router was ID 1, with all three routes available and none approved yet.
ID | Hostname | Approved | Available | Serving (Primary)
1 | vpn-gw | | 0.0.0.0/0 |
| | | 172.20.30.0/24 |
| | | ::/0 |
Approve the LAN and both default routes using the ID from your own output, then list again:
sudo headscale nodes approve-routes --identifier 1 --routes 172.20.30.0/24,0.0.0.0/0,::/0
sudo headscale nodes list-routes
An earlier run of ours approved only 0.0.0.0/0 and Headscale added ::/0 with it. Listing both costs nothing. The routes moved into the Serving column:
Node updated
ID | Hostname | Approved | Available | Serving (Primary)
1 | vpn-gw | 0.0.0.0/0 | 0.0.0.0/0 | 172.20.30.0/24
| | 172.20.30.0/24 | 172.20.30.0/24 | 0.0.0.0/0
| | ::/0 | ::/0 | ::/0
The whole router side fits in one capture, from the join with advertised routes to the approval. tailscaled also printed a UDP GRO hint for ens4, which only affects forwarding throughput and can wait.

Everything above looks finished, and the LAN was still unreachable from the laptop until the zone change. This is the firewalld step on the router and the first successful request from the client:

Note the veth-lan ens4 line. If your LAN interface is missing from that list, the client test fails even though the router looks healthy everywhere else.
Accepting the route on a Fedora client
Linux clients ignore advertised subnets until you opt in, unlike macOS or Windows. Our laptop joined, warned about it, and could not reach the NAS:
Some peers are advertising routes but --accept-routes is false
Turn route acceptance on, then confirm the new route sits in Tailscale’s policy routing table. Tailscale uses table 52 for this, so the main table will not show it.
sudo tailscale set --accept-routes
ip route show table 52
The 172.20.30.0/24 line is the one that was not there before. The client capture shows both failures in order: curl timed out (exit 28) while routes were ignored, then failed fast (exit 7) once the route existed but the router’s LAN interface had no zone.

In a setup like this one, those two exit codes tell you which side to fix: 28 pointed at the client, 7 at the router’s firewall.
100.64.0.1 dev tailscale0
100.100.100.100 dev tailscale0
172.20.30.0/24 dev tailscale0
Test against a real LAN host. Earlier runs printed No route to host here even with the route present, because the router’s LAN interface had no firewalld zone yet. Once it did, the NAS answered:
curl -s http://172.20.30.10/
The response came from a host with no Tailscale on it, so the subnet router is doing its job.
printer-nas on the office LAN
Because tailscaled masquerades subnet traffic by default, the NAS sees requests coming from the router’s LAN address and needs no return route. Keep that in mind if you rely on NAS logs to see who connected, since every tailnet user will appear as the router.
Using the Fedora box as an exit node
An exit node sends all of a client’s internet traffic out through the router, which is what you want on hotel or airport Wi-Fi. If you already ran the subnet router steps, the router side is already done. Forwarding is on, --advertise-exit-node was set, and 0.0.0.0/0 is approved. On Tailscale’s service the exit node has its own approval: open Machines, use the router’s menu, choose Edit route settings and select Use as exit node.
On the client, pick the exit node by name. Add --exit-node-allow-lan-access so the laptop can still print or cast on whatever local network it’s sitting on:
sudo tailscale set --exit-node=vpn-gw --exit-node-allow-lan-access
tailscale status
The router’s line changes to active; exit node, and the connection is direct rather than relayed.
100.64.0.2 laptop44 mary linux -
100.64.0.1 vpn-gw mary linux active; exit node; direct 10.0.1.20:41641, tx 2324 rx 1004
A status line can be stale, so prove the path. tracepath ships with Fedora, and its first hop should be the exit node’s 100.64 address:
tracepath -n -m 3 1.1.1.1
Hop 1 is vpn-gw and the next two are the router’s upstream network. The 1280 path MTU is the WireGuard tunnel’s, another sign the traffic is inside Tailscale:
1?: [LOCALHOST] pmtu 1280
1: 100.64.0.1 1.802ms
1: 100.64.0.1 1.052ms
2: 203.0.113.1 12.639ms asymm 12
3: 198.51.100.7 44.842ms asymm 4
Too many hops: pmtu 1280
Resume: pmtu 1280
The last check is the public address the world sees. curl -s https://ifconfig.me on the laptop returned the router’s public IP (203.0.113.20 here), not the laptop’s own:

Stop using the exit node with an empty value. The router goes back to offers exit node and your traffic leaves through the local network again:
sudo tailscale set --exit-node=
If you’d rather not keep a Fedora server running at home just for this, a small travel router can do the same job. Our travel routers with Tailscale and WireGuard roundup compares the ones that run it natively. The GL.iNet exit node setup pairs a home unit with a travel one.
Fixing the errors we hit
Each of these came up during our run on the lab VMs. The headings carry the exact text the tools printed, so a search for the message lands on the fix.
Unknown argument “–add-repo” for command “config-manager”
You copied the dnf4 line from Tailscale’s install page onto a Fedora that runs dnf5. Use sudo dnf config-manager addrepo --from-repofile= with the same URL. Nothing was written on the failed attempt, so there’s nothing to clean up.
Warning: IP forwarding is disabled, subnet routing/exit nodes will not work
tailscaled printed this when we advertised routes before touching sysctl, and tailscale status kept a health check line about it. Create /etc/sysctl.d/99-tailscale.conf as shown above and load it. The health line can linger for a while after the fix, so trust sysctl net.ipv4.ip_forward over it. The same run also printed a UDP GRO warning on ens4; that’s a throughput hint for busy routers, not a failure, and Tailscale’s linked page explains the ethtool change.
No route to host from a client to a LAN address
On our first run the route was in table 52 and the router answered pings, yet curl failed with connect to 172.20.30.10 port 80 from 100.64.0.2 ... failed: No route to host. That message is firewalld rejecting a forwarded packet, not a missing route. firewall-cmd --get-zone-of-interface=veth-lan printed no zone; adding the interface to the default zone fixed it immediately. The exit node worked the whole time because its traffic left through the uplink, which was already in a zone, and that’s what makes this one confusing.
unexpected state: NoState
On an earlier run, after the router’s first reboot, tailscale status returned only this for over a minute. The journal showed tailscaled re-registering with the control server and then waiting on a network map that never came. sudo systemctl restart tailscaled brought it back within seconds. A second reboot came up cleanly in under a minute, and the November rerun came back with tailscaled, firewalld, forwarding and both zone interfaces in place, so we treat it as a one-off rather than a reason to change unit ordering. If it keeps happening on yours, check journalctl -u tailscaled -b for the control server URL it’s trying.
headscale: open /var/lib/headscale/noise_private.key: permission denied
We ran sudo headscale configtest before the first start, and as root it created db.sqlite and noise_private.key owned by root. The service runs as the headscale user, so systemd kept restarting it on reading or creating Noise protocol private key: reading private key file: open /var/lib/headscale/noise_private.key: permission denied. Give the files back to the service user and restart:
sudo chown -R headscale:headscale /var/lib/headscale
sudo systemctl restart headscale
That keeps the database, so it is safe on a server that already has nodes. The service reported active three seconds later on our Fedora 45 box.
Keeping Tailscale running on Fedora
The Tailscale repo updates through normal sudo dnf upgrade, so a Fedora box that gets patched weekly stays current with no extra work. A machine you rarely log into is better off with Tailscale’s own updater, which works on Fedora because it calls dnf underneath:
sudo tailscale update --dry-run
sudo tailscale set --auto-update
When the installed build is the newest stable one, the dry run answers no update needed. After the second command, tailscale debug prefs showed AutoUpdate with Check and Apply both true. A few habits keep a router from going dark while you’re away:
- Disable key expiry on the router in the admin console (Headscale: join it with a long-lived key)
- Keep
/etc/sysctl.d/99-tailscale.confin your config backups - Re-check
firewall-cmd --get-active-zonesafter NIC changes - Watch
journalctl -u tailscaled -fduring upgrades
Key expiry matters most, because a router whose node key expires drops off the tailnet, and every client routing through it loses the LAN and the exit node until someone logs the router back in. The journal is the one log to watch: route approvals, DNS changes and control server problems all land there before they show up in tailscale status. If you need a tunnel that doesn’t depend on any control server at all, a plain WireGuard setup on Fedora is the fallback, and our firewalld zones guide covers the zone rules above in more depth. The Tailscale guide for Rocky and AlmaLinux follows the same pattern on RHEL-family servers.