Results 1 to 3 of 3
  1. #1

    after flush+zero iptables, will a new iptables ban work?

    Say I execute the following commands, in the following order:
    iptables --flush
    iptables --zero
    iptables -A INPUT -s 218.65.12.161 -j DROP

    will that last command successfully ban that IP until reboot?
    If not, what needs to be done? I can't access my site if I don't flush + zero iptables first but I need to be able to ban with iptables.

  2. #2
    Join Date
    Apr 2005
    Location
    Cochin
    Posts
    2,452
    Yes it will ban

  3. #3
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,771
    Tertsi,

    Install APF and you can play with firewall more easily and comfortably.
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •