diff options
author | Liping Zhang <liping.zhang@spreadtrum.com> | 2016-10-07 19:08:56 +0800 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-10-14 18:59:36 +0200 |
commit | 925e2837ec15135390fea17737a7f7491fe2947b (patch) | |
tree | 27e7f69682319025840bc49b033aa1cdc5d465e5 /include/libiptc/libxtc.h | |
parent | 1525081714ef5361e981325f20bc6b48a169570e (diff) |
extensions: libxt_statistic: add translation to nft
For example:
# iptables-translate -A OUTPUT -m statistic --mode nth --every 10 \
--packet 1
nft add rule ip filter OUTPUT numgen inc mod 10 1 counter
# iptables-translate -A OUTPUT -m statistic --mode nth ! --every 10 \
--packet 5
nft add rule ip filter OUTPUT numgen inc mod 10 != 5 counter
Note, mode random is not completely supported in nft, so:
# iptables-translate -A OUTPUT -m statistic --mode random \
--probability 0.1
nft # -A OUTPUT -m statistic --mode random --probability 0.1
Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libiptc/libxtc.h')
0 files changed, 0 insertions, 0 deletions