1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-25 01:34:11 +03:00

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