From mboxrd@z Thu Jan 1 00:00:00 1970 From: Reindl Harald Subject: Re: How can I block all traffic from an IP range, irrespective of origin, going to, or coming from, using nftables in Debian 10 Date: Fri, 4 Oct 2019 13:05:45 +0200 Message-ID: <4348ae9d-ac32-2a25-f188-ba1757e03271@thelounge.net> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Language: en-US Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Jags Cc: zrm , "netfilter@vger.kernel.org" Am 04.10.19 um 12:44 schrieb Jags: > Should I modify it to the following: > > ::: > chain output { > type filter hook output priority 0; policy accept; > > ip daddr 123.0.0.0/8 counter reject } > ::: > > and > > ::: > chain input { > type filter hook input priority 0; policy drop; > > ip saddr 123.0.0.0/8 counter drop } > ::: surely, and that on top of the ruleset before any accept-rule, there is no point to mention "ct state" when you just want to block communication from and to a ip unconditionally