How Do I Block An IP With ISPConfig?

Discussion in 'Installation/Configuration' started by Unfaiir, Mar 10, 2013.

  1. Unfaiir

    Unfaiir Member

    How Do I Block An IP With ISPConfig And Have It Persist After Reboot?

    I have several IP's that are clearly up to no good that I want to block.

    I found a HowtoForge post on how to use "route" to block an IP.

    route add -host reject
    When the server reboots, all of the IPs that I've added to the blacklist are now gone.

    How can I keep these IPs from being erased at reboot? Do I need to enter them through ISPConfig somehow?
    Last edited: Mar 10, 2013
  2. pawan

    pawan Member HowtoForge Supporter

    either you save all the ips in a text file like this
    route add -host reject
    route add -host reject
    route add -host reject
    and copy paste in terminal on reboot.

    or better still use fail2ban to automatically ban the offending IPs automatically.

Share This Page