#!/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 logremainder module logs all non-loopback traffic not handled by a #previous rule. /usr/bin/sudo /sbin/iptables -N logremainder /usr/bin/sudo /sbin/iptables -A logremainder -m limit --limit 10/second --limit-burst 15 -j LOG --log-prefix LogRemainder_ /usr/bin/sudo /sbin/iptables -A INPUT -i ! lo -j logremainder /usr/bin/sudo /sbin/iptables -A FORWARD -j logremainder /usr/bin/sudo /sbin/iptables -A OUTPUT -o ! lo -j logremainder