Daily Shaarli

All links of one day in a single page.

November 5, 2016

Iptables en Python

Classe python pour manipuler Iptables

Bloquer des adresse IP par plages

Très bon site pour bloquer des IP par pays

exemple de fichier .htaccess généré :

Copyright 2016 COUNTRY IP BLOCKS™ LLC

#all rights reserved.
#This list may not be redistributed in any form.
#this list includes network data on the following countries:
#CHINA
<Limit GET POST>
order allow,deny
deny from 1.0.1.0/24
deny from 1.0.2.0/23
deny from 1.0.8.0/21
deny from 1.0.32.0/19
deny from 1.1.0.0/24
...
allow from all
</Limit>