Access Denied to whitelisted name/IP ?

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Nomadadon
Newbie
Newbie
Posts: 6
Joined: March 10th, 2019, 12:09 pm

Access Denied to whitelisted name/IP ?

Post by Nomadadon »

I'm using the latest Docker version of Sabnzbd, 2.3.7 according to the log. I have a white list entry:

host_whitelist = HOSTNAME, FQDN, 172.21.0.0/24, 172.21.0.1

I have connected to the docker container, grep white from config.ini give the same line. When I try to connect, my web browser gives just the error "access denied" but in the Docker log I get:

sabnzbd | 2019-03-10 17:22:38,366::DEBUG Refused connection from 172.21.0.1

The IP in the log line matches MYIP above and is in the subnet.

It was working up until 2 days ago and I just ran out of good searches.

Any ideas?
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

Re: Access Denied to whitelisted name/IP ?

Post by sander »

Code: Select all

host_whitelist = HOSTNAME, FQDN, 172.21.0.0/24, 172.21.0.1
You never never need to host_whitelist an IP address; the host_whitelist is there if you want SABnzbd to accept *host names*.
AFAIK You cannot fill out a subnet in host_whitelist

Code: Select all

in the Docker log I get:

sabnzbd | 2019-03-10 17:22:38,366::DEBUG Refused connection from 172.21.0.1
Is that SAB logging? In SAB logging, there would be the SAB module and line number in it.

If you have that SAB logging, we can see the reason. Maybe you filled out extra blocking in SABnzbd.
Nomadadon
Newbie
Newbie
Posts: 6
Joined: March 10th, 2019, 12:09 pm

Re: Access Denied to whitelisted name/IP ?

Post by Nomadadon »

I added the the IP's because the hostnames weren't working either. I can change it back to hostname,fqdn as I had it last night but I doubt that will change.

I just reloaded the http interface:

Code: Select all

root@059a022b3e79:/datadir/logs# tail -1 sabnzbd.log
2019-03-10 18:02:34,485::DEBUG::[interface:146] Refused connection from 172.21.0.1
Nothing else in the logbefore it or after other than calls via api from couchpotato.
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

Re: Access Denied to whitelisted name/IP ?

Post by sander »

interface line 146: AFAIK that is the general access checking, which you can block / specify in Config -> General. So check that out: SABnzbd Host, and Security settings.

The host_whitelist is only used/checked in interface.py line 173.
Nomadadon
Newbie
Newbie
Posts: 6
Joined: March 10th, 2019, 12:09 pm

Re: Access Denied to whitelisted name/IP ?

Post by Nomadadon »

I can't log into the GUI to change it. If I go to "http://host:8080" I get the access denied immediately.
User avatar
sander
Release Testers
Release Testers
Posts: 8830
Joined: January 22nd, 2008, 2:22 pm

Re: Access Denied to whitelisted name/IP ?

Post by sander »

It's a docker ... so kill it and start from fresh. Treat a docker like "cattle, not a pet"

The problem is in your sabnzbd.ini (you locked yourself out), or how you approach it. Not in SABnzbd.

Code: Select all

If I go to "http://host:8080"
... why the host stuff? Please use an IP address, and I would say 127.0.0.1
Post Reply