mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-18 12:32:13 +00:00
wgengine: don't try to delete legacy netfilter rules on synology.
Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
parent
2aa5df7ac1
commit
53199738fb
@ -1104,6 +1104,14 @@ func (r *linuxRouter) delSNATRule() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *linuxRouter) delLegacyNetfilter() error {
|
func (r *linuxRouter) delLegacyNetfilter() error {
|
||||||
|
if distro.Get() == distro.Synology {
|
||||||
|
// We don't support netfilter on Synology, and unlike other platforms
|
||||||
|
// the following commands error out as the `comment` module doesn't
|
||||||
|
// exist in the iptables binary present on Synology. Albeit the errors
|
||||||
|
// are ignored it's nice to not have logspam.
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
del := func(table, chain string, args ...string) error {
|
del := func(table, chain string, args ...string) error {
|
||||||
exists, err := r.ipt4.Exists(table, chain, args...)
|
exists, err := r.ipt4.Exists(table, chain, args...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user