From 2637f93cff47d0c8cff00a8f4f9875db4f0ee381 Mon Sep 17 00:00:00 2001 From: Rhea Ghosh Date: Fri, 30 Jun 2023 12:56:20 -0500 Subject: [PATCH] update DNAT routing rules --- cmd/containerboot/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/containerboot/main.go b/cmd/containerboot/main.go index 7f307ecc7..fc8ecbdad 100644 --- a/cmd/containerboot/main.go +++ b/cmd/containerboot/main.go @@ -515,7 +515,7 @@ func installEgressForwardingRule(ctx context.Context, dstStr string) error { // Technically, if the control server ever changes the IPs assigned to this // node, we'll slowly accumulate iptables rules. This shouldn't happen, so // for now we'll live with it. - cmd := exec.CommandContext(ctx, argv0, "-t", "nat", "-I", "PREROUTING", "1", "-i", "!tailscale0", "-j", "DNAT", "--to-destination", dstStr) + cmd := exec.CommandContext(ctx, argv0, "-t", "nat", "-I", "PREROUTING", "1", "!", "-i", "tailscale0", "-j", "DNAT", "--to-destination", dstStr) cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr if err := cmd.Run(); err != nil {