Skip to content

Commit 25a8daf

Browse files
committed
wgengine/router: always use nftables mode on gokrazy
Updates gokrazy/gokrazy#209 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
1 parent 17ce753 commit 25a8daf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

wgengine/router/router_linux.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ func (l *linuxFWDetector) nftDetect() (int, error) {
7676
// chooseFireWallMode returns the firewall mode to use based on the
7777
// environment and the system's capabilities.
7878
func chooseFireWallMode(logf logger.Logf, det tableDetector) linuxfw.FirewallMode {
79+
if distro.Get() == distro.Gokrazy {
80+
// Reduce startup logging on gokrazy. There's no way to do iptables on
81+
// gokrazy anyway.
82+
return linuxfw.FirewallModeNfTables
83+
}
7984
iptAva, nftAva := true, true
8085
iptRuleCount, err := det.iptDetect()
8186
if err != nil {

0 commit comments

Comments
 (0)