[plug] IP Accounting

Matt Kemner zombie at wasp.net.au
Thu Mar 30 15:10:22 WST 2000


On Thu, 30 Mar 2000, Brad Campbell wrote:

> Wrong Wrong Wrong Wrong Wrong!!!
> The soultion below only accounts outgoing traffic!

OK so in your while loop, below the masq rule add the line:

$IPCHAINS -A output -s $REMOTENET -d 192.168.1.$counter -j RETURN

so as well as adding the masq rules for each host, it adds a counter for
each host for incoming (which is added to your outgoing chain because
you're counting it as it leaves eth0)

 - Matt




More information about the plug mailing list