dummy target?
hi all
i want to use the counters for statistic stuff. i already have a working example. but i want to get numbers for pakets, which i acutally have no rule for (e.g. all incoming traffic). is there a dummy target? like:
$IPTABLES -t mangle -A PREROUTING -m physdev --physdev-in $INET_IF -j DUMMY
dummy target: do nothing, do not terminate, do just increment counters.
cheers
moritz
Hi Moritz,
On Fri, Mar 18, 2005 at 02:46:20PM +0100, Moritz Gartenmeister told us:
Quoted 9 lines
hi all
i want to use the counters for statistic stuff. i already have a working example. but i want to get numbers for pakets, which i acutally have no rule for (e.g. all incoming traffic).
is there a dummy target? like:
$IPTABLES -t mangle -A PREROUTING -m physdev --physdev-in $INET_IF -j DUMMYdummy target: do nothing, do not terminate, do just increment counters.
just don't provide the '-j TARGET' on the commandline, then you'll have a rule (with its counters) which "does" nothing...
HTH
Sven
Quoted 5 lines
cheers
moritz
Signature · 2 lines
Linux zion 2.6.11-mm3 #1 Sun Mar 13 00:10:52 CET 2005 i686 athlon i386 GNU/Linux 15:40:16 up 5 days, 15:08, 1 user, load average: 0.23, 0.06, 0.02
Hi all
Thanks for your (Sven and Steven) help!
regards
moritz
Quoted 28 lines · Sven Schuster
Hi Moritz,
On Fri, Mar 18, 2005 at 02:46:20PM +0100, Moritz Gartenmeister told us:
Quoted 7 lines
hi all
i want to use the counters for statistic stuff. i already have a working example. but i want to get numbers for pakets, which i acutally have no rule for (e.g. all incoming traffic). is there a dummy target? like:
$IPTABLES -t mangle -A PREROUTING -m physdev --physdev-in $INET_IF -j DUMMYdummy target: do nothing, do not terminate, do just increment counters.
just don't provide the '-j TARGET' on the commandline, then you'll have a rule (with its counters) which "does" nothing...
HTH
Sven
Quoted 4 lines
cheers
moritz