* [LARTC] Ip traffic accounting and HTB
@ 2003-09-10 15:04 gaston
2003-09-10 15:05 ` gaston
0 siblings, 1 reply; 2+ messages in thread
From: gaston @ 2003-09-10 15:04 UTC (permalink / raw)
To: lartc
Hi, I'm using HTB for bandwidth control, but i'm still not sure how to
account the traffic. My config is the following: eth0 goes to internet and
eth1 to the clients(I'm shaping both ifaces). I want to log ip traffic
from and to the clients. Since htb shapes outgoing traffic I'm not sure
how to make the iptables script.
This is the script:
${IPTABLES} -N ZORBCOUNTIN
${IPTABLES} -A ZORBCOUNTIN
${IPTABLES} -N ZORBCOUNTOUT
${IPTABLES} -A ZORBCOUNTOUT
${IPTABLES} -I INPUT -i $IFACE -j ZORBCOUNTIN
${IPTABLES} -I OUTPUT -o $IFACE -j ZORBCOUNTOUT
${IPTABLES} -N ZORBCOUNT
${IPTABLES} -I FORWARD -s $NET -o $IFACE -j ZORBCOUNT
${IPTABLES} -I FORWARD -d $NET -i $IFACE -j ZORBCOUNT
grep "^" $IPS | while read IP;
do
${IPTABLES} -A ZORBCOUNT -s $IP
${IPTABLES} -A ZORBCOUNT -d $IP
done;
${IPTABLES} -A ZORBCOUNT -s $NET
${IPTABLES} -A ZORBCOUNT -d $NET
Does iptables count the shaped traffic or the whole traffic without shaping?
which interface should i use in the iptables script, eth0 or eth1 ?
Thank you.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread* [LARTC] Ip traffic accounting and HTB
2003-09-10 15:04 [LARTC] Ip traffic accounting and HTB gaston
@ 2003-09-10 15:05 ` gaston
0 siblings, 0 replies; 2+ messages in thread
From: gaston @ 2003-09-10 15:05 UTC (permalink / raw)
To: lartc
Hi, I'm using HTB for bandwidth control, but i'm still not sure how to
account the traffic. My config is the following: eth0 goes to internet and
eth1 to the clients(I'm shaping both ifaces). I want to log ip traffic
from and to the clients. Since htb shapes outgoing traffic I'm not sure
how to make the iptables script.
This is the script:
${IPTABLES} -N ZORBCOUNTIN
${IPTABLES} -A ZORBCOUNTIN
${IPTABLES} -N ZORBCOUNTOUT
${IPTABLES} -A ZORBCOUNTOUT
${IPTABLES} -I INPUT -i $IFACE -j ZORBCOUNTIN
${IPTABLES} -I OUTPUT -o $IFACE -j ZORBCOUNTOUT
${IPTABLES} -N ZORBCOUNT
${IPTABLES} -I FORWARD -s $NET -o $IFACE -j ZORBCOUNT
${IPTABLES} -I FORWARD -d $NET -i $IFACE -j ZORBCOUNT
grep "^" $IPS | while read IP;
do
${IPTABLES} -A ZORBCOUNT -s $IP
${IPTABLES} -A ZORBCOUNT -d $IP
done;
${IPTABLES} -A ZORBCOUNT -s $NET
${IPTABLES} -A ZORBCOUNT -d $NET
Does iptables count the shaped traffic or the whole traffic without shaping?
which interface should i use in the iptables script, eth0 or eth1 ?
Thank you.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-10 15:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-10 15:04 [LARTC] Ip traffic accounting and HTB gaston
2003-09-10 15:05 ` gaston
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox