-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from natsys/http-dos-protector
HTTP DoS protection module
- Loading branch information
Showing
14 changed files
with
1,134 additions
and
438 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# | ||
# Tempesta FW configuration: "frang" classifier. | ||
# | ||
# "include" directives are not supported yet, so paste the configuration to | ||
# the main configuration file. | ||
|
||
# TAG: frang_limits | ||
# | ||
# The section containing static limits for the classifier. | ||
# | ||
# Syntax: | ||
# frang_limits { | ||
# request_rate NUM; | ||
# request_burst NUM; | ||
# connection_rate NUM; | ||
# connection_burst NUM; | ||
# concurrent_connections NUM; | ||
# client_header_timeout NUM; | ||
# client_body_timeout NUM; | ||
# http_uri_len NUM; | ||
# http_field_len NUM; | ||
# http_body_len NUM; | ||
# http_host_required true|false; | ||
# http_methods [METHOD]...; | ||
# http_ct_required true|false; | ||
# http_ct_vals ["CONTENT_TYPE"]...; | ||
# } | ||
# | ||
# - options with names *_rate define requests/connections rate per second. | ||
# - *_burst are temporal burst for 1/FRANG_FREQ of second. | ||
# - http_* are static limits for contents of a HTTP request. | ||
# | ||
# Example: | ||
# frang_limits { | ||
# request_rate 20; | ||
# request_burst 15; | ||
# connection_rate 8; | ||
# concurrent_connections 8; | ||
# client_header_timeout 20; | ||
# client_body_timeout 10; | ||
# http_uri_len 1024; | ||
# http_field_len 256; | ||
# http_ct_required false; | ||
# http_methods get post head; | ||
# http_ct_vals "text/plain" "text/html"; | ||
# } | ||
# | ||
# Default: | ||
# All limits are disabled (the values are set to zero/false/empty). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.