All of lore.kernel.org
 help / color / mirror / Atom feed
* Limit bandwidth per-user (uid/gid)
@ 2013-12-22 17:10 Paride Legovini
  2013-12-22 18:00 ` Joseph Santaniello
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Paride Legovini @ 2013-12-22 17:10 UTC (permalink / raw)
  To: lartc

Dear all,

I'm working in an Antarctic research station where our connection to the
Internet is a 512kbps satellite link.

I want to set up a server where each research project has an account
where they send data via sftp or rsync; this data is then transferred
overnight to a server in Europe. My idea is to use a separate cronjob
or daemon for each user that runs with the user's privileges.

What I want to do is:

1. Limit the total bandwidth that a group (GID) can generate. There
   should be separate limits for inbound and outbound traffic.

2. Limit the bandwidth per-user (UID), so if the GID is allowed to
   generate 384kbps of traffic, and 3 users are using the network, each
   user can at most benefit of 128kbps. If there's only one user he gets
   all the 384kbps.
   Again there should be different limits for inbound and outbound
   traffic.
   This should work regardless the number of connections the user makes.

I played a bit with iptables and tc, but the only way I found to do
something like this is to manually set a different mark for each user
and then use tc, but I'd prefer a solution where there's no need to set
up any rule manually if a user is added or removed. Also, the
--uid-owner option works only for outbound traffic.

Do you have any suggestion?
I think that you understood the problem, so even if a different approach
comes to your mind please let me know.

Thank you,

PL


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-01-03  0:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-22 17:10 Limit bandwidth per-user (uid/gid) Paride Legovini
2013-12-22 18:00 ` Joseph Santaniello
2013-12-23  3:22 ` Carl-Daniel Hailfinger
2013-12-23  6:18 ` Paride Legovini
2013-12-23  7:12 ` Paride Legovini
2013-12-23 15:38 ` Erik Auerswald
2013-12-23 16:07 ` Paride Legovini
2013-12-23 16:24 ` Joseph Santaniello
2014-01-02 22:33 ` Dave Taht
2014-01-03  0:10 ` Rick Jones

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.