Comodo WAF for DirectAdmin

Hi interfasys

Please try to update plugin manually:
`# wget https://waf.comodo.com/cpanel/cwaf_client_install.sh

bash ./cwaf_client_install.sh – --update`

Maybe your FreeBSD doesn’t contain required packages.
Please let me know if updates will be not performed after upgrading to latest plugin version (which is 2.9 at the moment).

Console commands to test update:
`# echo 1 > /usr/local/cwaf/etc/version.dat

/usr/local/cwaf/scripts/update-client.pl`

Regards, Oleg

Starting from CWAF client version 2.12 all DirectAdmin users with LiteSpeed Web Server can use Comodo WAF protection.

Just install last version of CustomBuild and choose Comodo Rules for LiteSpeed Web Server and rebuild ModSecurity rules.

I am on freebsd 9.2 with comodo waf 2.13 plugin

Plugin Protection Wizard hangs when I click on next button, then it just stays there and nothing happens

This is what I see:

Protection Tree
Please Check Categories/Groups/Rules you like to protect.

Loading…

And the loading never stops…

Hi

If you have something like Firebug plugin, can you please check what server response for hanging request.
It can be permission issue, FreeBSD is strict system.

Thank you in advance,
Regards, Oleg

This is what I see in firebug console persist

CGI will be removed from the Perl core distribution in the next major release. Please install it from
 CPAN. It is being used at /usr/local/cwaf/web/cwaf_sharedlib.pl, line 1.
CGI::Util will be removed from the Perl core distribution in the next major release. Please install it
 from CPAN. It is being used at /usr/local/lib/perl5/5.20/CGI.pm, line 29.
Status: 200 OK

Fixed: posting for others to fix as needed,

ssh to root and then:
cpan

install CGI

DONE!

Great!

Thank you for feedback!

With best regards, Oleg

Does not work with Perl 5.20

Use of uninitialized value $tmp{"httpd_version"} in split at /usr/local/lib/perl5/site_perl/Comodo/CWAF/DAdmin.pm line 91.

Hi

It can’t parse Apache version.
Please send output of this command:

# apachectl -v

Regards, Oleg

Hello,
I get this error when I click in comodo waf plugin page in directadmin:

Can’t locate Comodo/CWAF/Main.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/directadmin/plugins/comodo_waf/admin/index.pl line 10.
BEGIN failed–compilation aborted at /usr/local/directadmin/plugins/comodo_waf/admin/index.pl line 10.

What to do?
Thank you

Hi

Please check if CWAF plugin was installed correctly.
Install logs is located in /tmp/cwaf_install.log.XXXX

Regards, Oleg

I use centos 7.2. x86_64 with directadmin 1.4.91
I get this error when I click in Comodo WAF 2.15 after update it.
Undefined subroutine &main::is_standalone called at /usr/local/cwaf/web/cwaf_sharedlib.pl line 125.
What to do?

Hi

Is this error show once during update or it still continue to appear?

Regards, Oleg

It still continue

Seems Perl modules were not updated correctly.
Please try to update client by running following commands from rot console:
`# wget https://waf.comodo.com/cpanel/cwaf_client_install.sh

bash ./cwaf_client_install.sh – --update`

Regards, Oleg

My server control panel is directadmin.
Is correct this command?

wget https://waf.comodo.com/cpanel/cwaf_client_install.sh

bash ./cwaf_client_install.sh – --update

Yes, this command is correct and will work for all web control panels.

Regards, Oleg

I run it but dont solve issue.

Strange…
Can you please open ticket in CWAF Support (Submit a ticket - Powered by Kayako Help Desk Software ‘WAF Support’ department) so we can ask you for remote access session.

Regards, Oleg

We installed CWAF on a number of servers. On some it works like a peach, but on others we get the message

Use of uninitialized value $tmp{“httpd_version”} in split at /usr/local/lib/perl5/site_perl/Comodo/CWAF/DAdmin.pm line 91

Since DAdmin.pm on all servers is identical I suspect it’s an issue with a cpan module, but I’ll eat my hat if I know which one. According to /tmp/cwaf_install.log.52217 the install went off without a hitch and it concludes with

21-12-2015 22:13:48 Setting Up ModSecurity config
21-12-2015 22:13:48 /etc/httpd/conf/extra/httpd-modsecurity.conf → /usr/local/cwaf/conf/modsec2_plugin.conf
21-12-2015 22:13:48 All Done!

apachectl -m does list security2_module as loaded so I’m guessing it’s just a perl thing.

[attachment deleted by admin]