On Tue, Mar 01, 2016 at 06:41:33PM +0530, Shivani Bhardwaj wrote: > Add translation for dccp to nftables. > > Full translation of this match awaits the support for --dccp-option. > Also, since inversion of set is not possible in nftables, using dccp > with rules like > ...dccp type != {request, response}.. > is going to throw errors. Yes, this needs a small patch for the kernel and some userspace bits. Please document that we need inversion of sets support in the wiki so we can assign this task to someone. > Examples: > > $ sudo iptables-translate -A INPUT -p dccp -m dccp --sport 100 > nft add rule ip filter INPUT dccp sport 100 counter > > $ sudo iptables-translate -A INPUT -p dccp -m dccp --dport 100:200 > nft add rule ip filter INPUT dccp dport 100-200 counter > > $ sudo iptables-translate -A INPUT -p dccp -m dccp ! --dport 100 > nft add rule ip filter INPUT dccp dport != 100 counter > > $ sudo iptables-translate -A INPUT -p dccp -m dccp --dccp-type REQUEST,RESPONSE > nft add rule ip filter INPUT dccp type {request, response} counter Could you send a v2 removing the invalid type as it doesn't make any sense? 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