From: Fabrice MARIE <fabrice@celestix.com>
To: Alexey Talikov <alexey_talikov@texlab.com.uz>,
SB CH <chulmin2@hotmail.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: quota and time patch.
Date: Fri, 27 Sep 2002 13:00:01 +0800 [thread overview]
Message-ID: <200209271300.01203.fabrice@celestix.com> (raw)
In-Reply-To: <1832391719.20020927092901@texlab.com.uz>
On Friday 27 September 2002 12:29, Alexey Talikov wrote:
> Hello SB,
> It is only example don't use it in real setup !!!!!!!
> Add your additional rules for filtering !!!!!!!!!!!!!
> [...]
> iptables -A user2 -m time --timestart 08:00 --timestop 09:00 --days \
> Mon,Tue,Wed,Thu,Fri -m quota --quota 10485760 -j ACCEPT
> iptables -A user2 -m time --timestart 09:00 --timestop 10:00 --days \
> Mon,Tue,Wed,Thu,Fri -m quota --quota 10485760 -j ACCEPT
> .........
> iptables -A user2 -m time --timestart 16:00 --timestop 17:00 --days \
> Mon,Tue,Wed,Thu,Fri -m quota --quota 10485760 -j ACCEPT
> .........
> # You can limit only upload or only download F.E. if you wish.
> # Sorry for my pure English :((
> -----------------------------------
> mailto:alexey_talikov@texlab.com.uz
> BR
> Alexey Talikov
> FORTEK
> -----------------------------------
Hello Alexey,
Well, yes, it would work :) But it means every day you
would have to remove & re-add your rules, because when the quota is
reached, it won't be reseted the next day automatically. Besides
a quota per hour/sec or min match (modification of the quota match)
would be a lot more elegant don't you think ? It's impressive
to see what people can come up with when you give them a hammer ;-)
Have a nice day,
Fabrice.
--
Fabrice MARIE
Senior R&D Engineer
Celestix Networks
http://www.celestix.com/
"Silly hacker, root is for administrators"
-Unknown
prev parent reply other threads:[~2002-09-27 5:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-27 2:30 quota and time patch SB CH
2002-09-27 3:27 ` Fabrice MARIE
2002-09-27 4:29 ` Alexey Talikov
2002-09-27 5:00 ` Fabrice MARIE [this message]
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=200209271300.01203.fabrice@celestix.com \
--to=fabrice@celestix.com \
--cc=alexey_talikov@texlab.com.uz \
--cc=chulmin2@hotmail.com \
--cc=netfilter@lists.netfilter.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.