Page 1 of 2

4.1 Alpha external access bug?

Posted: August 20th, 2023, 11:10 am
by janitoronmars
Figured I would report this potential issue here since I am not sure if it's a bug or a change in the way host is defined in Sabnzbd configuration. I am running 4.1 Alpha on Xubuntu 22.04.1 LTS. Prior to the last upgrade, everything was working fine. I don't use external access. More often than not, I access the web interface on the server itself in Firefox. I don't run Sabnzbd in Docker or a VM. After upgrading, my usual bookmark stopped working and the webpage said "external access is blocked". My host was the static internal IP of my server and external access was set to 0. I changed the setting of external access to 4 in the config file, relaunched the service and then I could access the web interface. I tried leaving the host blank or adding localhost or 0.0.0.0 in there but got locked out again until I went back to inet exposure 4. For now, I have added a username and password so I can continue accessing the web interface.l but would like to be able to turn external access off. Any ideas appreciated, thanks.

Re: 4.1 Alpha external access bug?

Posted: August 20th, 2023, 1:39 pm
by safihre
You should check the logging why it is blocked. Could be hostname or ip based.
From what version did you update? This check didn't change for some versions already.

Re: 4.1 Alpha external access bug?

Posted: August 20th, 2023, 3:34 pm
by janitoronmars
Thank you for the response. From my backups, looks like it was from 4.0.3RC1. I did a quick config change to "Full Web interface - Only external access requires login" and am still getting a login prompt on the local machine. Will do more testing here in a bit and look again at the logs (I think this error had been happening for since the update and I had not noticed, since when I looked at the logs yesterday they were full of the same error: WARNING::[interface:385] Refused connection from: 10.0.1.10 [Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0]).

Re: 4.1 Alpha external access bug?

Posted: August 20th, 2023, 3:49 pm
by sander
Refused connection from: 10.0.1.10
And on which IP address is SABnzbd running?

EDIT: plus: via which URL do you access SABnzbd?

Re: 4.1 Alpha external access bug?

Posted: August 20th, 2023, 5:27 pm
by janitoronmars
That is the IP it is running from, and I double checked, IP has not changed, and is reserved through my router. Here is the address I have used for quite some time: http://10.0.1.10:8080/sabnzbd/.

Re: 4.1 Alpha external access bug?

Posted: August 20th, 2023, 5:31 pm
by sander
Oh, SABnzbd and browser are on the same machine?

If so: what if you use http://127.0.0.1:8080/

Re: 4.1 Alpha external access bug?

Posted: August 20th, 2023, 5:55 pm
by janitoronmars
Thanks for responding. Yes, same machine. Localhost address does not work (I presume expected behaviour, since my host in configuration is 10.0.1.10). I did try "localhost" as well as 127.0.0.1 as entries in the configuration but that did not at the time resolve my inability to access the web interface. Let me try it again and report results.

Re: 4.1 Alpha external access bug?

Posted: August 20th, 2023, 6:06 pm
by janitoronmars
All right, I was able to set 127.0.0.1 as the host, changed back to "no access" and was able to access in the browser via http://127.0.0.1:8080/, with and without authentication. I was also able to change to 0.0.0.0 and again able to access via localhost, but the main window was full of errors like the ones I saw in the logs, Refused connection from: 10.0.1.10 [Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0]). I was not able to leave that field empty (I believe the wiki says this is a valid action). I do use NZB360 on my phone to access SAB from within my LAN from time to time, and that won't work with the localhost setting. Hope this helps, thanks again.

Re: 4.1 Alpha external access bug?

Posted: August 21st, 2023, 3:56 am
by safihre
If you set it to 0.0.0.0 it will bind to your device's IP, so it will work again for NZB360.

Re: 4.1 Alpha external access bug?

Posted: August 21st, 2023, 7:10 am
by janitoronmars
Thanks. I tried 0.0.0.0, but it was flooding the main window with the refused connection errors, not sure why.

Re: 4.1 Alpha external access bug?

Posted: August 21st, 2023, 7:36 am
by safihre
It might be the older warnings still or another browser being open.

Re: 4.1 Alpha external access bug?

Posted: August 21st, 2023, 2:43 pm
by janitoronmars
Thanks, yes, on trying again, 0.0.0.0 worked with external access turned on. On changing the setting to "No Access" I was locked out again on restart, same error saying external access is blocked. I can live with this probably, I can see about reverting to the previous version and seeing if the behaviour changes.

Re: 4.1 Alpha external access bug?

Posted: August 22nd, 2023, 5:26 am
by jcfp
Did you define any local_ranges in config->special? If so, try clearing out that setting..

Re: 4.1 Alpha external access bug?

Posted: August 22nd, 2023, 11:41 pm
by janitoronmars
jcfp wrote: August 22nd, 2023, 5:26 am Did you define any local_ranges in config->special? If so, try clearing out that setting..
Appreciate the response. No, I never set any IP ranges in there.

Re: 4.1 Alpha external access bug?

Posted: August 24th, 2023, 5:06 am
by hoyage
I am having the same issue since updating last night. Unable to access sabnzbd from http://plex:8080 like i normally do. Ended up having to enable web access. IP of server is 192.168.0.16 and PC is 192.168.0.14 but for some reason sabnzbd is seeing it external. Host is set to 0.0.0.0 nothing in special local_ranges host_whitelist is set to plex