Networking Forums

Networking Forums > Computer Networking > Linux Networking > linux traffic control and accounting

Reply
Thread Tools Display Modes

linux traffic control and accounting

 
 
mnis
Guest
Posts: n/a

 
      04-06-2005, 06:03 PM
Hi, can you recommend me software for traffic control and accounting.
I've been using ipac-ng so far but I need something with more features.
I also need to block internet access to users when they reach specified
number of MB.

Thanks.
 
Reply With Quote
 
 
 
 
os.junkie@gmail.com
Guest
Posts: n/a

 
      04-07-2005, 12:32 AM
Try -

http://www.knowplace.org/shaper/

mnis wrote:
> Hi, can you recommend me software for traffic control and accounting.
> I've been using ipac-ng so far but I need something with more

features.
> I also need to block internet access to users when they reach

specified
> number of MB.
>
> Thanks.


 
Reply With Quote
 
Mihai Osian
Guest
Posts: n/a

 
      04-07-2005, 07:42 AM
mnis wrote:

> Hi, can you recommend me software for traffic control and accounting.
> I've been using ipac-ng so far but I need something with more features.
> I also need to block internet access to users when they reach
> specified number of MB.
>
> Thanks.


For traffic accounting I tried several things and in the end I stopped
at pmacct. It is based on libpcap, not on iptables rules. For limiting
the traffic I don't know - you can try to run a cron script to verify
the traffic and block the users that don't behave.

Mihai
 
Reply With Quote
 
wideangle@gmail.com
Guest
Posts: n/a

 
      04-07-2005, 08:11 AM
Managing traffic and accounting are sometimes a great headache for
admins ...

Here is one of the great link ...

http://www.lartc.org : Linux Advanced Routing and Traffic Control HOWTO


TC and CBQ seem to make out a great part in
(http://www.tldp.org/HOWTO/Adv-Routing-HOWTO.html) but you might visit
www.shorewall.net/ as well.

And should you want a commercial product (provided, if you want to
spend money), try something like 24online ..
http://www.24onlinebilling.com/

Raqueeb Hassan
Bangladesh

 
Reply With Quote
 
mnis
Guest
Posts: n/a

 
      04-14-2005, 08:02 AM
Mihai Osian wrote:
> mnis wrote:
>
>> Hi, can you recommend me software for traffic control and accounting.
>> I've been using ipac-ng so far but I need something with more features.
>> I also need to block internet access to users when they reach
>> specified number of MB.
>>
>> Thanks.

>
>
> For traffic accounting I tried several things and in the end I stopped
> at pmacct. It is based on libpcap, not on iptables rules. For limiting
> the traffic I don't know - you can try to run a cron script to verify
> the traffic and block the users that don't behave.
>
> Mihai



Can I use pmacctd to monitor multiple network interfaces or do I have to
start a new instance of pmacctd with its own config fajl for every
interface ?
 
Reply With Quote
 
Coenraad Loubser
Guest
Posts: n/a

 
      04-14-2005, 02:59 PM
mnis wrote:
> Mihai Osian wrote:
>
>> mnis wrote:
>>
>>> Hi, can you recommend me software for traffic control and accounting.
>>> I've been using ipac-ng so far but I need something with more features.
>>> I also need to block internet access to users when they reach
>>> specified number of MB.
>>>
>>> Thanks.

>>
>>
>>
>> For traffic accounting I tried several things and in the end I
>> stopped at pmacct. It is based on libpcap, not on iptables rules. For
>> limiting the traffic I don't know - you can try to run a cron script
>> to verify the traffic and block the users that don't behave.
>>
>> Mihai

>
>
>
> Can I use pmacctd to monitor multiple network interfaces or do I have to
> start a new instance of pmacctd with its own config fajl for every
> interface ?



I'm utterly lazy - anyone got a config file handy to monitor only
local<->remote packets? I dont care about the subnets.... wont you post
it please?

I've also tried various packages, and pmacct seems best - uses least cpu.

Multiple interfaces? I have no answer. I can imagine, check the config
format docs... the configs are pretty versatile... then again, no
problem with running 2 instances is there?

Another cool feature would be to count various types of traffic - ie..
http,smtp,27000-27025,etc...

....I'm awake when my world is half asleep
And lazy
 
Reply With Quote
 
mnis
Guest
Posts: n/a

 
      04-14-2005, 04:06 PM
Coenraad Loubser wrote:
> mnis wrote:
>
>> Mihai Osian wrote:
>>
>>> mnis wrote:
>>>
>>>> Hi, can you recommend me software for traffic control and accounting.
>>>> I've been using ipac-ng so far but I need something with more features.
>>>> I also need to block internet access to users when they reach
>>>> specified number of MB.
>>>>
>>>> Thanks.
>>>
>>>
>>>
>>>
>>> For traffic accounting I tried several things and in the end I
>>> stopped at pmacct. It is based on libpcap, not on iptables rules. For
>>> limiting the traffic I don't know - you can try to run a cron script
>>> to verify the traffic and block the users that don't behave.
>>>
>>> Mihai

>>
>>
>>
>>
>> Can I use pmacctd to monitor multiple network interfaces or do I have
>> to start a new instance of pmacctd with its own config fajl for every
>> interface ?

>
>
>
> I'm utterly lazy - anyone got a config file handy to monitor only
> local<->remote packets? I dont care about the subnets.... wont you post
> it please?
>
> I've also tried various packages, and pmacct seems best - uses least cpu.
>
> Multiple interfaces? I have no answer. I can imagine, check the config
> format docs... the configs are pretty versatile... then again, no
> problem with running 2 instances is there?
>
> Another cool feature would be to count various types of traffic - ie..
> http,smtp,27000-27025,etc...
>
> ...I'm awake when my world is half asleep
> And lazy


Here is my password

!
! pmacctd configuration example
!
! Did you know CONFIG-KEYS contains the detailed list of all
configuration keys
! supported by 'nfacctd' and 'pmacctd' ?
!
! debug: true
!
interface: eth0
daemonize: true
aggregate: src_mac,dst_mac,vlan,src_host,dst_host,src_port,ds t_port,proto

plugins: mysql
sql_db: pmacct
sql_table: acct_v2
sql_table_version: 2
sql_passwd: thisispassword
sql_user: pmacct
sql_refresh_time: 90
sql_host: localhost
sql_history: 5m


It seems that you cannot specify two or interfaces in one config.
You can count various types of traffic. You have fields dst_port and
src_port. You can also count on different protocols (tcp, udp, icmp).


 
Reply With Quote
 
Mihai Osian
Guest
Posts: n/a

 
      04-15-2005, 07:40 AM
mnis wrote:

[snip]

>
>
> It seems that you cannot specify two or interfaces in one config.
> You can count various types of traffic. You have fields dst_port and
> src_port. You can also count on different protocols (tcp, udp, icmp).
>
>


Indeed, I use two separate instances of pmacct, each with its own
configuration file - one for the internal and one for the external
interface.

Mihai

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
linux traffic control tc token bucket parameters Darth Linux Networking 2 05-05-2007 11:48 PM
Linux Traffic Control (tc) how to ? Darth Linux Networking 0 04-27-2007 10:01 PM
traffic control in linux Shashank Khanvilkar Linux Networking 1 06-16-2005 11:39 PM
Linux Traffic Control rahulhsaxena Linux Networking 0 06-04-2005 03:57 PM
hotspot access control /accounting zimmy Wireless Internet 3 01-03-2004 02:13 PM



1 2 3 4 5 6 7 8 9 10 11