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

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

 



On Fri, Dec 25, 2015 at 11:58:44AM +0530, Shivani Bhardwaj wrote:
> Add translation for routing realm to nftables.
> 
> Examples:
> 
> $ sudo iptables-translate -A PREROUTING -m realm --realm 4
> nft add rule ip filter PREROUTING rtclassid 0x4 counter
> 
> $ sudo iptables-translate -A PREROUTING -m realm --realm 5/5
> nft add rule ip filter PREROUTING rtclassid and 0x5 == 0x5 counter
> 
> $ sudo iptables-translate -A PREROUTING -m realm ! --realm 50
> nft add rule ip filter PREROUTING rtclassid != 0x32 counter

Did you test this case?

sudo iptables-translate -A PREROUTING -m realm ! --realm 5/5
--
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