1 |
On Thursday 21 June 2007 05:22:21 foringer@×××××.com wrote: |
2 |
> You can use iptables counters and some scripting on bash. Most of the |
3 |
> people do it by hands, because writing huge billing system is to |
4 |
> comprehensive :) |
5 |
|
6 |
You could do it that way, but it rather silly since the kernel has all kinds |
7 |
of support for traffic control and shaping. |
8 |
|
9 |
Shorewall may be able to handle the task, and it is fairly friendly. |
10 |
|
11 |
If shorewall can't do what you need you'll need to look into the CLI to the |
12 |
kernel's traffic control/shaping/queuing tables: tc. Some examples and |
13 |
discussion are in the "Linux Advanced Routing & Traffic Control HOWTO". It's |
14 |
part of The Linux Documentation Project so it can be found either there [ |
15 |
http://tldp.org/HOWTO/Adv-Routing-HOWTO/ ] or at it's own little corner of |
16 |
the web [ http://lartc.org/ ]. It's old, but still mostly useful. |
17 |
|
18 |
I can also send you some scripts built around tc for my own little home |
19 |
network that *might* be useful as examples. |
20 |
|
21 |
Also, foringer: |
22 |
A: Because it reverses the order of the conversation. |
23 |
Q: Why is top-posting so annoying? |
24 |
A: Top-posting. |
25 |
Q: What's the most annoying thing on mailing list and newsgroups? |
26 |
|
27 |
-- |
28 |
Boyd Stephen Smith Jr. ,= ,-_-. =. |
29 |
bss03@××××××××××.net ((_/)o o(\_)) |
30 |
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' |
31 |
http://iguanasuicide.org/ \_/ |