ReJeCtAll / naxsi

Automatically exported from code.google.com/p/naxsi
Other
0 stars 0 forks source link

nginx-naxsi-ui debug #62

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I've installed nginx-naxsi & nginx-naxsi-ui via ubuntu repository (Ubuntu 
12.10) 

When I start nginx-naxsi-ui:
service nginx-naxsi-ui start
Starting nginx-naxsi-ui: nginx-naxsi-ui_intercept.
nginx-naxsi-ui_extract.

I'm unable to access the web interface on port 8081 (I've checked my firewall 
is open for that port).

The mysql database details have been configured correct, but I'm not seeing any 
tables being created.

When I restarted nginx-naxsi-ui:
service nginx-naxsi-ui restart
Restarting nginx-naxsi-ui: start-stop-daemon: warning: failed to kill 31868: No 
such process
nginx-naxsi-ui_extract.
start-stop-daemon: warning: failed to kill 31866: No such process
nginx-naxsi-ui_intercept.
nginx-naxsi-ui_intercept.
nginx-naxsi-ui_extract.

Is there a debug log somewhere for the ui I can check?

Original issue reported on code.google.com by ch...@feedmymedia.com on 8 Mar 2013 at 8:45

GoogleCodeExporter commented 8 years ago
Hello,

If you do a ps/netstat, do you see the process running and the ports listening ?
To me seems like nx_intercept cannot start because of misconfiguration ?

Original comment by ori...@gmail.com on 13 Mar 2013 at 8:56

GoogleCodeExporter commented 8 years ago
Hi,

Thank you for the reply, I've been looking this morning again at getting it 
working - but still not luck. 

Looking at netstat it doesn't appear to be listening on port 8080/8081 as per 
my config.

I've tried installing from source following the instructions here - 
https://gist.github.com/purwandi/4690042 but still no luck. 

Original comment by manager...@gmail.com on 13 Mar 2013 at 9:04

GoogleCodeExporter commented 8 years ago
Just to add on, following the instructions above the tables in the db are 
created now, after doing:

python nx_intercept.py -c /etc/nginx/naxsi-ui-learning.conf -l 
/var/log/nginx/error.log
No pid_path in conf file ! Using /tmp/nx_intercept.pid
No log_path in conf file ! Using /tmp/
41 exceptions stored into database.

but still not seeing it listing on the defined ports

Original comment by manager...@gmail.com on 13 Mar 2013 at 9:08

GoogleCodeExporter commented 8 years ago
Please switch to nx_util.(https://code.google.com/p/naxsi/wiki/NxUtil_man)
naxsi-ui is discontinued, as live learning is too expensive.
nx_util provides the same features (whitelists, reporting generation) without 
involving a web server.

Original comment by ori...@gmail.com on 6 Apr 2013 at 1:38

GoogleCodeExporter commented 8 years ago

Original comment by ori...@gmail.com on 13 May 2013 at 9:36