Unable to login to Plesk:
Access for administrator from address 203.0.113.2 is restricted in accordance with IP Access restriction policy currently applied.
Plesk IP access policy was configured in such a way so that Plesk could not be accessed from the certain IP.
To enable Plesk access, log into the Plesk UI locally and change the IP access policy in Tools and Settings > Restrict Administrative Acces. Remove the necessary IP address/subnet/network from a restriction.
If localhost is also blocked and it's not possible to login to Plesk UI, the Plesk database records regarding the access policy need to be corrected:
1. Connect to the server using SSH/RDP
2. Retrieve the current policy and the restricted/allowed IPs, the following commands can be used:
In a command prompt, execute the following command to access Plesk database:
# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa
Execute the following queries to check the current settings:
MYSQL_LIN: mysql> select * from cp_access;
mysql> select * from misc where param='access_policy';
Open Windows Command Prompt (CMD) in a Windows server: Right-click the Start charm, and then click Command Prompt (Admin). Paste the following commands one by one:
"%plesk_bin%\\dbclient" --direct-sql --sql="select * from cp_access";
"%plesk_bin%\\dbclient" --direct-sql --sql="select * from misc where param='access_policy'";
3. To clear the access policy settings, remove all records from "cp_access" table and set the policy to allow:
mysql> delete from cp_access;
mysql> update misc set val="allow" where param='access_policy';
"%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'";