code.fastix.org

Dateiansicht:

Datei:Projekte -> PHP:check_blocked_ip -> fwlist.sh
md5:1af0d02fab071468837e2646c2f66ae5
sha1:eb0b749341634e1d63d369fc087345e8e326aff2
Download-Link:Download
  1. #!/bin/sh
  2.  
  3. # chwon this to root!
  4. # set rights to 755 or better 750 and think about a group whos allowed execute this! (set this group with chown root:GROUP fwlist.sh)
  5.  
  6.  
  7. /sbin/iptables -L -n | grep "DROP\|REJECT" | sed -r "s/ +/ /" | cut -d " " -f6