Document and test the accept rate limiting of the rich rule. Signed-off-by: Arnaud Patard <apatard@hupstream.com>tags/v1.2.0
@@ -126,6 +126,14 @@ firewalld: | |||
name: fail2ban-ssh | |||
reject: | |||
type: icmp-port-unreachable | |||
- accept: | |||
limit: "3/m" | |||
log: | |||
level: warning | |||
limit: "3/m" | |||
prefix: "http fw limit 3/m" | |||
service: http | |||
ports: | |||
# {%- if grains['id'] == 'salt.example.com' %} | |||
- comment: salt-master |
@@ -37,6 +37,13 @@ control 'zones/public.xml configuration' do | |||
<source ipset="fail2ban-ssh" /> | |||
<reject type="icmp-port-unreachable" /> | |||
</rule> | |||
<rule> | |||
<service name="http" /> | |||
<log prefix="http fw limit 3/m" level="warning"> | |||
<limit value="3/m"/> | |||
</log> | |||
<accept> <limit value="3/m"/></accept> | |||
</rule> | |||
</zone> | |||
ZONE_XML | |||
end |
@@ -134,6 +134,13 @@ values: | |||
name: fail2ban-ssh | |||
reject: | |||
type: icmp-port-unreachable | |||
- accept: | |||
limit: "3/m" | |||
log: | |||
level: warning | |||
limit: "3/m" | |||
prefix: "http fw limit 3/m" | |||
service: http | |||
services: | |||
- http | |||
- https |
@@ -134,6 +134,13 @@ values: | |||
name: fail2ban-ssh | |||
reject: | |||
type: icmp-port-unreachable | |||
- accept: | |||
limit: "3/m" | |||
log: | |||
level: warning | |||
limit: "3/m" | |||
prefix: "http fw limit 3/m" | |||
service: http | |||
services: | |||
- http | |||
- https |
@@ -134,6 +134,13 @@ values: | |||
name: fail2ban-ssh | |||
reject: | |||
type: icmp-port-unreachable | |||
- accept: | |||
limit: "3/m" | |||
log: | |||
level: warning | |||
limit: "3/m" | |||
prefix: "http fw limit 3/m" | |||
service: http | |||
services: | |||
- http | |||
- https |
@@ -134,6 +134,13 @@ values: | |||
name: fail2ban-ssh | |||
reject: | |||
type: icmp-port-unreachable | |||
- accept: | |||
limit: "3/m" | |||
log: | |||
level: warning | |||
limit: "3/m" | |||
prefix: "http fw limit 3/m" | |||
service: http | |||
services: | |||
- http | |||
- https |
@@ -134,6 +134,13 @@ values: | |||
name: fail2ban-ssh | |||
reject: | |||
type: icmp-port-unreachable | |||
- accept: | |||
limit: "3/m" | |||
log: | |||
level: warning | |||
limit: "3/m" | |||
prefix: "http fw limit 3/m" | |||
service: http | |||
services: | |||
- http | |||
- https |
@@ -134,6 +134,13 @@ values: | |||
name: fail2ban-ssh | |||
reject: | |||
type: icmp-port-unreachable | |||
- accept: | |||
limit: "3/m" | |||
log: | |||
level: warning | |||
limit: "3/m" | |||
prefix: "http fw limit 3/m" | |||
service: http | |||
services: | |||
- http | |||
- https |
@@ -134,6 +134,13 @@ values: | |||
name: fail2ban-ssh | |||
reject: | |||
type: icmp-port-unreachable | |||
- accept: | |||
limit: "3/m" | |||
log: | |||
level: warning | |||
limit: "3/m" | |||
prefix: "http fw limit 3/m" | |||
service: http | |||
services: | |||
- http | |||
- https |
@@ -134,6 +134,13 @@ values: | |||
name: fail2ban-ssh | |||
reject: | |||
type: icmp-port-unreachable | |||
- accept: | |||
limit: "3/m" | |||
log: | |||
level: warning | |||
limit: "3/m" | |||
prefix: "http fw limit 3/m" | |||
service: http | |||
services: | |||
- http | |||
- https |
@@ -134,6 +134,13 @@ values: | |||
name: fail2ban-ssh | |||
reject: | |||
type: icmp-port-unreachable | |||
- accept: | |||
limit: "3/m" | |||
log: | |||
level: warning | |||
limit: "3/m" | |||
prefix: "http fw limit 3/m" | |||
service: http | |||
services: | |||
- http | |||
- https |
@@ -134,6 +134,13 @@ values: | |||
name: fail2ban-ssh | |||
reject: | |||
type: icmp-port-unreachable | |||
- accept: | |||
limit: "3/m" | |||
log: | |||
level: warning | |||
limit: "3/m" | |||
prefix: "http fw limit 3/m" | |||
service: http | |||
services: | |||
- http | |||
- https |
@@ -134,6 +134,13 @@ values: | |||
name: fail2ban-ssh | |||
reject: | |||
type: icmp-port-unreachable | |||
- accept: | |||
limit: "3/m" | |||
log: | |||
level: warning | |||
limit: "3/m" | |||
prefix: "http fw limit 3/m" | |||
service: http | |||
services: | |||
- http | |||
- https |
@@ -134,6 +134,13 @@ values: | |||
name: fail2ban-ssh | |||
reject: | |||
type: icmp-port-unreachable | |||
- accept: | |||
limit: "3/m" | |||
log: | |||
level: warning | |||
limit: "3/m" | |||
prefix: "http fw limit 3/m" | |||
service: http | |||
services: | |||
- http | |||
- https |