I have a few big subnets in my /etc/csf/csf.deny file, let's say for example something like this:
Code: Select all
tcp|in|d=22,25,80,443|s=1.0.0.0/8
Here's an extract of the INPUT chain:
Code: Select all
# iptables -n -L -v --line-numbers
Chain INPUT (policy DROP 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
[1..8 - accepts for port 53]
9 6199K 7233M LOCALINPUT 0 -- !lo * 0.0.0.0/0 0.0.0.0/0
10 1912K 435M ACCEPT 0 -- lo * 0.0.0.0/0 0.0.0.0/0
11 6131K 7229M INVALID 6 -- !lo * 0.0.0.0/0 0.0.0.0/0
12 550 42598 ACCEPT 1 -- !lo * 0.0.0.0/0 0.0.0.0/0 icmptype 8 limit: avg 10/sec burst 5
13 0 0 DROP 1 -- !lo * 0.0.0.0/0 0.0.0.0/0 icmptype 8
14 92 11092 ACCEPT 1 -- !lo * 0.0.0.0/0 0.0.0.0/0
15 6078K 7225M ACCEPT 0 -- !lo * 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
[16..x]
-Kristian