#!/bin/bash #Copyright 2004 William Stearns #Released under the GPL #Automatically generated by Modwall, http://www.stearns.org/modwall/ #Note that this module depends on system specific configuration #so your output will differ. #==== Brick specific help ==== # The shunsrc module places permanent bans on source IP addresses or #networks listed in any files whose names start with /var/lib/modwall//shun . /usr/bin/sudo /sbin/iptables -N shunsrc /usr/bin/sudo /sbin/iptables -A shunsrc -s 172.27.1.66 -j DROP /usr/bin/sudo /sbin/iptables -A shunsrc -s 127.0.0.1 -j DROP /usr/bin/sudo /sbin/iptables -A shunsrc -s 66.59.111.190 -j DROP /usr/bin/sudo /sbin/iptables -A shunsrc -s 192.168.11.253 -j DROP /usr/bin/sudo /sbin/iptables -A shunsrc -s 172.28.2.3 -j DROP /usr/bin/sudo /sbin/iptables -A INPUT -i ! lo -j shunsrc /usr/bin/sudo /sbin/iptables -A FORWARD -j shunsrc