------------------------------------------------------------------------------------------------------------------
Op je eigen server waar klanten niet geblokkeerd kunnen worden. (letop dat je geen CSF cluster gebruikt)
------------------------------------------------------------------------------------------------------------------
captcha.php, blokkade_opheffen.php en monofont.ttf zet je op je eigen server.
Waar klanten dus in princiepe niet geblokkeerd kunnen worden.

blokkade_opheffen.php regel 9 kan je servers invullen in een array.
Let op is op hostname, server10.domein.nl zal worden omgezet naar het IP-adres en zal vervolgens http://ipadres/firewall/unblock.php aanroepen

Je kan per server een map en Security code invoeren, zie array regel 9.
De Security code moet je ook aanpassen in firewall/unblock.php

Maak een cronjob welke de map banned_ips leeg gooit elke x dagen:

* 10 * * * root rm -rf /home/admin/domains/domein.nl/public_html/banned_ips/*

------------------------------------------------------------------------------------------------------------------
PER SERVER INSTELLEN:
------------------------------------------------------------------------------------------------------------------
Op elke server plaats je de map firewall in /var/www/html/
Pas het .htaccess bestand aan en vul het IP-adres in zodat alleen de server waar blokkade_opheffen.php op staat erbij kan.

Maak de volgende cronjob aan op elke webserver:

*/1 * * * * root /var/www/html/firewall/ip_cron.sh

cron service even reloaden uiteraard.


- De map naam firewall kan je eventueel aanpassen naar een andere map naam. Zie server array in blokkade_opheffen.php

Upload index.html in de map: 

/etc/csf/messenger



In /etc/csf.conf moet je de volgende instellingen hebben:
Zoek even op "MESSENGER =" in nano, volgens mij staat het standaard op 0

Controleer even of de instellingen zo staan als hier onder:

# Note: Run /etc/csf/csftest.pl to check whether this option will function on
# this server
#
# 1 to enable, 0 to disable
MESSENGER = "1"

# Provide this service to temporary IP address blocks
MESSENGER_TEMP = "1"

# Provide this service to permanent IP address blocks
MESSENGER_PERM = "1"

# User account to run the service servers under. We recommend creating a
# specific non-priv, non-shell account for this purpose
MESSENGER_USER = "csf"

# This is the maximum concurrent connections allowed to each service server
MESSENGER_CHILDREN = "10"

# Set this to the port that will receive the HTML message. You should configure
# this port to be >1023 and different from the TEXT port. Do NOT enable access
# to this port in TCP_IN
MESSENGER_HTML = "8888"

# This comma separated list are the HTML ports that will be redirected for the
# blocked IP address. If you are using per application blocking (LF_TRIGGER)
# then only the relevant block port will be redirected to the messenger port
MESSENGER_HTML_IN = "80,2082,2095"

# Set this to the port that will receive the TEXT message. You should configure
# this port to be >1023 and different from the HTML port. Do NOT enable access
# to this port in TCP_IN
MESSENGER_TEXT = "8889"



Daarna csf en lfd restarten:

service lfd restart
service csf restart


index.html en blokkade_opheffen.php moet je wel even aanpassen naar je eigen logo, bedrijfsnaam, layout etc :-)

