Page 9 of 16

Re: [HOWTO] Install CSF + Use it's GUI in VestaCP

Posted: Fri Dec 09, 2016 9:16 pm
by hammy
SS88 wrote:
hammy wrote:Problems with GUI

Will not show options for:-

Firewall Allow IPs

Firewall Deny IPs

lfd Blocklists

When those buttons are clicked it takes you to a page with just a 'Return' button. There seems to be a letter 'm' in the very bottom corner of those pages so maybe a error.
Please re-run the command - all fixed.
Works well thanks for your help :)

Re: [HOWTO] Install CSF + Use it's GUI in VestaCP

Posted: Mon Feb 20, 2017 7:52 pm
by rpr
Installed CSF but vsftpd fails aren't banned.
Changed VSFTPD_LOG = "/var/log/vsftpd.log"

but nothing happens. Anyone else have this problem?

Re: [HOWTO] Install CSF + Use it's GUI in VestaCP

Posted: Tue Feb 28, 2017 11:42 am
by SS88
rpr wrote:Installed CSF but vsftpd fails aren't banned.
Changed VSFTPD_LOG = "/var/log/vsftpd.log"

but nothing happens. Anyone else have this problem?
Mine do not get blocked either. If your settings are correct in CSF then CSF has a problem. There is a way to fix this be using custom regex patterns like so (I've not tested this fully yet!):

Code: Select all

if (($globlogs{LF_FTPD}{$lgfile}) and ($line =~ /FAIL LOGIN: Client \"(\S+)\"/)) {
		return ("Failed FTP login from",$1,"vsftpd_ss88","5","20,21","1");
	}

Re: [HOWTO] Install CSF + Use it's GUI in VestaCP

Posted: Tue Feb 28, 2017 11:53 am
by rpr
SS88 wrote:
rpr wrote:Installed CSF but vsftpd fails aren't banned.
Changed VSFTPD_LOG = "/var/log/vsftpd.log"

but nothing happens. Anyone else have this problem?
Mine do not get blocked either. If your settings are correct in CSF then CSF has a problem. There is a way to fix this be using custom regex patterns like so (I've not tested this fully yet!):

Code: Select all

if (($globlogs{LF_FTPD}{$lgfile}) and ($line =~ /FAIL LOGIN: Client \"(\S+)\"/)) {
		return ("Failed FTP login from",$1,"vsftpd_ss88","5","20,21","1");
	}
Yeah but a simpler solution is just to use proftpd.
That works out of the box.

Re: [HOWTO] Install CSF + Use it's GUI in VestaCP

Posted: Tue Feb 28, 2017 11:55 am
by SS88
rpr wrote:
SS88 wrote:
rpr wrote:Installed CSF but vsftpd fails aren't banned.
Changed VSFTPD_LOG = "/var/log/vsftpd.log"

but nothing happens. Anyone else have this problem?
Mine do not get blocked either. If your settings are correct in CSF then CSF has a problem. There is a way to fix this be using custom regex patterns like so (I've not tested this fully yet!):

Code: Select all

if (($globlogs{LF_FTPD}{$lgfile}) and ($line =~ /FAIL LOGIN: Client \"(\S+)\"/)) {
		return ("Failed FTP login from",$1,"vsftpd_ss88","5","20,21","1");
	}
Yeah but a simpler solution is just to use proftpd.
That works out of the box.
I don't know which is easier, following this tutorial to change FTP software: https://vestacp.com/docs/#how-to-replac ... hel-centos

Or adding a line in a file and restarting LFD :-P

Re: [HOWTO] Install CSF + Use it's GUI in VestaCP

Posted: Fri Apr 14, 2017 5:24 pm
by mericson
Your effort might offer some great insights into creating an extensions mechanism for VestaCP !

Re: [HOWTO] Install CSF + Use it's GUI in VestaCP

Posted: Fri May 05, 2017 8:18 pm
by ServerHost
Hello,

I installed on my vps, but it does not work with Proftpd. Do not block!

How do I block Proftpd?

Re: [HOWTO] Install CSF + Use it's GUI in VestaCP

Posted: Fri May 05, 2017 10:07 pm
by SS88
ServerHost wrote:Hello,

I installed on my vps, but it does not work with Proftpd. Do not block!

How do I block Proftpd?
Change the file /etc/csf/csf.conf and find

Code: Select all

FTPD_LOG = "/var/log/vsftpd.log"
and change to where proftpd log is

Code: Select all

FTPD_LOG = "/path/to/proftpd.log"

Re: [HOWTO] Install CSF + Use it's GUI in VestaCP

Posted: Mon May 08, 2017 3:11 pm
by ArisC
I removed fail2ban and Iptables and CSF went Blank page for some reason.... http://imgur.com/a/Tt3O5

I tried to re-run the .sh file for CSF.... nothing... no errors in console.

Re: [HOWTO] Install CSF + Use it's GUI in VestaCP

Posted: Mon May 08, 2017 3:27 pm
by SS88
ArisC wrote:I removed fail2ban and Iptables and CSF went Blank page for some reason.... http://imgur.com/a/Tt3O5

I tried to re-run the .sh file for CSF.... nothing... no errors in console.
Not sure.

Can you confirm the following files are present:

/usr/local/vesta/bin/v-csf
/usr/local/vesta/web/list/csf/index.php

and that you can enable csf:

Code: Select all

csf -e