From 264f3ddac977ce5aed64656a5a12310276d4975e Mon Sep 17 00:00:00 2001 From: Steve Yarmie Date: Fri, 20 Nov 2009 15:29:59 +0100 Subject: [PATCH] fix deprecated iptables command syntax * src/util/iptables.c: `--option ! this` is deprecated in favor of `! --option this` syntax, change the output command accordingly --- src/util/iptables.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/iptables.c b/src/util/iptables.c index 284f3c0f02..36d65e4318 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); } -- 2.47.2