Learn about Centmin Mod LEMP Stack today
Become a Member

Security Error 1006 Access denied on my admin.php area

Discussion in 'System Administration' started by modder, Oct 29, 2021.

  1. modder

    modder Member

    117
    16
    18
    Dec 6, 2019
    Ratings:
    +27
    Local Time:
    1:39 PM
    I'm running latest xenforo on centminmod via cloudflare.

    Recently after my home IP changed I can no longer get access to the admin area of my xenforo.

    I believe I did have changed something to secure my admin area but I forgot what I did.

    I checked firewall rules in cloudflare but nothing special found. So it might be I've done something in centminmod? I'm not sure..

     
    Last edited: Oct 29, 2021
  2. eva2000

    eva2000 Administrator Staff Member

    53,853
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    3:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    in your nginx vhost for admin.php location context, did you set a IP address restriction to your ISP IP? Might need to update that
     
  3. modder

    modder Member

    117
    16
    18
    Dec 6, 2019
    Ratings:
    +27
    Local Time:
    1:39 PM
    nothing about "admin" found in the file /usr/local/nginx/conf/conf.d/mydomain.ssl.conf

    Currently, only one location (that particular IP) can get access to the admin area. I can do that with my mobile phone too with that wifi.

    I tried to run the following command in '/user/local/nginx' but resulted nothing.

    grep -rnw . -e '188\.109\.202\.129'
    grep -rnw . -e '188.109.202.129'
    grep -rnw . -e '188'

    Nothing even for grep -rnw . -e 'admin.php' and grep -rnw . -e 'admin\.php'

    where 188.109.202.129 (I modified the real IP here) is the IP address that works on the admin area.
     
    Last edited: Nov 1, 2021
  4. modder

    modder Member

    117
    16
    18
    Dec 6, 2019
    Ratings:
    +27
    Local Time:
    1:39 PM
    Found the cause of the problem. I configured the Zone Lockdown in Cloudflare...
     
  5. eva2000

    eva2000 Administrator Staff Member

    53,853
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    3:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Ah that would explain things. You can switch to Cloudflare Access to protect logs instead. That's what I do for Xenforo and Wordpress logins :D
     
  6. modder

    modder Member

    117
    16
    18
    Dec 6, 2019
    Ratings:
    +27
    Local Time:
    1:39 PM
    Any tutorial for that? :)
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,853
    12,160
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,712
    Local Time:
    3:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+