Re: [PATCH iptables] extensions: libxt_connbytes: Add translation to nft

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

 



On Sun, Dec 25, 2016 at 08:27:51PM +0800, Liping Zhang wrote:
> From: Liping Zhang <zlpnobody@xxxxxxxxx>
> 
> For example:
>   # iptables-translate -A OUTPUT -m connbytes --connbytes 200 \
>   --connbytes-dir original --connbytes-mode packets
>   nft add rule ip filter OUTPUT ct original packets ge 200 counter
> 
>   # iptables-translate -A OUTPUT -m connbytes ! --connbytes 200 \
>   --connbytes-dir reply --connbytes-mode packets
>   nft add rule ip filter OUTPUT ct reply packets lt 200 counter
> 
>   # iptables-translate -A OUTPUT -m connbytes --connbytes 200:600 \
>   --connbytes-dir both --connbytes-mode bytes
>   nft add rule ip filter OUTPUT ct bytes 200-600 counter
> 
>   # iptables-translate -A OUTPUT -m connbytes ! --connbytes 200:600 \
>   --connbytes-dir both --connbytes-mode bytes
>   nft add rule ip filter OUTPUT ct bytes != 200-600 counter
> 
>   # iptables-translate -A OUTPUT -m connbytes --connbytes 200:200 \
>   --connbytes-dir both --connbytes-mode avgpkt
>   nft add rule ip filter OUTPUT ct avgpkt 200 counter

Also 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