Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Unable to turn on Plesk Firewall with error: Did not receive a matching activation token before confirmation timeout

 
backupdatabasefirewallinstall pleskplesk firewall

Symptoms

  • Unable to turn on firewall via Plesk GUI, with error like below:

Did not receive a matching activation token before confirmation timeout

  • Same error records can be found in Plesk log /var/log/plesk/panel.log

  • Firewall service shows as active:

    # systemctl status plesk-firewall.service
    ● plesk-firewall.service - Plesk firewall rules
    Loaded: loaded (/usr/lib/systemd/system/plesk-firewall.service; disabled; vendor preset: disabled)
    Active: active (exited) since Mon 2023-05-08 17:22:29 UTC; 37min ago
    Process: 20444 ExecStart=/bin/bash /usr/local/psa/var/modules/firewall/firewall-active.sh (code=exited, status=0/SUCCESS)
    Main PID: 20444 (code=exited, status=0/SUCCESS)

  • Firewall rules with no from nor ports are seen in json configuration:

    # /usr/local/psa/bin/modules/firewall/settings --list-json
    [
    ....
    ....
    {
    "class": "custom",
    "name": "block 203.0.113.2",
    "direction": "input",
    "ports": "",
    "from": "",
    "action": "deny",
    "originalId": 98,
    "id": 478
    },
    {
    "class": "custom",
    "name": "block 203.0.113.3",
    "direction": "input",
    "ports": "",
    "from": "",
    "action": "deny",
    "originalId": 97,
    "id": 477
    },
    ....
    ....

Cause

Misconfigured rules are present in Plesk Firewall. Fields ports and from are empty.

Resolution

Remove misconfigured rules manually:

  1. Connect to the server via SSH

  2. Backup firewall database by running

    # cp -p /usr/local/psa/var/modules/firewall/firewall.sqlite3 /root/firewall_backup.sqlite3

  3. Open the firewall database with sqlite3:

    # sqlite3 /usr/local/psa/var/modules/firewall/firewall.sqlite3

  4. Use SQL query like below to remove misconfigured firewall rules:

    DELETE FROM rules WHERE data LIKE "%block 203.0.113.2%"

    DELETE FROM rules WHERE data LIKE "%block 203.0.113.3%"

    Note: Modify the query accordingly to remove rules in bulk.

  5. Start firewall from Tools & Settings > Firewall

Note: Alternatively, in case non of those rules are necessary, reinstall Plesk Firewall. Rules will be deleted. Use Plesk Installer to uninstall & install Plesk Firewall.

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

You Are Always Safe When You Have an Up-To-Date Plesk Backup

Read More »

Plesk with Centralized Database and Network File System

Read More »

WordPress Firewall – Why Do You Need One?

Read More »
Knowledge Base

Plesk and websites are inaccessible after updating Plesk to Obsidian 18.0.43 on RHEL 8-based OS: DB query failed: SQLSTATE[HY000] [2002] No such file or directory

Read More »

How to open all ports on local server needed by Plesk for Linux automatically?

Read More »

Plesk shows the error: Failed opening required ‘modules/firewall/FwConfigurator.php’

Read More »

Plesk shows the following error after removing a subscription: AH00543: httpd: bad user name jdoe

Read More »

Hosting Wiki

  • Server Redundancy
  • PostgreSQL
  • Bare Metal Server
  • Backup
  • MySQL
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • MSSQL
  • SQL
  • Plesk
  • SQL database
  • NoSQL Database
  • Web Server
  • DNS Server
  • SSH
  • Firewall
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family