Difference between revisions of "Restrict admin access to LAN"
Line 2: | Line 2: | ||
Author: snis<br> | Author: snis<br> | ||
Tested on B2 | |||
If you want to restrict your Bubba admin interface (http://bubba/admin) to you local LAN and not having it enabled on the WAN for the rest of the world to see, this guide might be for you. | If you want to restrict your Bubba admin interface (http://bubba/admin) to you local LAN and not having it enabled on the WAN for the rest of the world to see, this guide might be for you. |
Latest revision as of 10:54, 28 December 2010
Restrict admin access to LAN
Author: snis
Tested on B2
If you want to restrict your Bubba admin interface (http://bubba/admin) to you local LAN and not having it enabled on the WAN for the rest of the world to see, this guide might be for you.
Using ssh, log on to Bubba (as your regular user). To become root Type:
su -
And enter the password:
excito
If you haven't changed the default, that is.
Edit your the admin part of the Apache config:
nano /etc/apache2/conf.d/admin.conf
You will find the part <Directory /usr/share/web-admin/admin>, change it to:
<Directory /usr/share/web-admin/admin > AllowOverride None Order Deny,Allow Deny from all Allow from 192.168.10.0/24 DirectoryIndex index.php AddHandler php-cgi .php Action php-cgi /fcgi-bin/php.cgi virtual </Directory>
Observe that the network 192.168.10.0/24 should match the network you have on your LAN. If you are unsure can find it under:
http://bubba/admin/network/lan
For example: your IP address is: 192.168.0.10 and your netmask is 255.255.255.0, then the Allow from should be:
Allow from 192.168.0.0/24
After you have edited the file, you have to reload Apache to reflect the changes. Type the following:
/etc/init.d/apache2 reload
Done!
This change will likely be overwritten and changed back to the defaults if you upgrade your Bubba