On Thu, Jun 02, 2016 at 07:29:26PM +0200, Laura Garcia Liebana wrote: > Add translation for multiport to nftables, which it's supported natively. > > Examples: > > $ sudo iptables-translate -t filter -A INPUT -p tcp -m multiport --dports 80,81 -j ACCEPT > nft add rule ip filter INPUT ip protocol tcp tcp dport { 80,81} counter accept > > $ sudo iptables-translate -t filter -A INPUT -p tcp -m multiport --dports 80:88 -j ACCEPT > nft add rule ip filter INPUT ip protocol tcp tcp dport 80-88 counter accept > > $ sudo iptables-translate -t filter -A INPUT -p tcp -m multiport ! --dports 80:88 -j ACCEPT > nft add rule ip filter INPUT ip protocol tcp tcp dport != 80-88 counter accept Applied. Please, enable trailing whitespace detection in your editor: patch:88: trailing whitespace. if (multiinfo->count > 2 || ^ warning: 2 lines add whitespace errors. Thanks. -- 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