How to set temporary IP ban in one command

  • Thread starter Thread starter postcd
  • Start date Start date
P

postcd

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:
Code:
DOSSystemCommand “.....”
Someone used:
Code:
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?

Continue reading...
 
Back
Top