Since version 0.18 country lists can be selected from ipblock.lists. There is no need to manually download or build country lists. There are pre-build country lists available on http://iplist.sf.net/countries/. webhosting.info provides a nearly complete list of IP-addresses (ip-to-country.csv.zip) based on countries, which can be loaded into iplist. Download:
- Κώδικας: Επιλογή όλων
wget http://ip-to-country.webhosting.info/downloads/ip-to-country.csv.zip
Let's say the whole US should be blocked. First we need to extract all the IP ranges of the USA into a separate list.
- Κώδικας: Επιλογή όλων
unzip -c ip-to-country.csv.zip | grep -i usa | iplist \
-O p2p -o /var/cache/iplist/usa.p2p.gz -
Then edit /etc/ipblock.conf and add usa.p2p.gz to the BLOCK_LIST
έγραψε:BLOCK_LIST="usa.p2p.gz"
Αν θέλω να το κάνω με ΟΛΕΣ τις χώρες και όχι μόνο με μία, τι πρέπει να αλλάξω στην πιο πάνω διαδικασία;


