How can i ban ALL IPS and ALLOW some ranges with apf EMERGENCY pls

I want to ban all ips and allow some ranges such as 24.0.0.0/8 and 81.0.0.0/8 but all other ips from all over the world should be banned and they cant even send a packet to my server

how can i do that please advice emergency

i go yo deny_hosts.rules but dont know how to diable everybody and let only these ips that are listed at the allow_hosts.rules can be ONLY access my server

 

 

 

 

Top