Unable to log into Plesk: Access for administrator from address xx.xx.xx.xx is restricted in accordance with IP Access restriction policy currently applied

Refers to:

  • Plesk

Created:

2016-11-16 12:42:42 UTC

Modified:

2017-01-27 02:46:29 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Unable to log into Plesk: Access for administrator from address xx.xx.xx.xx is restricted in accordance with IP Access restriction policy currently applied

Symptoms

Unable to login to Plesk:

Access for administrator from address xx.xx.xx.xx is restricted in accordance with IP Access restriction policy currently applied.

Cause

Plesk IP access policy was configured in such a way so that Plesk could not be accessed from the certain IP.

Resolution

To enable Plesk access, you need to log into the Plesk locally and change the IP access policy:

Tools and Settings > Restrict Administrative Access

Remove the necessary IP address/subnet/network.

If localhost is also blocked and you are unable to log in to Plesk locally, the Plesk database records regarding the access policy need to be corrected. To retrieve the current policy and the restricted/allowed IPs, the following commands can be used:

Linux

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa
mysql> select * from cp_access;
mysql> select * from misc where param='access_policy';

Windows

    "%plesk_bin%\\dbclient" --direct-sql --sql="select * from cp_access"
"%plesk_bin%\\dbclient" --direct-sql --sql="select * from misc where param='access_policy'";

If you wish to clear the access policy settings, remove all records from "cp_access" and set the policy to "allow":

Linux

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa
mysql> delete from cp_access;
mysql> update misc set val="allow" where param='access_policy';

Windows

    "%plesk_bin%\\dbclient" --direct-sql --sql="delete from cp_access";
"%plesk_bin%\\dbclient" --direct-sql --sql="update misc set val='allow' where param='access_policy'";
Have more questions? Submit a request
Please sign in to leave a comment.