Ols freeze v12

Hey Everyone ,

This is cPFence OLS Freeze updated for Enhance v12 , a free script for Enhance Control Panel users who want their OpenLiteSpeed (OLS) settings to survive vhost rebuilds.

How to use

Unfreeze first (safe starting point):

curl -fsSL https://gist.githubusercontent.com/cPFence/041ef1ba10a41d62bd2a4d6cee2dae41/raw/d9cb49df93b32cce677c87f38435078f8620679d/cPFence_ols_freeze.sh \
-o /tmp/cPFence_ols_freeze.sh && chmod +x /tmp/cPFence_ols_freeze.sh && sudo /tmp/cPFence_ols_freeze.sh unfreeze

Freeze OLS config:

curl -fsSL https://gist.githubusercontent.com/cPFence/041ef1ba10a41d62bd2a4d6cee2dae41/raw/d9cb49df93b32cce677c87f38435078f8620679d/cPFence_ols_freeze.sh \
-o /tmp/cPFence_ols_freeze.sh && chmod +x /tmp/cPFence_ols_freeze.sh && sudo /tmp/cPFence_ols_freeze.sh freeze

It installs a small systemd path + timer and enforces the config automatically when Enhance touches it.

Important

  • Unfreeze before changing OLS or cPFence WAF settings
  • Test this on a test server first
  • Only use in production after you’re sure it behaves perfectly

Feedback welcome.

No comment

Leave a Reply

Your email address will not be published. Required fields are marked *