Web Hosting Talk







View Full Version : Cpanel not showing shell tarffic.....?


WHdot
07-11-2003, 05:47 AM
I believe I understood that cpanel(/whm) does not calculate all traffic, namely shell traffic (maybe other traffic?) if this is the case, How would one be able to track the REAL bandwidth usage?

Shannon
07-11-2003, 01:06 PM
Put each client on a seperate IP, and only inform them of that IP.... then monitor by IP... (I believe Bandmin monitors by IP)

Problem, there's absolutely nothing stopping them from sshing in on the servers main IP (or another IP)

and any traffic they generate from within the shell (ie: Wget/curl/etc) will be go against the servers main IP anyway, regardless of which IP they use.

So basically, 100% full proof, no ways around it? Put each client on a seperate box and monitor at the ethernet switch. ;)

Or many a VPS/VDS situation, where each client is 'locked' on a specific IP... unsure how well that works in practice though..

jarek
07-11-2003, 04:20 PM
Originally posted by WHdot
I believe I understood that cpanel(/whm) does not calculate all traffic, namely shell traffic (maybe other traffic?) if this is the case, How would one be able to track the REAL bandwidth usage?

There are some ways to solve this problem. In short time I found two solutions (for FreeBSD):

1) Create jail (8) for each user. Give different IP to each jail. Next, count traffic from/to this IP.

2) ipfw (8) can filter packets by uid/gid. Create pipes for users and next check ipfw stats (it shows number of bytes and packets transfered via pipe)

IMO there are more solutions, but it requires more time to find it :).