Re: [PATCH] extensions: libxt_connmark: Add translation to nft

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 22, 2015 at 04:25:47PM +0530, Shivani Bhardwaj wrote:
> Add translation for connmark to nftables.
> 
> Examples:
> 
> $ sudo iptables-translate -A INPUT -m connmark --mark 1
> nft add rule ip filter INPUT ct mark 0x1 counter
> 
> $ sudo iptables-translate -A INPUT -m connmark --mark 10/10 -j ACCEPT
> nft add rule ip filter INPUT ct mark and 0xa == 0xa counter accept
> 
> $ sudo  sudo iptables-translate -t mangle -A PREROUTING -p tcp --dport 40 -m connmark --mark 0x40
> nft add rule ip mangle PREROUTING tcp dport 40 ct mark 0x40 counter

Please, fix the -m connmark ! --mark 10/10 case.
--
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



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux