Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - bposter

#1
Thanks mimugmail, on 22.1.5 now. I'll report if my memory leak returns.
#2
Looks right so far, I'll watch memory for the next few days (and disable my processes restarts) and report back.

root     17187  86.1  7.6  997224 624956  -  R    22:13       0:05.59 python2.7 /usr/local/share/maltrail/sensor.py
root     13946   1.8  0.3   35580  23892  -  S    22:13       0:00.21 python3 /usr/local/share/maltrail/server.py (python3.8)
#3
Steps I had to follow:

- Install ports
opnsense-code ports tools

- Install python 2.7
cd /usr/ports/lang/python27
make
make install
(log out and back in)
python2.7 -m ensurepip

- Do not upgrade pip beyond version 21, it will break
pip2.7 install --upgrade "pip < 21.0"

- Make sqlite 3 you need to set flavor to python 2.7
cd /usr/ports/databases/py-sqlite3
make FLAVOR=py27 clean install
pip2.7 install sqlite3

- Test if you have everything you need from cli
python2.7 /usr/local/share/maltrail/sensor.py

- Didnt't work, had to install pcapy
pip2.7 install pcapy-ng

- If everything works you can update the rc file/usr/local/etc/rc.d/opnsense-maltrailsensor to change the command to use python 2.7
command_args="-f -P /var/run/maltrailsensor.pid python2.7 /usr/local/share/maltrail/sensor.py"

Testing now, thanks sanxiago!
#5
20.7 Legacy Series / Re: ntopng keeps stopping
May 25, 2021, 06:46:10 PM
Do you mean from ntop repos directly, or the opnsense repo under system/plugins?