Bonjour a tous,

Installation de PeerGuardian sur Linux

Nous allons utiliser PeerGuardian Linux (pgl), c'est un logiciel qui permet de bloquer les ips non désiré sur notre machine.

Vous en avez marre des Ips chinoise ou tout autre Bot ce tuto est fait pour vous !!

Ajout dans les depots

si vous êtes sous ubuntu:

sudo add-apt-repository ppa:jre-phoenix/ppa

si vous êtes sous debian:

nano /etc/apt/sources.list

Debian 7.0 wheezy:

deb http://moblock-deb.sourceforge.net/debian wheezy main
deb-src http://moblock-deb.sourceforge.net/debian wheezy main

Debian 8.0 jessie;

deb http://moblock-deb.sourceforge.net/debian jessie main
deb-src http://moblock-deb.sourceforge.net/debian jessie main

Debian 9 Stretch

deb http://moblock-deb.sourceforge.net/debian stretch main
deb-src http://moblock-deb.sourceforge.net/debian stretch main
apt-get install dirmngr 

Ajout des cles:

gpg --keyserver keyserver.ubuntu.com --recv-keys C0145138
gpg --export --armor C0145138 | sudo apt-key add -

Installation

sudo apt-get update
sudo apt-get install pgld pglcmd

Configuration

dpkg-reconfigure --force pglcmd

Pour le démarrage automatique, choisisez oui !
Pour la mise à jour automatique, choisisez oui !

Modification du fichier de configuration

Supprimer le fichier actuel :

rm /etc/pgl/blocklists.list

Remplacez-le par http://pastebin.com/KuMvHyKY

Petit bonus marre que certain pays visite votre site, utiliser ce site https://www.countryipblocks.net/country_selection.php
Sélectionnez plusieurs pays (ctrl+clic) et choisissez le format exportation PeerGuardian2, ensuite vous aurez une liste d'Ips que vous insérerez dans :

 /etc/pgl/blocklists.local/

le nom du fichier n'a pas d’importance.(ex ban.txt)

Je vous partage mon propre fichier (ban: AFGHANISTAN, ALGERIA, ARGENTINA, ASIA PACIFIC, BRAZIL, CHILE, CHINA, COLOMBIA, CONGO - BRAZZAVILLE, CONGO, THE DEMOCRATIC REPUBLIC OF THE, COSTA RICA, COTE D'IVOIRE, HONG KONG, INDIA, INDONESIA, IRAN, ISLAMIC REPUBLIC OF, IRAQ, IRELAND, ISLE OF MAN, ISRAEL, KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF, KOREA, REPUBLIC OF, KOSOVO, KUWAIT, KYRGYZSTAN, MALAYSIA, MEXICO, PAKISTAN, PALAU, PALESTINIAN TERRITORY, PHILIPPINES, RUSSIAN FEDERATION, SOMALIA, SOUTH AFRICA, UKRAINE, VIET NAM)

https://mega.nz/#!M8dkXIZL!7iN4xI8n8OwJ09LCTLqatfT5oQFBlVzU8OX0VjNVzco
Pass de l'archive: p2p

Enfin, recharger pgld :

pglcmd reload
Répondre…