Restrict admin access to LAN

From BubbaWiki
Jump to navigation Jump to search

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:


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
DirectoryIndex index.php
AddHandler php-cgi .php
Action php-cgi /fcgi-bin/php.cgi virtual

Observe that the network should match the network you have on your LAN. If you are unsure can find it under:


For example: your IP address is: and your netmask is, then the Allow from should be:

Allow from

After you have edited the file, you have to reload Apache to reflect the changes. Type the following:

/etc/init.d/apache2 reload

This change will likely be overwritten and changed back to the defaults if you upgrade your Bubba