You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to add firewall rules on Windows due to exec path security protection #10804
We saw logs from a customer on Windows of the form:
router: firewall: adding Tailscale-Process rule to allow UDP for "C:\\Program Files\\Tailscale\\tailscaled.exe" ...
router: firewall: error adding Tailscale-Process rule: exec: "netsh": cannot run executable found relative to current directory:
This is preventing us from adding firewall rules since we can't shell out to netsh. This was added in Go 1.19, and per the docs for os/exec:
To avoid those security problems, as of Go 1.19, this package will not resolve a program using an implicit or explicit path entry relative to the current directory. That is, if you run exec.LookPath("go"), it will not successfully return ./go on Unix nor .\go.exe on Windows, no matter how the path is configured. Instead, if the usual path algorithms would result in that answer, these functions return an error err satisfying errors.Is(err, ErrDot).
Activity
wgengine/router: look up absolute path to netsh.exe on Windows
wgengine/router: look up absolute path to netsh.exe on Windows
wgengine/router: look up absolute path to netsh.exe on Windows
wgengine/router: look up absolute path to netsh.exe on Windows
wgengine/router: look up absolute path to netsh.exe on Windows
wgengine/router: look up absolute path to netsh.exe on Windows
wgengine/router: look up absolute path to netsh.exe on Windows