how to lockdown phpMyAdmin

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

how to lockdown phpMyAdmin

Postby akmayuga » Wed Sep 18, 2013 2:34 pm

Hi guys,

may i know how and where to lockdown "192.168.1.1/phpMyAdmin"??

thank you
Vicibox 64-bit
Asterisk v.1.4.39.2-vici
ViciBox Redux v.5.0.2-130807
preload iso installation
No Digium/Sangoma Hardware
No Extra Software After Installation
single server
akmayuga
 
Posts: 56
Joined: Thu Apr 19, 2012 1:53 pm

Re: how to lockdown phpMyAdmin

Postby akmayuga » Wed Sep 18, 2013 3:23 pm

Vicibox 64-bit
Asterisk v.1.4.39.2-vici
ViciBox Redux v.5.0.2-130807
preload iso installation
No Digium/Sangoma Hardware
No Extra Software After Installation
single server
akmayuga
 
Posts: 56
Joined: Thu Apr 19, 2012 1:53 pm

Re: how to lockdown phpMyAdmin

Postby DomeDan » Thu Sep 19, 2013 6:50 am

tested on vicibox 4.0.2, stuff might differ with 5.0.X

phpmyadmin is already in the www root so no alias is needed.

create the file /etc/apache2/conf.d/phpmyadmin.conf (it can be named anything .conf)
and put something like this in it:
Code: Select all
<Directory "/srv/www/htdocs/phpMyAdmin/">
    Order Deny,Allow
    Deny from all
    Allow from 192.168.0.2
</Directory>

verify that /srv/www/htdocs/phpMyAdmin/ is the path to the phpmyadmin directory
replace 192.168.0.2 with any ip you want,
if you want to allow a whole subnet you can type something like this: 192.168.0.1/32 (its 192.168.0.1 to 192.168.0.254)
and you can specify multiple ip addresses by writing more "Allow from" rows like in the guide you linked to
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: how to lockdown phpMyAdmin

Postby akmayuga » Thu Sep 19, 2013 9:29 am

HI DomeDan,

thank you so much!!!
Vicibox 64-bit
Asterisk v.1.4.39.2-vici
ViciBox Redux v.5.0.2-130807
preload iso installation
No Digium/Sangoma Hardware
No Extra Software After Installation
single server
akmayuga
 
Posts: 56
Joined: Thu Apr 19, 2012 1:53 pm

Re: how to lockdown phpMyAdmin

Postby williamconley » Fri Sep 20, 2013 1:07 am

this can help as well if you want to stop people from looking for "other holes":

http://www.viciwiki.com/index.php/DGG#L ... or_Install
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Bing [Bot] and 107 guests