From: Rick Goh Siow Mong rickgoh@cyberway.com.sg
To: lartc@vger.kernel.org
Subject: [LARTC] IMPT!!! - What software to use to gauge if Bandwidth control is working/successful ??
Date: Fri, 12 Jan 2001 13:31:32 +0000 [thread overview]
Message-ID: <marc-lartc-98373940416865@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98373940416852@msgid-missing>
<PRE>I have tried IPCHAINS IP Accounting.
However, the amount of traffic as accounted for by IPCHAINS for the amount
of bandwidth going through the ports of my linux box, is not accurate at
all. In fact, the number is completely off!
Could u send me your ipchains scripts? thanks in advance.
*******************************************
Below is what i did, which give me the wrong figures. Am I missing something
here??
In rc.firewall, i added the following lines:
# To accept traf-stats for MRTG
/sbin/ipchains -N web
/sbin/ipchains -A web -j ACCEPT
/sbin/ipchains -N ftp
/sbin/ipchains -A ftp -j ACCEPT
/sbin/ipchains -N dns
/sbin/ipchains -A dns -j ACCEPT
/sbin/ipchains -N telnet
/sbin/ipchains -A telnet -j ACCEPT
/sbin/ipchains -A input -p tcp --dport www -j web
/sbin/ipchains -A output -p tcp --sport www -j web
/sbin/ipchains -A input -p udp --dport www -j web
/sbin/ipchains -A output -p udp --sport www -j web
/sbin/ipchains -A input -p tcp --dport ftp -j ftp
/sbin/ipchains -A output -p tcp --sport ftp -j ftp
/sbin/ipchains -A input -p tcp --dport domain -j dns
/sbin/ipchains -A output -p tcp --sport domain -j dns
/sbin/ipchains -A input -p udp --dport domain -j dns
/sbin/ipchains -A output -p udp --sport domain -j dns
/sbin/ipchains -A input -p tcp --dport telnet -j telnet
/sbin/ipchains -A output -p tcp --sport telnet -j telnet
traffic.sh --> the script to be run under MRTG.
#!/bin/sh
#Courtesy of xidus.net.
statname=$1
uptime=unused
stat=`cat /proc/net/ip_fwchains | grep $statname | tail -1 | awk '{print
$10}'`
echo $stat
echo $stat
echo $statname
echo $uptime
</PRE>
next prev parent reply other threads:[~2001-01-12 13:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-11 14:38 [LARTC] IMPT!!! - What software to use to gauge if Bandwidth control is working/successful ?? Rick
2001-01-11 14:46 ` bert
2001-01-11 18:34 ` Guy
2001-01-11 19:37 ` bert
2001-01-12 13:31 ` Rick [this message]
2001-01-12 14:37 ` bert
2001-01-12 14:57 ` Rick
2001-01-12 15:27 ` bert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-98373940416865@msgid-missing \
--to=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.