• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

CLI: fail2ban activation confirmation

EveMauta

Basic Pleskian
Hi,
I found lot of documentation to configure fail2ban under cli:
/usr/local/psa/bin/ip_ban --info
/usr/local/psa/bin/ip_ban --add-trusted 10.0.0.1
/usr/local/psa/bin/ip_ban --jails
/usr/local/psa/bin/ip_ban --enable-jails ssh

For CENTOS, does this is the correct way to enable disable fail2ban service as GUI ?
chkconfig --add fail2ban
chkconfig fail2ban on
service fail2ban start

Service stop start, change the box in the GUI so I imagine it's the correct way to do this.

Could you confirm this ?

Best regards
Eve
 
Just use

# /etc/rc.d/init.d/fail2ban start
# /etc/rc.d/init.d/fail2ban stop
 
Back
Top