Need to block IPs use APF, how ?

jameshsi

Well-Known Member
Oct 22, 2001
347
0
316
Hi!
I just want to block a whold class C of a IP, how to do that in APF ?

For example, I need to block 163.29.*.*

What should I put into the /etc/apf/deny_hosts.rules ?
 

fleksi

Well-Known Member
Sep 17, 2003
124
0
166
You can use 163.29.0.0/16 for entire 65536 IPs - Class B (163.29.0.0 - 163.29.255.255)

-FL-