Maltrail rejects correct password

Started by rackenthogg, July 23, 2022, 12:39:39 AM

Previous topic - Next topic
I am trying to reach maltrail interface using correct password and it is rejected with message "Bad login and/or password". I verified password hash at "Services: Maltrail: General" tab on web GUI so I am sure I am using good password. I entered password both manually and by copy-pasting - no luck. I tried admin and root logins - still rejected.


Can you check the contents of /usr/share/maltrail/maltrail.conf if the password is correct?

Thanks for quick reply. There is no maltrail" subdir in /usr/share:


root@localhost:~ # cd /usr/share/maltrail
/usr/share/maltrail: No such file or directory.

root@localhost:~ # cd /usr
root@localhost:/usr # cd share
root@localhost:/usr/share # cd maltrail
maltrail: No such file or directory.

root@localhost:/usr/share # ls
atf             examples        kyua            nls             syscons
bsdconfig       firmware        licenses        openssl         tabset
calendar        flua            locale          pc-sysinstall   tmac
certs           games           man             security        vi
dict            groff_font      me              sendmail        vt
doc             i18n            misc            skel            zfs
dtrace          keys            mk              snmp            zoneinfo


I found that hash in maltrail.conf file is that one for "changeme!" password, not the one set in OPNSense GUI.
So I used this password, circle "progress bar" appeared for a second and then just a small box with message "No events found".

Quote from: mimugmail on July 23, 2022, 10:23:12 AM
/usr/local/share, sorry

So wrong password hash was in conf file (one of 'changeme!'), after entering this password no data shows, except message "No events found". How can I repair maltrail?


Quote from: mimugmail on July 25, 2022, 07:29:48 AM
Can you post a screenshot please?

Message about empty database shows and disappears immediately after that, so I can't catch it on screenshot.
The only thing which remains visible is simply login screen with "Login" and "Password" fields.

BUT

I disabled maltrail service, restarted OPNsense box, after restart I enabled maltrail, restarted box again and now it works - but with default password, which I cannot change from OPNSense GUI, even if the new correct hash is pasted in relevant place.

You need to change it in General, hit save, go back to Server and there restart again.

Quote from: mimugmail on July 25, 2022, 01:32:01 PM
You need to change it in General, hit save, go back to Server and there restart again.

I can't do that, because there is only service start button in Server tab, even if maltrail service is running (which I can check logging to it or seeing its status on Dashboard).



https://i.postimg.cc/Y9fcYjmH/2022-07-25-150752.jpg


Quote from: mimugmail on July 25, 2022, 06:39:05 PM
I meant going to sub menu server and hit save

Full success, now everything works correctly. Thank you for your help!  :D

Glas it works. Was one of my first plugins, not the best UX