Installed rspamd and created NAT rule to access port 11334 from LAN but how do I set the rspamd webgui password?
On CLI using its admin utility.
Used: rspamadm pw and changed /etc/rspamd/local.d/worker-controller.inc
Is there a CLI command set set it directly?
nothing else
Quote from: olest on June 07, 2020, 09:45:18 AM
Installed rspamd and created NAT rule to access port 11334 from LAN but how do I set the rspamd webgui password?
Hi,
I cannot access the Rspamd local IP address with port 11334. My firewall local IP address is 10.10.1.1
Can you explain how you set the NAT rule or share the rule.
Thanks.
It is bound to 127.0.0.1 so you cannot reach it from an external host without DNAT or a local reverse proxy
Portforward on interface LAN, source LAN net, destination LAN address, tcp, port 11334, redirect target 127.0.0.1
Quote from: mimugmail on June 18, 2020, 08:33:53 AM
Portforward on interface LAN, source LAN net, destination LAN address, tcp, port 11334, redirect target 127.0.0.1
Thank you, great. But i couldn't change the password despite all my attempts.
Login IP:
10.10.1.1:11334
I use this command (With root user on SSH):
rspamadm pw
And copy hash to:
/usr/local/etc/rspamd/worker-controller.inc
Hash:
count = 1;
password = "HASH";
secure_ip = "127.0.0.1";
secure_ip = "::1";
static_dir = "${WWWDIR}";
password is blank.
Quote from: fabian on June 18, 2020, 04:48:34 PM
password is blank.
Hi,
I changed hash to q1 and try blank but cannot login.
https://prnt.sc/t26kn2
Quote from: mimugmail on June 18, 2020, 08:33:53 AM
Portforward on interface LAN, source LAN net, destination LAN address, tcp, port 11334, redirect target 127.0.0.1
The NAT rule not working
LAN TCP LAN red * LAN dirección 11334 127.0.0.1 11334 RSPAMD GUI
Result: ERR_CONNECTION_TIMED_OUT
Screenshots please
Quote from: muhyal on June 18, 2020, 06:22:35 PM
Quote from: fabian on June 18, 2020, 04:48:34 PM
password is blank.
Hi,
I changed hash to q1 and try blank but cannot login.
https://prnt.sc/t26kn2
I am sure you have figured this out by now, but for future people searching for the answer to this - you need to run the configwizard and it will set the password. I have just found this out today.
so ssh into the firewall and run: rspamadm configwizard
During this process it will ask you to set the password. Thats what worked for me.
Oh nice, also new to me, thx for sharing :)