OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: rackenthogg on July 23, 2022, 12:39:39 AM

Title: Maltrail rejects correct password
Post by: rackenthogg on July 23, 2022, 12:39:39 AM
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.

Title: Re: Maltrail rejects correct password
Post by: mimugmail on July 23, 2022, 06:41:32 AM
Can you check the contents of /usr/share/maltrail/maltrail.conf if the password is correct?
Title: Re: Maltrail rejects correct password
Post by: rackenthogg on July 23, 2022, 08:03:22 AM
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
Title: Re: Maltrail rejects correct password
Post by: mimugmail on July 23, 2022, 10:23:12 AM
/usr/local/share, sorry
Title: Re: Maltrail rejects correct password
Post by: rackenthogg on July 23, 2022, 05:14:09 PM
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".
Title: Re: Maltrail rejects correct password
Post by: rackenthogg on July 25, 2022, 07:22:01 AM
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?
Title: Re: Maltrail rejects correct password
Post by: mimugmail on July 25, 2022, 07:29:48 AM
Can you post a screenshot please?
Title: Re: Maltrail rejects correct password
Post by: rackenthogg on July 25, 2022, 10:21:12 AM
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.
Title: Re: Maltrail rejects correct password
Post by: 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.
Title: Re: Maltrail rejects correct password
Post by: rackenthogg on July 25, 2022, 03:11:22 PM
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)

https://i.postimg.cc/Y9fcYjmH/2022-07-25-150752.jpg
Title: Re: Maltrail rejects correct password
Post by: mimugmail on July 25, 2022, 06:39:05 PM
I meant going to sub menu server and hit save
Title: Re: Maltrail rejects correct password
Post by: rackenthogg on July 26, 2022, 07:02:12 AM
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
Title: Re: Maltrail rejects correct password
Post by: mimugmail on July 26, 2022, 08:29:57 AM
Glas it works. Was one of my first plugins, not the best UX