Author Topic: Webmin Plugin  (Read 4145 times)

Offline vadim

  • Moderator
  • Comodo's Hero
  • *****
  • Posts: 338
Webmin Plugin
« on: June 09, 2015, 03:42:31 AM »
Last Comodo WAF client can be easily integrated into Webmin

You may use this guide to install CWAF on your server under Webmin management.

Release Notes:

Webmin supports a lot of Linux and Unix OS. We couldn't check new CWAF client on all Webmin-supported systems, it was tested with the last Webmin Webmin 1.750 on the next OS:

  • CentOs 6.x
  • Ubuntu 14.x
  • Debian 7.x

Please send us your feedback to improve Webmin support.
« Last Edit: June 09, 2015, 04:19:02 AM by vadim »
--
Vadim Lvovskiy
Development Manager
COMODO Group Inc.

Offline victories

  • Newbie
  • *
  • Posts: 2
Re: Webmin Plugin
« Reply #1 on: June 09, 2015, 10:17:15 AM »
Hello,

Thank you for webmin plugin, I'm waiting so long time  :)

I install on Centos 7, but css, js, img, tpl files does not load.

Solution:

ln -s /usr/local/cwaf/web/cwaf /usr/libexec/webmin/cwaf/

Best regards,
Hasan.

Offline vadim

  • Moderator
  • Comodo's Hero
  • *****
  • Posts: 338
Re: Webmin Plugin
« Reply #2 on: June 10, 2015, 03:00:16 AM »

I install on Centos 7, but css, js, img, tpl files does not load.

Solution:

ln -s /usr/local/cwaf/web/cwaf /usr/libexec/webmin/cwaf/

Thank you, Hasan, we'll use your solution in the next version of installer.
--
Vadim Lvovskiy
Development Manager
COMODO Group Inc.

Offline hmtm

  • Newbie
  • *
  • Posts: 1
Re: Webmin Plugin
« Reply #3 on: March 22, 2016, 04:49:00 AM »
Code: [Select]
22/03/16 09:46:59 updater[4862]  debug is ON, level = 10
22/03/16 09:46:59 updater[4862]  create pid file
22/03/16 09:46:59 updater[4862]  rules are not installed, try to install
22/03/16 09:46:59 updater[4862]  lwp_params: timeout=60 sec, save_to_file flag: 1
22/03/16 09:47:00 updater[4862]  HTTP response code: 403
22/03/16 09:47:00 updater[4862]  Error reason: Auth failed
22/03/16 09:47:00 updater[4862]  ERROR: can't connect to CWAF rules server
22/03/16 09:47:00 updater[4862]  update process finished!

I can login on waf.comodo.com but got the above message trying to update via webmin.


PS:
It was a special char in my password. Fixed now.
ln -s /usr/local/cwaf/web/cwaf /usr/local/cwaf/web/webmin/cwaf/ solved my css problems on ubuntu 14.
« Last Edit: March 22, 2016, 05:00:05 AM by hmtm »

Offline webwzrd

  • Newbie
  • *
  • Posts: 8
Re: Webmin Plugin
« Reply #4 on: April 14, 2016, 12:08:26 PM »
In case you didn't know, Virtualmin 5 comes with a brand new HTML 5 theme, great improvement so likely everyone will want to be using it. However the Comodo WAF plugin won't display with this new theme and you have to switch back to the old one to use it.

Any chance we can get this compatible with the new theme?




Offline victories

  • Newbie
  • *
  • Posts: 2
Re: Webmin Plugin
« Reply #5 on: September 19, 2016, 03:39:28 AM »
Hello,

please delete below line in /usr/libexec/webmin/cwaf/cwaf/tpl/index.html

Code: [Select]
<script type="text/javascript" src="cwaf/js/plugins/jquery-1.11.0.min.js"></script>

Offline eulergui

  • Newbie
  • *
  • Posts: 4
Re: Webmin Plugin
« Reply #6 on: November 12, 2016, 01:38:35 PM »
After the last update (to version 2.18.1) breaked my interface...



Can anyone help me to fix it? (I'm using Debian Jessie and the lastest webmin... everything worked fine before the CWAF update)

Offline akabakov

  • Comodo's Hero
  • *****
  • Posts: 375
Re: Webmin Plugin
« Reply #7 on: November 14, 2016, 05:26:44 AM »
Please, try to run:

Code: [Select]
# wget https://waf.comodo.com/cpanel/cwaf_client_install.sh
# bash cwaf_client_install.sh -- --update

Offline eulergui

  • Newbie
  • *
  • Posts: 4
Re: Webmin Plugin
« Reply #8 on: November 22, 2016, 07:16:30 PM »
Please, try to run:

Code: [Select]
# wget https://waf.comodo.com/cpanel/cwaf_client_install.sh
# bash cwaf_client_install.sh -- --update

Not worked... when I open the console debugger on browser, I got this errors:

Content Security Policy: A directiva 'frame-src' está obsoleta. Por favor, use a diretiva 'child-src' em vez disso.(unknown)
ReferenceError: jQuery is not defined                     [Learn More]jquery-ui-1.9.2.custom.min.js:6:2
ReferenceError: jQuery is not defined                     [Learn More]jquery.qubit.min.js:4:1
ReferenceError: jQuery is not defined                     [Learn More]jquery.bonsai.js:247:1
ReferenceError: jQuery is not defined                     [Learn More]chosen.jquery.min.js:2:10864
ReferenceError: $ is not defined                     [Learn More]cwaf_catalog.js:65:1
ReferenceError: $ is not defined                     [Learn More]cwaf:50:1

Offline mn3250

  • Newbie
  • *
  • Posts: 2
Re: Webmin Plugin
« Reply #9 on: December 30, 2016, 05:22:23 AM »
Have the same problem like eulergui.
Looks like the problem comes form:
Uncaught TypeError: e(...).uniqueId is not a function
    at HTMLAnchorElement.<anonymous> (https://localhost:10000/cwaf/cwaf/js/plugins/jquery-ui-1.9.2.custom.min.js:6:166998)
...
Anybody could direct me how to solve this problem?

Offline oleg.tsygany

  • Comodo's Hero
  • *****
  • Posts: 275
Re: Webmin Plugin
« Reply #10 on: December 30, 2016, 05:57:24 AM »
Hi guys

Try to modify file /usr/local/cwaf/web/cwaf/tpl/index.html
You will find here lines:
Code: [Select]
[% IF main.virtualmin != 1 %]
<script type="text/javascript" src="cwaf/js/plugins/jquery-1.11.0.min.js"></script>
[% END %]

Please remove [%someting%] lines so it will look like:
Code: [Select]
<script type="text/javascript" src="cwaf/js/plugins/jquery-1.11.0.min.js"></script>

Regards, Oleg

Offline mn3250

  • Newbie
  • *
  • Posts: 2
Re: Webmin Plugin
« Reply #11 on: January 02, 2017, 12:09:16 AM »
Tanx Oleg. Tried your suggestion and I get : TypeError: $.url is not a function .
A blank screen now.
Is there no way to switch to newer less buggy versions of jquery and jquery ui?

Offline oleg.tsygany

  • Comodo's Hero
  • *****
  • Posts: 275
Re: Webmin Plugin
« Reply #12 on: January 02, 2017, 12:24:49 PM »
Hi

Please write ticket to support (https://support.comodo.com/index.php?/Tickets/Submit  department 'WAF Support') so we can ask for remote session.

Regards, Oleg

Offline eulergui

  • Newbie
  • *
  • Posts: 4
Re: Webmin Plugin
« Reply #13 on: January 26, 2017, 09:39:52 AM »
Hi guys

Try to modify file /usr/local/cwaf/web/cwaf/tpl/index.html
You will find here lines:
Code: [Select]
[% IF main.virtualmin != 1 %]
<script type="text/javascript" src="cwaf/js/plugins/jquery-1.11.0.min.js"></script>
[% END %]

Please remove [%someting%] lines so it will look like:
Code: [Select]
<script type="text/javascript" src="cwaf/js/plugins/jquery-1.11.0.min.js"></script>

Regards, Oleg

This worked for me!! Thank you very much! :)

Offline oleg.tsygany

  • Comodo's Hero
  • *****
  • Posts: 275
Re: Webmin Plugin
« Reply #14 on: January 26, 2017, 10:05:14 AM »
This worked for me!! Thank you very much! :)

Glad to hear it :)
I hope soon we will prepare improved version of plugin which will work for any Webmin theme

Regards, Oleg

 

Free Endpoint Protection
Seo4Smf 2.0 © SmfMod.Com Smf Destek