-
Notifications
You must be signed in to change notification settings - Fork 115
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
Documentation how to set sysctl #255
Comments
I wrote a tiny tool to apply sysctls on a Gokrazy instance (to run a Tailscale exit node). Its a very thin wrapper around https://github.com/lorenzosaino/go-sysctl. It would be neat if this could be built directly into Gokrazy. |
Applying sysctls via writing text into files (like the linked router7 example) seems fine to me. We can think about having gokrazy parse a file and apply the sysctls, but I don’t understand why we’d need the go-sysctl package for that…? |
Sysctls in a text files like wifi config makes sense to me. @stapelberg do you mean this should be built in feature then in gokrazy, or does it exist? Router7 appears to do it as go code and it'd be nice if writing a go module is not required to e.g. use tailscale as router? |
We don't need that package - its just something I used because it was the most expedient. |
It doesn’t exist yet.
Agreed. I actually would have expected Tailscale to configure everything it needs. That should work for forwarding (subnet routers), but probably ends at NAT configuration, which is too specific for Tailscale to set up (for exit nodes). |
So should we create a pull request to Tailscale cli to set sysctl then? It already has trivial gokrazy specifics so a sysctl for us might not be too wild stretch, even if they don't generally enable forwarding automatically? |
Yeah, creating an issue and/or pull request at Tailscale would be good. It can’t hurt to ask to set the sysctl on all Linux systems, not just gokrazy. In the past, bradfitz has been helpful with such issues, so maybe cc him directly on the issue. |
I've created the issue and PR to implement setting sysctl in Tailscale upstream. tailscale/tailscale#11408 |
Platform
I’m using:
Observed behavior
No documentation how to set sysctl.
Using
tailscale up --advertise-routes=192.168.127.0/24
does not appear to be sufficient (I enabled it using Tailscale SSH).After this, routing does work.
Expected behavior
Documentation how to set sysctls, either generally and/or as part of Tailscale documentation page.
Am I expected to create an app that calls applySysctl like https://github.com/rtr7/router7/blob/95fc74327defd019c54ef4e8f73f21a584ffee3e/internal/netconfig/netconfig.go#L1107-L1126 or should this be built in gokrazy functionality, or part of the tailscale client?
The text was updated successfully, but these errors were encountered: