Installation CSF "config server firewall" Imprimer

  • 46

Pour installer le CSF config server firewall :

rm -fv csf.tgz
wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh

nano /etc/csf/csf.conf cherhce :testing=

verifiez sur plugin de votre whm cliquez sur configuration firewall, mode test : 1

---------------------------------

Pour desinstaller :


cd /etc/csf
sh uninstall.sh
-----------------------------------------------------------

Arreter le CSF : csf -x
demarrer le CSF: csf -e

-------------------------------------------------


CommandeDescription
csf -s Start the firewall rules
csf -f Flush/Stop firewall rules (note: lfd may restart csf)
csf -r Restart the firewall rules
csf -a [IP.add.re.ss] [comment] Allow an IP and add to /etc/csf/csf.allow
csf -tr [IP.add.re.ss] Remove an IP from the temporary IP ban or allow list.
csf -tf Flush all IPs from the temporary IP entries
csf -d [IP.add.re.ss] [comment] Deny an IP and add to /etc/csf/csf.deny
csf -dr [IP.add.re.ss] Unblock an IP and remove from /etc/csf/csf.deny
csf -df Remove and unblock all entries in /etc/csf/csf.deny
csf -g [IP.add.re.ss] Search the iptables and ip6tables rules for a match (e.g. IP, CIDR, Port Number)
csf -t Displays the current list of temporary allow and deny IP entries with their TTL and comment

Cette réponse était-elle pertinente?

« Retour