-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
add autogroup:internet, fix reduce filter rules #1917
Conversation
Signed-off-by: Kristoffer Dalby <[email protected]>
Updates juanfont#657 Updates juanfont#1786 Signed-off-by: Kristoffer Dalby <[email protected]>
Signed-off-by: Kristoffer Dalby <[email protected]>
|
||
// theInternet returns the IPSet for the Internet. | ||
// https://www.youtube.com/watch?v=iDbyYGrswtg | ||
func theInternet() *netipx.IPSet { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hahahaha
|
||
// Delete Tailscale networks | ||
internetBuilder.RemovePrefix(netip.MustParsePrefix("fd7a:115c:a1e0::/48")) | ||
internetBuilder.RemovePrefix(netip.MustParsePrefix("100.64.0.0/10")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you can define custom ip prefixes is it a good practice to assume the user is using the default tailscale network?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tailscale client does not support other up ranges, so while it is configurable in Headscale you cannot use anything else.
If that changes we could read it from the config.
Happy to take a pr changing it to the config values if you are up for it :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks to make it clear. didn't knew that and just read through the code and commented with my thoughts. 😁
This PR contains two features:
autogroup:internet
for policyThe majority of lines in this PR is tests based on #1817 and #1786.
Fixes #1817
Fixes #1786
Updates #657