From d67df13ef1dc69c7f39cc5486ca859b8a617b6b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Mon, 30 Jun 2014 18:09:27 +0200 Subject: [PATCH] [firewall] La DSI a dit oui \o/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 150 Mb/s en journée * 8 Gio d'upload (par principe, mais en vrai, ils ne s'intéressent plus à la limitation d'upload) --- gestion/config/firewall.py | 2 +- gestion/config/upload.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gestion/config/firewall.py b/gestion/config/firewall.py index 2ceaf0e6..fa5746db 100644 --- a/gestion/config/firewall.py +++ b/gestion/config/firewall.py @@ -44,7 +44,7 @@ mask = [24] now=datetime.datetime.now() if now.hour >= 6 and now.hour < 19 and now.weekday() < 5 and not is_ferie(): #: Débit maximal autorisé - debit_max = 100 # mbits per second en connexion de jour + debit_max = 150 # mbits per second en connexion de jour #: Est-ce qu'on est en connexion de jour ou de nuit/week-end ? debit_jour = True else: diff --git a/gestion/config/upload.py b/gestion/config/upload.py index c51efcf2..d018f34e 100644 --- a/gestion/config/upload.py +++ b/gestion/config/upload.py @@ -8,10 +8,10 @@ exempt = [ ['138.231.136.0/21', '138.231.0.0/16'], ['138.231.148.0/22', '138.231.0.0/16'] ] #: limite soft -soft = 300 # Mio/24h glissantes +soft = 1024 # Mio/24h glissantes #: limite hard -hard = 3789 # Mio/24h glissantes +hard = 8192 # Mio/24h glissantes #: max déconnexions max_decos = 7 @@ -25,5 +25,5 @@ disconnect_mail_hard = True expediteur = "disconnect@crans.org" #: Seuil pour report dans statistiques.py -stats_upload_seuil = 300 * 1024 * 1024 # Mio +stats_upload_seuil = 200 * 1024 * 1024 # Mio pretty_seuil = "%s Mio" % (stats_upload_seuil/1024/1024,)