OPNsense Forum

English Forums => General Discussion => Topic started by: olest on June 07, 2020, 09:45:18 am

Title: Rspamd webGUI
Post by: 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?
Title: Re: Rspamd webGUI
Post by: fabian on June 07, 2020, 09:56:51 am
On CLI using its admin utility.
Title: Re: Rspamd webGUI
Post by: olest on June 07, 2020, 10:09:18 am
Used: rspamadm pw and changed /etc/rspamd/local.d/worker-controller.inc

Is there a CLI command set set it directly?
Title: Re: Rspamd webGUI
Post by: fabian on June 07, 2020, 10:49:12 am
nothing else
Title: Re: Rspamd webGUI
Post by: muhyal on June 18, 2020, 02:23:17 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.
Title: Re: Rspamd webGUI
Post by: fabian on June 18, 2020, 07:29:30 am
It is bound to 127.0.0.1 so you cannot reach it from an external host without DNAT or a local reverse proxy
Title: Re: Rspamd webGUI
Post by: 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
Title: Re: Rspamd webGUI
Post by: muhyal on June 18, 2020, 11:28:55 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:
Code: [Select]
count = 1;
password = "HASH";
secure_ip = "127.0.0.1";
secure_ip = "::1";
static_dir = "${WWWDIR}";


Title: Re: Rspamd webGUI
Post by: fabian on June 18, 2020, 04:48:34 pm
password is blank.
Title: Re: Rspamd webGUI
Post by: muhyal on June 18, 2020, 06:22:35 pm
password is blank.

Hi,

I changed hash to q1 and try blank but cannot login.

https://prnt.sc/t26kn2
Title: Re: Rspamd webGUI
Post by: jchavezb on September 28, 2021, 05:18:38 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
Title: Re: Rspamd webGUI
Post by: mimugmail on September 28, 2021, 07:55:35 am
Screenshots please
Title: Re: Rspamd webGUI
Post by: purpleax on December 05, 2021, 05:23:06 am
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.
Title: Re: Rspamd webGUI
Post by: mimugmail on December 05, 2021, 07:06:02 am
Oh nice, also new to me, thx for sharing :)