Skip to content

Commit 1197d09

Browse files
authored
Integrate apache mod reqtimeout to foil slowloris-like attacks etc (#139)
* Integrate apache mod reqtimeout to foil slowloris-like attacks and in general drop slow resource hogging clients after a while.
1 parent 0ef69fe commit 1197d09

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

.spellcheck-wordlist.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,4 +366,6 @@ HTML
366366
html
367367
balancer
368368
JupyterHub
369-
SSLProxyCACertificateFile
369+
SSLProxyCACertificateFile
370+
ANTISLOWLORIS
371+
slowloris

Dockerfile.rocky9

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ ARG TWOFACTOR_AUTH_APPS=""
128128
ARG ENABLE_PEERS=True
129129
ARG ENABLE_QUOTA=False
130130
ARG ENABLE_ACCOUNTING=False
131+
ARG ENABLE_ANTISLOWLORIS=False
131132
ARG PEERS_MANDATORY=False
132133
ARG PEERS_EXPLICIT_FIELDS=""
133134
ARG PEERS_CONTACT_HINT="authorized to invite you as peer"
@@ -1033,6 +1034,7 @@ ARG TWOFACTOR_AUTH_APPS
10331034
ARG ENABLE_PEERS
10341035
ARG ENABLE_QUOTA
10351036
ARG ENABLE_ACCOUNTING
1037+
ARG ENABLE_ANTISLOWLORIS
10361038
ARG PEERS_MANDATORY
10371039
ARG PEERS_EXPLICIT_FIELDS
10381040
ARG PEERS_CONTACT_HINT
@@ -1247,6 +1249,7 @@ RUN ./generateconfs.py --source=. \
12471249
--gdp_id_scramble=${GDP_ID_SCRAMBLE} --gdp_path_scramble=${GDP_PATH_SCRAMBLE} \
12481250
--enable_quota=${ENABLE_QUOTA} --quota_backend="${QUOTA_BACKEND}" \
12491251
--quota_update_interval=${QUOTA_UPDATE_INTERVAL} \
1252+
--enable_antislowloris=${ENABLE_ANTISLOWLORIS} \
12501253
--quota_user_limit=${QUOTA_USER_LIMIT} --quota_vgrid_limit=${QUOTA_VGRID_LIMIT} \
12511254
--enable_accounting=${ENABLE_ACCOUNTING} --accounting_update_interval=${ACCOUNTING_UPDATE_INTERVAL} \
12521255
--storage_protocols="${STORAGE_PROTOCOLS}" \

doc/source/sections/configuration/variables.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,9 @@ Variables
440440
* - ENABLE_ACCOUNTING
441441
- False
442442
- Enable additional storage accounting daemon and integration in the user pages.
443+
* - ENABLE_ANTISLOWLORIS
444+
- False
445+
- Enable additional request timeout integration in apache to help foil slowloris-like attacks and drop resource hogging clients.
443446
* - ENABLE_GDP
444447
- False
445448
- Enable GDP mode for sensitive data with a lot of restrictions on access and logging

0 commit comments

Comments
 (0)