OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: katamadone [CH] on July 17, 2019, 03:37:23 pm

Title: tried to install & run maltrail
Post by: katamadone [CH] on July 17, 2019, 03:37:23 pm
but actually installation worked, but maltrail did not start.
Am I missing something important?

Enabled General
Enabled Server
Enabled Sensor
Title: Re: tried to install & run maltrail
Post by: mimugmail on July 17, 2019, 05:27:06 pm
It takes around 20-30 minutes after first start.
Title: Re: tried to install & run maltrail
Post by: ccesario on July 17, 2019, 06:07:35 pm
I tried install it too, but it seems it does not start, even after 30 min or 1 hour :)
Title: Re: tried to install & run maltrail
Post by: katamadone [CH] on July 18, 2019, 07:35:03 am

python2.7 /usr/local/share/maltrail/server.py

Code: [Select]
root@OPNsense:/usr/local/etc/rc.d # python2.7 /usr/local/share/maltrail/server.py
Traceback (most recent call last):
  File "/usr/local/share/maltrail/server.py", line 24, in <module>
    from core.common import check_connection
  File "/usr/local/share/maltrail/core/common.py", line 12, in <module>
    import sqlite3
  File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
    from dbapi2 import *
  File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>
    from _sqlite3 import *
ImportError: No module named _sqlite3
Title: Re: tried to install & run maltrail
Post by: franco on July 18, 2019, 07:47:59 am
Looks like the maltrail port is missing python dependencies.

# pkg install py27-sqlite3

There may be more.


Cheers,
Franco
Title: Re: tried to install & run maltrail
Post by: katamadone [CH] on July 18, 2019, 08:10:02 am
that did it - btw if anyone searches the default:
admin / changeme!
Title: Re: tried to install & run maltrail
Post by: mimugmail on July 18, 2019, 10:08:21 am
Yep, that's enough, I'll push an update
Title: Re: tried to install & run maltrail
Post by: rackenthogg on July 18, 2019, 01:34:29 pm
Hi,

I installed required missing package and maltrail started OK.
But I can't access UI.
Only part of UI appears (upper bar and top-left logo), but then browser throws the following error pop-up:

Code: [Select]
NetworkError: Failed to load worker script at http://10.0.0.1:8338/js/papaparse.min.js?papaworker (nsresult = 0x805e0006) Script:  Line: 0
10.0.0.1 is my OPNSense router IP.

Title: Re: tried to install & run maltrail
Post by: mimugmail on July 18, 2019, 01:58:50 pm
Can you try to restart the server? I can't reproduce here, works fine.
Title: Re: tried to install & run maltrail
Post by: rackenthogg on July 18, 2019, 04:45:10 pm
Can you try to restart the server? I can't reproduce here, works fine.

Restart didn't help, but reinstallation of plugin did. When installation is performed after adding missing dependency, all works OK from the beginning.
Title: Re: tried to install & run maltrail
Post by: mimugmail on July 18, 2019, 05:09:55 pm
 :o

Glad it's working in the end :)
Title: Re: tried to install & run maltrail
Post by: pilotboy72 on July 23, 2019, 08:07:50 pm
I'm getting an error on the Sensor configuration page.  The help text for the "Remote Port" value says to leave it blank when the sensor and server are on the same machine, but the UI is insisting on a value for it.
Title: Re: tried to install & run maltrail
Post by: mimugmail on July 23, 2019, 10:37:34 pm
Have to recheck, maybe it's enough to leave IP blank
Title: Re: tried to install & run maltrail
Post by: mgear on September 08, 2019, 06:54:07 pm
Hello all, if I should create a new thread I will, but this seemed relevant to some challenges I had with maltrail. Reading this string, I was able to get the process up and running. However, I cannot seem to login. I understand the default user/pass is admin/changeme!. However, it will not let me login. Any pointer/suggestions on how to login? Thank you
Title: Re: tried to install & run maltrail
Post by: mimugmail on September 08, 2019, 08:17:34 pm
Can you post maltrail.conf?