• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Question Custom IPTables chains and Plesk firewall management

QWeb Ric

Regular Pleskian
Server operating system version
AlmaLinux 9.7 (Moss Jungle Cat)
Plesk version and microupdate number
Obsidian 18.0.75
We have a number of firewall scripts that work by creating custom IPTables chains and attaching them to INPUT, but we also use Plesk's firewall management UI which of course recreates the IPTables rules everytime changes are saved.

To work around this, currently we also have a script which just reattaches our custom chains to INPUT on execution, and every time the firewall is saved via Plesk, I SSH in and run this script manually.

Just wondering if there's a way to automate? Is there a way to expand the firewall save process to also run our script, or a way to just add chains to it's own internal list for reattaching on save? Presumably the Fail2Ban extension must be latching on to this mechanic somehow since those chains are always kept?
 
Back
Top