NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
squid-box
Apr 12, 2018Aspirant
After 6.9.3 upgrade I'm unable to access admin page through reverse proxy
I have my ReadyNAS 104 set up to have the admin page available through a reverse proxy (nginx). At 6.9.2 this worked fine, but as of 6.9.3 I'm getting the error message (direct copy paste, 'idl' and missing space are as shown :smileyindifferent:):
Your ReadyNAS Admin Page session has ended either because you logged out or the Admin Page was idl for an hour.
To log back into the Admin Page,click Login.
Clicking login will give me a timeout trying to load the admin page, and reloading the browser gives me the same error.
I have also cleared my browser cache and tried different browsers, makes no difference.
Accessing the admin page locally through its static IP I can access the admin page fine, so I'm assuming there's some header I need to forward as of 6.9.3 for this to work properly?
Any suggestions are welcome.
Thank you, this gave me a hint at what I had to do :)
What my reverse proxy was missing was simply to forward the headers. For anyone with the same problem, I had to edit my location block to read like this:
location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass_header Set-Cookie; proxy_pass <internal-ip-to-nas>; }
3 Replies
Replies have been turned off for this discussion
- mdgm-ntgrNETGEAR Employee Retired
An explanation of what would need to be passed is described in Curl does not work any more since upgrade to 6.9.3 on RN316
- squid-boxAspirant
Thank you, this gave me a hint at what I had to do :)
What my reverse proxy was missing was simply to forward the headers. For anyone with the same problem, I had to edit my location block to read like this:
location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass_header Set-Cookie; proxy_pass <internal-ip-to-nas>; }- bobbycrispboxAspirant
Thanks for the information provided here.
For my setup, with Apache mod_proxy, I had to add the ProxyPreserveHost directive
<Location /> ProxyPass https://mynasip/ ProxyPassReverse https://mynasip/ ProxyPreserveHost on </Location>
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!