NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

squid-box's avatar
squid-box
Aspirant
Apr 12, 2018
Solved

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
    • squid-box's avatar
      squid-box
      Aspirant

      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>;
          }
      • bobbycrispbox's avatar
        bobbycrispbox
        Aspirant

        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>

         

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More