NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
dsnpevl
Oct 17, 2015Virtuoso
Redirect admin page to HTTPs?
Hi Forum,
I installed 6.4.0 without issues.
However, the admin page is now exposed to the Internet on HTTP, which I see as a potential security risk.
Is there a way to point the http://somedomain.nl/ to a webshare and point http://somedomain.nl/admin to https://somedomain.nl/admin?
This would block remote access to the admin pages, because HTTPS is not allowed on the router.
On the internal network, I would still be able to connect to the admin pages via HTTPS.
Figgered it out. Let's say you have created a webshare directory from the Admin page, called "your_webshare_dir".
vi /etc/frontview/apache/Shares.conf
Change
Alias "/your_webshare_dir" "/data/your_webshare_dir" <Location "/your_webshare_dir"> Options Indexes +Includes Order allow,deny Allow from all Options -ExecCGI AllowOverride None
to:
</Location>AliasMatch "^/(?!apps/.*)(.*)$" "/data/your_webshare_dir/$1" <Location "/"> Options Indexes +Includes Order allow,deny Allow from all Options -ExecCGI AllowOverride None
</Location>This will redirect anything except the icons of the apps in the Admin page to your webshare.
vi /etc/frontview/apache/http-share-redirect.conf
RewriteEngine on #RewriteRule ^/$ /admin [R,L]
This will disable the auto-redirect to the admin page when going to http://your.domain.com/.
vi /etc/apache2/sites-available/fv-http-admin
<VirtualHost *:80>
Include "/etc/frontview/apache/defaults.conf" Include "/etc/frontview/apache/http-redirect.conf" Include "/etc/frontview/apache/http-share-redirect.conf" Include "/etc/frontview/apache/fv-admin.conf" Include "/etc/frontview/apache/Shares.conf" Include "/etc/frontview/apache/apps-https.conf" Include "/etc/frontview/apache/READYDROP.conf" Include "/etc/frontview/apache/lan-try.conf"
</VirtualHost>Make sure http-redirect.conf is included in the list of configurations.
(Note: not sure why this is needed, but this way it works for me.)Disclaimer: Use this at your own risk.
Known issues: these setting changes will be overwritten when doing a firmware upgrade.
1 Reply
Replies have been turned off for this discussion
- dsnpevlVirtuoso
Figgered it out. Let's say you have created a webshare directory from the Admin page, called "your_webshare_dir".
vi /etc/frontview/apache/Shares.conf
Change
Alias "/your_webshare_dir" "/data/your_webshare_dir" <Location "/your_webshare_dir"> Options Indexes +Includes Order allow,deny Allow from all Options -ExecCGI AllowOverride None
to:
</Location>AliasMatch "^/(?!apps/.*)(.*)$" "/data/your_webshare_dir/$1" <Location "/"> Options Indexes +Includes Order allow,deny Allow from all Options -ExecCGI AllowOverride None
</Location>This will redirect anything except the icons of the apps in the Admin page to your webshare.
vi /etc/frontview/apache/http-share-redirect.conf
RewriteEngine on #RewriteRule ^/$ /admin [R,L]
This will disable the auto-redirect to the admin page when going to http://your.domain.com/.
vi /etc/apache2/sites-available/fv-http-admin
<VirtualHost *:80>
Include "/etc/frontview/apache/defaults.conf" Include "/etc/frontview/apache/http-redirect.conf" Include "/etc/frontview/apache/http-share-redirect.conf" Include "/etc/frontview/apache/fv-admin.conf" Include "/etc/frontview/apache/Shares.conf" Include "/etc/frontview/apache/apps-https.conf" Include "/etc/frontview/apache/READYDROP.conf" Include "/etc/frontview/apache/lan-try.conf"
</VirtualHost>Make sure http-redirect.conf is included in the list of configurations.
(Note: not sure why this is needed, but this way it works for me.)Disclaimer: Use this at your own risk.
Known issues: these setting changes will be overwritten when doing a firmware upgrade.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!