• Resolved castle9mm

    (@castle9mm)


    Hello, I’m currently running a number of sites in docker containers and am having and issue when the container is restarted or updated, the firewall goes back to ‘learning mode’. My first guess is due to the container not having a ‘config.php’ file on restart but due to using the generalized container image, I can’t include site specific settings inside the container. Is there a way to save those settings in the database or any other possible way to save the firewall state on a site inside a docker container?

Viewing 1 replies (of 1 total)
  • Hi @castle9mm,

    The information that the firewall uses and writes is saved under /wp-content/wflogs/.
    That means, when the docker resets, I imagine all the files within wflogs is removed.

    What you can do is enable the firewall, and then copy the contents of /wflogs into the docker. That way, when the docker resets, the firewall will still be enabled.

    However, this means that when rules are automatically updated by Wordfence, it will be out of date when the docker resets.

    One of the high priority features we are looking to implement is a database-based WAF. (Internal Ref: #FB6963) This will allow setups such as an instance filesystem, or network filesystem to be compatible with Wordfence’s WAF.

    Dave

Viewing 1 replies (of 1 total)
  • The topic ‘Docker Container resets firewall to Learning Mode’ is closed to new replies.