aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/iptables.c')
-rw-r--r--src/util/iptables.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/iptables.c b/src/util/iptables.c
index 284f3c0f0..36d65e431 100644
--- a/src/util/iptables.c
+++ b/src/util/iptables.c
@@ -1067,7 +1067,7 @@ iptablesForwardMasquerade(iptablesContext *ctx,
return iptablesAddRemoveRule(ctx->nat_postrouting,
action,
"--source", network,
- "--destination", "!", network,
+ "!", "--destination", network,
"--out-interface", physdev,
"--jump", "MASQUERADE",
NULL);
@@ -1075,7 +1075,7 @@ iptablesForwardMasquerade(iptablesContext *ctx,
return iptablesAddRemoveRule(ctx->nat_postrouting,
action,
"--source", network,
- "--destination", "!", network,
+ "!", "--destination", network,
"--jump", "MASQUERADE",
NULL);
}