Author Topic: How to set temporary IP ban in one command  (Read 3767 times)

0 Members and 1 Guest are viewing this topic.

Offline postcd

  • Jr. Member
  • **
  • Posts: 37
  • Karma: 0
  • Gender: Male
  • just curious
    • View Profile
    • Awards
How to set temporary IP ban in one command
« on: April 21, 2014, 11:04:34 am »
Hello,

i want to deny an IP 2.2.2.2 using iptables for 15 minutes.

This must be one line command, because i want to use it in mod_deflate in this variable:
DOSSystemCommand “.....”

Someone used:
DOSSystemCommand “sudo /sbin/iptables -A INPUT -s %s -j DROP”

but i assume this is permanent ban untill server reboot which is too longterm ban i think, i need 15 minute ban in one command?
no general writing in my threads please, only helpfull ontopic please

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal