If you've made a mistake in Plesk CP access configuration and you can't connect to the control panel anymore use the following to reset the access filters.
mysql -uadmin -p`cat /etc/psa/.psa.shadow ` psa -e "update misc set val = 'allow' where param = 'access_policy'"