Can't access QNAP via Port 80 or 8081

Post your questions about Web Server usage and Apache + PHP + MySQL/SQLite web applications.
Post Reply
springsman
Starting out
Posts: 10
Joined: Tue Dec 15, 2020 9:39 pm

Can't access QNAP via Port 80 or 8081

Post by springsman »

After a recent update, I have noticed that I can no longer reach my QNAP TVS-672N on my LAN by typing in the IP address on any web browser. If I also try the IP address with port 80 or 8081 I get the same "Forbidden You don't have permission to access this resource" message. If I use the default ports 4000 and 4001 after the IP address I can access the QNAP login page as usual and log into the NAS.

I tried disabling the Web Server in Control Panel -> Applications -> Web Server, and then activated "Allow Redirect URL to NAS login page" on Control Panel -> System -> General Settings -> System Administration, and then I can get to the Login page by just typing the IP address of the NAS with no port identifiers.

However, while this works it does state that deactivating the Web Server can have an impact on Applications and updates, so I would rather this work the way it worked before. Not sure why ports 80 or 8081 do not work anymore to take me to the login page on my local LAN. I do not have any open ports on my Router, as I prefer to keep my NAS on my local network only. This worked before, so I am not sure what changed.

I am on version 4.5.4 1723 for my TVS-672N

Any help and suggestions will be appreciated.
User avatar
OneCD
Guru
Posts: 12010
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Can't access QNAP via Port 80 or 8081

Post by OneCD »

Try port 8080. It's the default administration interface port. ;)

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
springsman
Starting out
Posts: 10
Joined: Tue Dec 15, 2020 9:39 pm

Re: Can't access QNAP via Port 80 or 8081

Post by springsman »

I get "Unable to Connect" or "Site cannot be reached" when using port 8080 or 443 using https. I do not understand what has changed since I did not have to use any port numbers before. It just redirected correctly to the Login Page by typing in the IP address.
I wonder if something is off on the configuration for the 8080 and 443 ports.
User avatar
OneCD
Guru
Posts: 12010
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Can't access QNAP via Port 80 or 8081

Post by OneCD »

Don’t use HTTPS when connecting to port 8080. Use HTTP only.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
springsman
Starting out
Posts: 10
Joined: Tue Dec 15, 2020 9:39 pm

Re: Can't access QNAP via Port 80 or 8081

Post by springsman »

I used http for 8080 and https for 443. Same rersult.
springsman
Starting out
Posts: 10
Joined: Tue Dec 15, 2020 9:39 pm

Re: Can't access QNAP via Port 80 or 8081

Post by springsman »

I also tried SSH into the QNAP and executed "# /etc/init.d/thttpd.sh restart" to restart the Web Server. Same result. I used QFinder Pro to reinstall that last Firmware, same result. It seems like the Web Server for the NAS interface is not functioning.
springsman
Starting out
Posts: 10
Joined: Tue Dec 15, 2020 9:39 pm

Re: Can't access QNAP via Port 80 or 8081

Post by springsman »

The IP is hardcoded in network settings and is correct. I can get in using the IP address with https and a :4001 port, and I can get into the NAS as I would normally do (https://192.168.100.24:4001). Once in the NAS everything looks correct and everything seems to work.

My point is that I should not have to use the :4000 or :4001 ports to get in. Just the IP by itself would normally work and also using the http :8080 or https :443 ports should also work (ports 80 and 8081 also do not take me to the Login page of the NAS). This seems to be a Web Server issue internal to the NAS. I am not familiar enough with the internal workings of QNAP to know where to look. My Synolgy NAS is working fine on the same network with a hard-coded IP.

So just using the IP, and also using the IP with ports http 80 and https 8081 I get a "Forbidden You don't have permission to access this resource".
If I use the IP with http 8080 or https 443 ports I get "Unable to connect" or "This site can't be reached" depending on the browser.
If I use the IP with http 4000 or https 4001 ports I get in with no issues.

The only screenshots I can show are the browsers showing the message that I explained above. Not sure how useful that would be.
User avatar
OneCD
Guru
Posts: 12010
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Can't access QNAP via Port 80 or 8081

Post by OneCD »

Where did you come-up with 4000 & 4001 for the port numbers? They’re not the defaults. Did you change something? If you altered the ports in QTS, it will no-longer respond on the original port numbers, which is expected behaviour.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
springsman
Starting out
Posts: 10
Joined: Tue Dec 15, 2020 9:39 pm

Re: Can't access QNAP via Port 80 or 8081

Post by springsman »

These are the ports I set up as System Ports in Control Panel -> System -> General Settings as System Ports. I did this when I set up the NAS several months ago and have been working fine until recently. This is not new and until recently I could just type in the IP address of the NAS and it would automatically redirect to the System ports. My Synology has also been set up this way for years (with different ports) and never had an issue with this.

The setup on this General Settngs page actually states that you can change the default port number for Web Administration.
User avatar
OneCD
Guru
Posts: 12010
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Can't access QNAP via Port 80 or 8081

Post by OneCD »

A recent firmware update included a change that means QTS will no-longer auto redirect port 80 to your administration port. Although, I see you have re-enabled this in your firmware.

It sounds like your NAS is working as-expected. :geek:

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
springsman
Starting out
Posts: 10
Joined: Tue Dec 15, 2020 9:39 pm

Re: Can't access QNAP via Port 80 or 8081

Post by springsman »

I was not aware that an update eliminated the redirect from port 80 to the Admin port. Looks like an unnecessary step backward.

I think I will just leave the Web Server OFF in "Control Panel -> Applications -> Web Server" and then leave ON "Control Panel -> System -> General Settings -> System Administration -> Allow redirect URL to NAS Login page". This looks like it will act the way it used to before the update.

Thanks for the help.
Post Reply

Return to “Web Server & Applications (Apache + PHP + MySQL / SQLite)”