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 3 of 16
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 16
  • Next
jonn
Posts: 72
Joined: Sun Jun 08, 2014 12:18 pm

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

Post by jonn » Wed Jan 27, 2016 11:55 pm

I looked in the /list/csf folder and nothing was in there so I thought um...

Yep, missing unzip.

Code: Select all

apt-get install e2fsprogs
reinstalled csf mod.
works. all good.

debian 7.
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 » Thu Jan 28, 2016 12:29 am

jonn wrote:I looked in the /list/csf folder and nothing was in there so I thought um...

Yep, missing unzip.

Code: Select all

apt-get install e2fsprogs
reinstalled csf mod.
works. all good.

debian 7.
Goodie! :)
Top

amitz
Posts: 46
Joined: Mon Nov 09, 2015 10:52 am

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

Post by amitz » Thu Jan 28, 2016 12:58 pm

Hello,

I did install this csf , after that i did installed the vesta automatic app installer.
Now i dont see csf link in my vesta panel?
Any idea why it get removed?
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 » Thu Jan 28, 2016 1:39 pm

amitz wrote:Hello,

I did install this csf , after that i did installed the vesta automatic app installer.
Now i dont see csf link in my vesta panel?
Any idea why it get removed?
Hello. Automatic app installer has changed panel.html - you will have to add the CSF link manually.

Change file /usr/local/vesta/web/templates/admin/panel.html

add code:

Code: Select all

<div class="l-menu__item <?php if($TAB == 'CSF' ) echo 'l-menu__item--active' ?>"><a href="/list/csf/"><?=__('CSF')?></a></div>
anywhere between <div class="l-menu clearfix noselect"> </div> tags
Top

amitz
Posts: 46
Joined: Mon Nov 09, 2015 10:52 am

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

Post by amitz » Thu Jan 28, 2016 1:48 pm

Thnx, got it now :)
Top

jonn
Posts: 72
Joined: Sun Jun 08, 2014 12:18 pm

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

Post by jonn » Fri Jan 29, 2016 12:43 am

Share customlog entry to block failed vestacp login attempts.

on debian 7

open. /etc/csf/regex.custom.pm
add after # "1" = n/temporary (n = number of seconds ...

Code: Select all

#vestacp
if (($globlogs{CUSTOM1_LOG}{$lgfile}) and ($line =~ /^\S+\s+\S+\s+\S+\s+\S+\s+failed to login/)) {
  return ("Failed vestacp control-panel login from",$1,"VESTAloginAttempt","5","8083","60");
}
"5" is count of failed logins
"8083" the port to block
"60" how long to deny (60 is 1 minute) so change to what you want, or 1 for permanent.

open /etc/csf/csf.conf
add where you find CUSTOM1_LOG

Code: Select all

CUSTOM1_LOG = "/var/log/vesta/auth.log"
dont block yourself, keep the deny time to low for testing
if you change regex a little, please share changes..
and any other csf customlog blocking that may be helpful to all of us related only to vestacp control panel...
dont forget to add your OS
Last edited by jonn on Fri Jan 29, 2016 1:15 am, edited 2 times in total.
Top

jonn
Posts: 72
Joined: Sun Jun 08, 2014 12:18 pm

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

Post by jonn » Fri Jan 29, 2016 1:04 am

Another.. source from csf forum..

pesky ylmf-pc exim attacks

on debian 7.

/etc/csf/csf.conf

Code: Select all

CUSTOM2_LOG = "/var/log/exim4/rejectlog"
/etc/csf/regex.custom.pm

Code: Select all

#exim4 smtp_auth attack
if (($globlogs{CUSTOM2_LOG}{$lgfile}) and ($line =~ /^\S+\s+\S+\s+dovecot_login authenticator failed for \(ylmf-pc\) \[(\S+)\]/)) {
  return ("exim4 smtp_auth attack",$1,"SecYLMF","1","1");
}
1 chance and 1 for permanent block on this one..
Top

amitz
Posts: 46
Joined: Mon Nov 09, 2015 10:52 am

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

Post by amitz » Mon Feb 01, 2016 11:58 pm

Hello,

the same happens again, either app installer or csf is showing not both.

SS88 wrote:
amitz wrote:Hello,

I did install this csf , after that i did installed the vesta automatic app installer.
Now i dont see csf link in my vesta panel?
Any idea why it get removed?
Hello. Automatic app installer has changed panel.html - you will have to add the CSF link manually.

Change file /usr/local/vesta/web/templates/admin/panel.html

add code:

Code: Select all

<div class="l-menu__item <?php if($TAB == 'CSF' ) echo 'l-menu__item--active' ?>"><a href="/list/csf/"><?=__('CSF')?></a></div>
anywhere between <div class="l-menu clearfix noselect"> </div> tags
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 02, 2016 1:27 am

amitz wrote:Hello,

the same happens again, either app installer or csf is showing not both.

SS88 wrote:
amitz wrote:Hello,

I did install this csf , after that i did installed the vesta automatic app installer.
Now i dont see csf link in my vesta panel?
Any idea why it get removed?
Hello. Automatic app installer has changed panel.html - you will have to add the CSF link manually.

Change file /usr/local/vesta/web/templates/admin/panel.html

add code:

Code: Select all

<div class="l-menu__item <?php if($TAB == 'CSF' ) echo 'l-menu__item--active' ?>"><a href="/list/csf/"><?=__('CSF')?></a></div>
anywhere between <div class="l-menu clearfix noselect"> </div> tags
Hello. You will have to manually do this as both "plugins" are unofficial ways to install this software so both overwrite each other.
Top

amitz
Posts: 46
Joined: Mon Nov 09, 2015 10:52 am

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

Post by amitz » Tue Feb 02, 2016 11:15 am

Hello,

yes i manully did the changes in /usr/local/vesta/web/templates/admin/panel.html
It worked but now it isn't.
Top


Post Reply
  • Print view

151 posts
  • Page 3 of 16
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 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