• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved iptables block IP network area

shopuser

Basic Pleskian
Hi,

how i can block a clomete IP Area with iptables ?
i know i can block for example from this ip 255 IP Adress from 88.247.117.0 - 88.247.117.255

iptables -A INPUT -s 88.247.117.0/24 -j DROP


and how i can block the network 88.247.XX.XX ?


thx
 
Hi shopuser,

first, pls. be informed, that this forum is a "Plesk - related" forum. Basic linux knowledge and depending questions should be asked in one of the thousands other places all over the internet.


Nevertheless, you might be interested in this link:

http://www.ipaddressguide.com/cidr ( external link, pls. inform me, if the link goes dead, so I can provide another working link )

where you can calculate CIDR ( Classless Inter-Domain Routing ) to IP range and IP range to CIDR online.


The IP range "88.247.0.0 - 88.247.255.255" ( which covers your question to ban all IPs from "88.247.XX.XX" ), would be the CIDR "88.247.0.0/16"
 
Back
Top