Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section Modification & Patches
  • Search

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

Section with modification and patches for Vesta
Post Reply
  • Print view
Advanced search
151 posts
  • Page 9 of 16
    • Jump to page:
  • Previous
  • 1
  • …
  • 7
  • 8
  • 9
  • 10
  • 11
  • …
  • 16
  • Next
hammy
Posts: 23
Joined: Tue May 06, 2014 2:46 pm

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

Post by hammy » Fri Dec 09, 2016 9:16 pm

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 :)
Top

rpr
Posts: 21
Joined: Mon Feb 13, 2017 1:18 pm

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

Post by rpr » Mon Feb 20, 2017 7:52 pm

Installed CSF but vsftpd fails aren't banned.
Changed VSFTPD_LOG = "/var/log/vsftpd.log"

but nothing happens. Anyone else have this problem?
Top

SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

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

Post by SS88 » Tue Feb 28, 2017 11:42 am

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");
	}
Top

rpr
Posts: 21
Joined: Mon Feb 13, 2017 1:18 pm

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

Post by rpr » Tue Feb 28, 2017 11:53 am

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.
Top

SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

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

Post by SS88 » Tue Feb 28, 2017 11:55 am

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
Top

mericson
Posts: 44
Joined: Thu Apr 06, 2017 12:37 am

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

Post by mericson » Fri Apr 14, 2017 5:24 pm

Your effort might offer some great insights into creating an extensions mechanism for VestaCP !
Top

ServerHost
Posts: 25
Joined: Fri May 05, 2017 12:18 am

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

Post by ServerHost » Fri May 05, 2017 8:18 pm

Hello,

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

How do I block Proftpd?
Top

SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

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

Post by SS88 » Fri May 05, 2017 10:07 pm

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"
Top

ArisC
Posts: 29
Joined: Tue Apr 18, 2017 1:37 pm

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

Post by ArisC » Mon May 08, 2017 3:11 pm

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.
Top

SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

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

Post by SS88 » Mon May 08, 2017 3:27 pm

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
Top


Post Reply
  • Print view

151 posts
  • Page 9 of 16
    • Jump to page:
  • Previous
  • 1
  • …
  • 7
  • 8
  • 9
  • 10
  • 11
  • …
  • 16
  • Next

Return to “Modification & Patches”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password