summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRhea Ghosh <rhea@tailscale.com>2023-06-30 12:56:20 -0500
committerRhea Ghosh <rhea@tailscale.com>2023-07-31 14:48:22 -0500
commit1469103cec110eebada1410658ab9b5fecd38e48 (patch)
treeb1aa2702f0b64d1ffa5ea788d47c3d4c350617d7
parentafb7612fc507ce4706c791ba3b51542fa039e2d0 (diff)
downloadtailscale-rhea/egress.tar.xz
tailscale-rhea/egress.zip
update DNAT routing rulesrhea/egress
-rw-r--r--cmd/containerboot/main.go2
1 files changed, 1 insertions, 1 deletions
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 {