1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Firewall configuration from the command line

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by tkalfaoglu, Jun 13, 2012.

  1. tkalfaoglu

    tkalfaoglu Regular Pleskian

    30
    68%
    Joined:
    Oct 6, 2005
    Messages:
    290
    Likes Received:
    1
    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
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
  3. tkalfaoglu

    tkalfaoglu Regular Pleskian

    30
    68%
    Joined:
    Oct 6, 2005
    Messages:
    290
    Likes Received:
    1
    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
     
  4. Sergey L

    Sergey L Golden Pleskian Staff Member

    32
    43%
    Joined:
    Aug 10, 2006
    Messages:
    1,195
    Likes Received:
    30
    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
     
  5. tkalfaoglu

    tkalfaoglu Regular Pleskian

    30
    68%
    Joined:
    Oct 6, 2005
    Messages:
    290
    Likes Received:
    1
    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..
     
Loading...