Re: [PATCH v4] extensions: libxt_devgroup: Add translation to nft

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

 



On Wed, Dec 23, 2015 at 08:14:02PM +0530, Shivani Bhardwaj wrote:
> Add translation for device group to nftables.
> 
> Examples:
> 
> $ sudo iptables-translate -A FORWARD -m devgroup --src-group 0x2 -j ACCEPT
> nft add rule ip filter FORWARD iifgroup 0x2 counter accept
> 
> $ sudo iptables-translate -A FORWARD -m devgroup --dst-group 0xc/0xc -j ACCEPT
> nft add rule ip filter FORWARD oifgroup and 0xc == 0xc counter accept
> 
> $ sudo iptables-translate -t mangle -A PREROUTING -p tcp --dport 46000 -m devgroup --src-group 23 -j ACCEPT
> nft add rule ip mangle PREROUTING tcp dport 46000 iifgroup 0x17 counter accept
> 
> $ sudo iptables-translate -A FORWARD -m devgroup ! --dst-group 0xc/0xc -j ACCEPT
> nft add rule ip filter FORWARD oifgroup and 0xc != 0xc counter accept
> 
> $ sudo iptables-translate -A FORWARD -m devgroup ! --src-group 0x2 -j ACCEPT
> nft add rule ip filter FORWARD iifgroup != 0x2 counter accept

Applied, 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



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

  Powered by Linux