Signed-off-by: Florian Westphal <fw@xxxxxxxxx> --- extensions/libebt_limit.txlate | 8 ++++++++ xlate-test.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 extensions/libebt_limit.txlate diff --git a/extensions/libebt_limit.txlate b/extensions/libebt_limit.txlate new file mode 100644 index 000000000000..b6af15d5c769 --- /dev/null +++ b/extensions/libebt_limit.txlate @@ -0,0 +1,8 @@ +ebtables-translate -A INPUT --limit 3/m --limit-burst 3 +nft add rule bridge filter INPUT limit rate 3/minute burst 3 packets counter + +ebtables-translate -A INPUT --limit 10/s --limit-burst 5 +nft add rule bridge filter INPUT limit rate 10/second burst 5 packets counter + +ebtables-translate -A INPUT --limit 10/s --limit-burst 0 +nft add rule bridge filter INPUT limit rate 10/second counter diff --git a/xlate-test.py b/xlate-test.py index dbba1d673ec9..0b371dfd8793 100755 --- a/xlate-test.py +++ b/xlate-test.py @@ -7,7 +7,7 @@ import shlex import argparse from subprocess import Popen, PIPE -keywords = ("iptables-translate", "ip6tables-translate") +keywords = ("iptables-translate", "ip6tables-translate", "ebtables-translate") if sys.stdout.isatty(): colors = {"magenta": "\033[95m", "green": "\033[92m", "yellow": "\033[93m", -- 2.16.1 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html