I am trying to modify mod_access in apache2 using Ubuntu Server in order to allow only certain ips to access a directory. The following was added in /etc/apache2/sites-available/default <Directory /var/www/phpmyadmin> Order deny,allow deny from all allow from 172.16.1.7/255.255.240.0 </Directory> Code (markup): As 172.16.1.7 is the internal access to the server and 255.255.240.0 is the subnet mask Unfortunately, when connected through VPN to the server I am not given access to this directory when going to: 172.16.1.7/phpmyadmin. I can access 172.16.1.7/phpmyadmin from any pc ONLY when I am in the office where the server is installed. I am not sure if this is a firewall issue or this its my directive that isn't well written. Any help would be appreciated. Best Regards, Pat.