diff options
author | Liping Zhang <liping.zhang@spreadtrum.com> | 2016-08-28 16:50:48 +0800 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-08-30 11:55:55 +0200 |
commit | 6deb305b668d0c1f12b5955e76ea5097ca87bf9b (patch) | |
tree | 04b399c2f6f18d91f18fff2f90eab516ce19ea90 /extensions/libipt_ECN.t | |
parent | 89391ea5e3afbb5bb84c137c1f78e8c64b07a954 (diff) |
extensions: libip[6]t_REDIRECT: use new nft syntax when do xlate
After commit "parser_bison: redirect to :port for consistency with
nat/masq statement" in nftables tree, we should recommend the end
user to use the new syntax.
Before this patch:
# iptables-translate -t nat -A PREROUTING -p tcp -j REDIRECT --to-ports 1
nft add rule ip nat PREROUTING ip protocol tcp counter redirect to 1
Apply this patch:
# iptables-translate -t nat -A PREROUTING -p tcp -j REDIRECT --to-ports 1
nft add rule ip nat PREROUTING ip protocol tcp counter redirect to :1
Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'extensions/libipt_ECN.t')
0 files changed, 0 insertions, 0 deletions