Jump to content

limit access to admin panel by IP Address?

Featured Replies

Posted

Is there a way to limit access to admin panel by IP Address?

Or another way of saying it is: I pick which IP addresses are whitelisted and everyone else is blocked?

You can do that server side. Just limit access to the acp folder with the ip you want. 

  • Author
  On 3/26/2016 at 9:40 PM, RevengeFNF said:

You can do that server side. Just limit access to the acp folder with the ip you want. 

 

Can you tell me how?

  On 3/26/2016 at 10:44 PM, Jswerv3 said:

 

Can you tell me how?

Do you use Apache, Nginx or other? 

  • Author
  On 3/26/2016 at 11:05 PM, RevengeFNF said:

Do you use Apache, Nginx or other? 

ngin

I'm on a CentOS 7/CentMin Mod stack server.

This works just fine

location /admin {
    auth_basic                      "Restricted Access";
    auth_basic_user_file             /usr/local/nginx/passwd/the.keys.to.the.kindgom;
    root /path/to/your/root/directory/;
    include /usr/local/nginx/conf/staticfiles.conf;
    include /usr/local/nginx/conf/php.conf;
        }

 

  • Author
  On 3/27/2016 at 12:23 AM, Tracy Perry said:

I'm on a CentOS 7/CentMin Mod stack server.

This works just fine

location /admin {
    auth_basic                      "Restricted Access";
    auth_basic_user_file             /usr/local/nginx/passwd/the.keys.to.the.kindgom;
    root /path/to/your/root/directory/;
    include /usr/local/nginx/conf/staticfiles.conf;
    include /usr/local/nginx/conf/php.conf;
        }

 

what about whitelisting ips?

  On 3/27/2016 at 12:37 AM, Jswerv3 said:

what about whitelisting ips?

Just replace the auth_basic line with 

    allow XXX.XXX.XXX.XXX/32;
    allow 127.0.0.1;
    deny  all;

where XXX.XXX.XXX.XXX is your STATIC IP.  If  you are on a DHCP ISP, then this will NOT work for you.

  • Author
  On 3/27/2016 at 12:46 AM, Tracy Perry said:

Just replace the auth_basic line with 

    allow XXX.XXX.XXX.XXX/32;
    allow 127.0.0.1;
    deny  all;

where XXX.XXX.XXX.XXX is your STATIC IP.  If  you are on a DHCP ISP, then this will NOT work for you.

How can I tell if I am on a DHCP ISP? I am fairly sure its static, but I want to double check.

  On 3/27/2016 at 12:51 AM, Jswerv3 said:

How can I tell if I am on a DHCP ISP? I am fairly sure its static, but I want to double check.

Your bill.. most ISP's charge an additional fee for a static IP (mine is something like $12 a month extra).  You can check in your router and see how it is set up also.  Unless you specifically requested a static IP odds are you do not have one.

You can also trick users as an extra security measure by keeping the admin path and password protect it using nginx and set real admin path protected again on a new path.

Most users will think that the admin panel is at default location when they see the login pop up ^_^

But maybe i should not post such info lol ^_^

  • Author
  On 3/27/2016 at 11:09 AM, ASTRAPI said:

You can also trick users as an extra security measure by keeping the admin path and password protect it using nginx and set real admin path protected again on a new path.

Most users will think that the admin panel is at default location when they see the login pop up ^_^

But maybe i should not post such info lol ^_^

Very interesting tactic haha. So instead of whitelisting IPs, you can password protect the public facing admin panel login page on IPBoard with a Password, before you actually get to the login page to input your username and password to use the panel?

So it is like:

Go to admin panel URL

Password protected (via nginx)

correct password entered

regular login screen

enter user and pass

into ipb admin panel

yup ^_^

  • Author
  On 3/27/2016 at 11:54 AM, ASTRAPI said:

yup ^_^

Is that a good security precaution to use? Is it easy to break or bruteforce at all? 

Sounds like a better option than limiting to IPs

No it's not easy to brute force because:

1)Using a password like: (Q#m1H$e2ylfY;rY\0ZM*$8VrK^x;SU) is not easy at all to brute force

2)Even if someone break on it then he must brute force the second ipb login and this will not be easy as he must modify the brute force script to always login to the first pop up and try each password on ipb login and that will cause a huge delay and make it very hard to break it.

But limiting to an IP is good also ^_^

You can use both !

 

  • Author
  On 3/27/2016 at 12:05 PM, ASTRAPI said:

No it's not easy to brute force because:

1)Using a password like: (Q#m1H$e2ylfY;rY\0ZM*$8VrK^x;SU) is not easy at all to brute force

2)Even if someone break on it then he must brute force the second ipb login and this will not be easy as he must modify the brute force script to always login to the first pop up and try each password on ipb login and that will cause a huge delay and make it very hard to break it.

But limiting to an IP is good also ^_^

You can use both !

 

How would I setup the initial nginx login? If you dont mind ;)

Don't know what stack are you using but you can find a lot of tutorials about it in Google searching something like this:

How to password protect a folder using Nginx

 

 

  • Author
  On 3/27/2016 at 12:11 PM, ASTRAPI said:

Don't know what stack are you using but you can find a lot of tutorials about it in Google searching something like this:

How to password protect a folder using Nginx

 

 

So just by simply placing a password on a folder server side will prompt me to enter that password on the front end to access? 

No.

You must also add a block like Tracy Perry post above on nginx conf file and restart Nginx ^_^

But again Google it and try it ^_^

 

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.