Page 13 of 16

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

Posted: Sat Feb 10, 2018 12:15 pm
by SS88
mephivio wrote:
Sat Feb 10, 2018 9:57 am
hi..
could you certify your script is compatible with last update 0.9.8-19 ?
Thanks
It sure is! :)

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

Posted: Wed Mar 14, 2018 6:46 am
by efkosay
hello, I have a clean installation of ubuntu 16.xx + vestacp + CSF. after installing CSF, it works for me. But iptables does not work. I have tried reinstall iptables, but in vain. I installed a vest cp 19. on vestacp version 17 and 18 I also installed CSF and I had the same problem. any advice how to fix iptables? :(

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

Posted: Mon Mar 19, 2018 6:51 pm
by efkosay
efkosay wrote:
Wed Mar 14, 2018 6:46 am
hello, I have a clean installation of ubuntu 16.xx + vestacp + CSF. after installing CSF, it works for me. But iptables does not work. I have tried reinstall iptables, but in vain. I installed a vest cp 19. on vestacp version 17 and 18 I also installed CSF and I had the same problem. any advice how to fix iptables? :(
Repair broken IPTALBES (work for me) "ubuntu"

Code: Select all

v-stop-service iptables
v-start-service iptables
/usr/local/vesta/bin/v-start-service iptables

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

Posted: Mon Apr 09, 2018 6:20 am
by efkosay
Friends, have anyone tested the new version of the vesta ? "V20"

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

Posted: Mon Apr 09, 2018 8:51 am
by SS88
efkosay wrote:
Mon Apr 09, 2018 6:20 am
Friends, have anyone tested the new version of the vesta ? "V20"
Yes it works :)

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

Posted: Mon Apr 09, 2018 8:16 pm
by LDPS
Hello!
I whant add blocking IP when Failed enter in vestaCP 8083.

What i DO:

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

PUT:
#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");
}

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

PUT:
CUSTOM1_LOG = "/var/log/vesta/auth.log"


IN log
2018-04-09 23:09:05 111 77.74.187.242 failed to login
2018-04-09 23:09:07 1 77.74.187.242 failed to login
2018-04-09 23:09:08 1 77.74.187.242 failed to login
2018-04-09 23:09:57 1 77.74.187.242 failed to login
2018-04-09 23:09:58 1 77.74.187.242 failed to login
2018-04-09 23:09:59 1 77.74.187.242 failed to login
2018-04-09 23:10:00 1 77.74.187.242 failed to login
2018-04-09 23:10:01 1 77.74.187.242 failed to login
2018-04-09 23:10:02 1 77.74.187.242 failed to login
2018-04-09 23:10:03 1 77.74.187.242 failed to login
2018-04-09 23:10:04 1 77.74.187.242 failed to login
2018-04-09 23:10:05 1 77.74.187.242 failed to login
2018-04-09 23:10:06 1 77.74.187.242 failed to login
2018-04-09 23:10:08 1 77.74.187.242 failed to login
2018-04-09 23:10:10 1 77.74.187.242 failed to login


but my IP dont block.
please help.

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

Posted: Tue Apr 10, 2018 12:36 am
by moucho

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

Posted: Tue Apr 10, 2018 8:20 am
by LDPS
Yes, I did everything also. but the lock does not happen ...

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

Posted: Wed Apr 11, 2018 12:09 pm
by SS88
LDPS wrote:
Tue Apr 10, 2018 8:20 am
Yes, I did everything also. but the lock does not happen ...
Show me your new code. moucho code works for me.

@moucho can I add your code(s) to my Github? :)

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

Posted: Wed Apr 11, 2018 9:48 pm
by moucho
SS88 wrote:
Wed Apr 11, 2018 12:09 pm
@moucho can I add your code(s) to my Github? :)
Sure! :)