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

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

 



On Tue, Dec 22, 2015 at 06:06:17PM +0530, Shivani Bhardwaj wrote:
> Add translation for module mac to nftables.
> 
> Examples:
> 
> $ sudo iptables-translate -A INPUT -m mac --mac-source 0a:12:3e:4f:b2:c6 -j DROP
> nft add rule ip filter INPUT  ether saddr 0A:12:3E:4F:B2:C6 counter drop
> 
> $ sudo iptables-translate -A INPUT -p tcp --dport 80 -m mac --mac-source 0a:12:3e:4f:b2:c6 -j ACCEPT
> nft add rule ip filter INPUT tcp dport 80  ether saddr 0A:12:3E:4F:B2:C6 counter accept
                                           ^
                                      I have removed this space.

And mac address I have changed to show in lower-case.

So applied with minor glitches, thanks Shivani.
--
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