fix deprecated iptables command syntax

* src/util/iptables.c: `--option !  this` is deprecated in favor of
  `! --option this` syntax, change the output command accordingly
This commit is contained in:
Steve Yarmie 2009-11-20 15:29:59 +01:00 committed by Daniel Veillard
parent 2cdb665b10
commit 264f3ddac9

View File

@ -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);
}