Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.66.x breaks MagicDNS without --stateful-filtering=false #12087

Closed
icebladerage opened this issue May 10, 2024 · 3 comments
Closed

v1.66.x breaks MagicDNS without --stateful-filtering=false #12087

icebladerage opened this issue May 10, 2024 · 3 comments

Comments

@icebladerage
Copy link

What is the issue?

Upgrading to 1.66.x causes Tailscale to stop controlling DNS without setting stateful-filtering to false.

The endpoint in question does not function as a subnet router or exit node. Docker is not installed.

As soon as tailscale upgrades, this is logged:

May 9 23:53:21 machine tailscaled[223811]: health("overall"): error: router: adding [-o tailscale0 -m conntrack ! --ctstate ESTABLISHED,RELATED -j DROP] in filter/ts-forward: running [/usr/sbin/iptables -t filter -I ts-forward 4 -o tailscale0 -m conntrack ! --ctstate ESTABLISHED,RELATED -j DROP --wait]: exit status 2: iptables v1.8.7 (nf_tables): Couldn't load match `conntrack':No such file or directory

This does not occur in 1.64.0. In order for this to work in 1.66.x, tailscale needs the stateful-filtering=false flag set.

Steps to reproduce

Upgrade tailscale to 1.66 or 1.66.1

Are there any recent changes that introduced the issue?

No response

OS

Linux

OS version

PopOS 22.04

Tailscale version

1.64.0-1.66.x

Other software

No response

Bug report

No response

@awly
Copy link
Contributor

awly commented May 13, 2024

@icebladerage it appears that your host does not have conntrack installed, which is typically present on most Linux systems these days.
Can you try sudo apt install conntrack and see if that allows tailscale set --stateful-filtering=true to work?

@icebladerage
Copy link
Author

Installed and set. So far so good. If I get time, I will install a blank popos and see if that is a default, as I cannot' recall ever messing with that on this install.

@awly
Copy link
Contributor

awly commented May 15, 2024

Thanks for confirming! Please reopen this issue if you find that a fresh install has the same problem. We currently assume that conntrack is installed by default in most distros.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants