• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Firewall configuration from the command line

tkalfaoglu

Silver Pleskian
I recently started using PLESK firewall instead of the plain vanilla Linux firewall.
I have some tools that, after X attempts, needs to ban that IP.
However, I can't just add an "iptables" command, because it gets overwritten.

I understand plesk firewall has no command line interface.
Does anyone have the necessary table layout to add custom rules to the firewall?

Many thanks, -turgut
 
Thanks igor - those changes are not reflected back to plesk's GUI interface though.. So, I better make sure not to use the GUI interface if I make my own rules in the "active" file..

Regards, -turgut
 
Hi, you are correct - if you are configuring firewall manually, better to not mix it with Plesk Firewall GUI.
We know the need for firewall command line, but we don't have it yet

Regards
 
firewall

Well I wrote something like that, that mimics what the GUI does.
I just append to the firewall rule file - I do not update the database.
I just make sure not to use the GUI at all..
 
Back
Top