aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Yarmie <steve.yarmie@gmail.com>2009-11-20 15:29:59 +0100
committerDaniel Veillard <veillard@redhat.com>2009-11-20 15:29:59 +0100
commit264f3ddac977ce5aed64656a5a12310276d4975e (patch)
treeb88f60dfb4bccdac0b6897703bd9220adce9e3c3
parentremove sysfs_path and parent_sysfs_path from XML (diff)
downloadlibvirt-264f3ddac977ce5aed64656a5a12310276d4975e.tar.gz
libvirt-264f3ddac977ce5aed64656a5a12310276d4975e.tar.bz2
libvirt-264f3ddac977ce5aed64656a5a12310276d4975e.zip
fix deprecated iptables command syntax
* src/util/iptables.c: `--option ! this` is deprecated in favor of `! --option this` syntax, change the output command accordingly
-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);
}