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:
parent
2cdb665b10
commit
264f3ddac9
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user