提交 264f3dda 编写于 作者: S Steve Yarmie 提交者: Daniel Veillard

fix deprecated iptables command syntax

* src/util/iptables.c: `--option !  this` is deprecated in favor of
  `! --option this` syntax, change the output command accordingly
上级 2cdb665b
...@@ -1067,7 +1067,7 @@ iptablesForwardMasquerade(iptablesContext *ctx, ...@@ -1067,7 +1067,7 @@ iptablesForwardMasquerade(iptablesContext *ctx,
return iptablesAddRemoveRule(ctx->nat_postrouting, return iptablesAddRemoveRule(ctx->nat_postrouting,
action, action,
"--source", network, "--source", network,
"--destination", "!", network, "!", "--destination", network,
"--out-interface", physdev, "--out-interface", physdev,
"--jump", "MASQUERADE", "--jump", "MASQUERADE",
NULL); NULL);
...@@ -1075,7 +1075,7 @@ iptablesForwardMasquerade(iptablesContext *ctx, ...@@ -1075,7 +1075,7 @@ iptablesForwardMasquerade(iptablesContext *ctx,
return iptablesAddRemoveRule(ctx->nat_postrouting, return iptablesAddRemoveRule(ctx->nat_postrouting,
action, action,
"--source", network, "--source", network,
"--destination", "!", network, "!", "--destination", network,
"--jump", "MASQUERADE", "--jump", "MASQUERADE",
NULL); NULL);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册