Compare commits
3 commits
bc1e2d3a2e
...
9c7ad280f9
Author | SHA1 | Date | |
---|---|---|---|
9c7ad280f9 | |||
e6fce28ee0 | |||
f08cbac83f |
3 changed files with 7 additions and 7 deletions
|
@ -9,9 +9,9 @@ import time
|
||||||
|
|
||||||
|
|
||||||
# CPU usage threshold in percent
|
# CPU usage threshold in percent
|
||||||
CPU_THRESHOLD = 35
|
CPU_THRESHOLD = 50
|
||||||
# Memory usage threshold in GB
|
# Memory usage threshold in GB
|
||||||
MEMORY_THRESHOLD = 2.75
|
MEMORY_THRESHOLD = 3.25
|
||||||
# Disk usage threshold in GB
|
# Disk usage threshold in GB
|
||||||
DISK_LOCAL_THRESHOLD = 25
|
DISK_LOCAL_THRESHOLD = 25
|
||||||
DISK_SMB_THRESHOLD = 120
|
DISK_SMB_THRESHOLD = 120
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
services:
|
services:
|
||||||
mailserver:
|
mailserver:
|
||||||
container_name: mailserver
|
container_name: mailserver
|
||||||
image: docker.io/stalwartlabs/mail-server:v0.9.3
|
image: docker.io/stalwartlabs/mail-server:v0.10.0
|
||||||
restart: always
|
restart: always
|
||||||
user: "{{ users['mailserver'] }}:{{ users['mailserver'] }}"
|
user: "{{ users['mailserver'] }}:{{ users['mailserver'] }}"
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -41,15 +41,15 @@ table inet filter {
|
||||||
# Rate limiting
|
# Rate limiting
|
||||||
meta nfproto ipv4 meter ratelimit4 \
|
meta nfproto ipv4 meter ratelimit4 \
|
||||||
{ ip saddr limit rate over 75/second burst 15 packets } \
|
{ ip saddr limit rate over 75/second burst 15 packets } \
|
||||||
add @blackhole_ipv4 { ip saddr }
|
add @blackhole_ipv4 { ip saddr } counter
|
||||||
meta nfproto ipv6 meter ratelimit6 \
|
meta nfproto ipv6 meter ratelimit6 \
|
||||||
{ ip6 saddr limit rate over 75/second burst 15 packets } \
|
{ ip6 saddr limit rate over 75/second burst 15 packets } \
|
||||||
add @blackhole_ipv6 { ip6 saddr }
|
add @blackhole_ipv6 { ip6 saddr } counter
|
||||||
# Max concurrent connections
|
# Max concurrent connections
|
||||||
meta nfproto ipv4 meter connlimit4 \
|
meta nfproto ipv4 meter connlimit4 \
|
||||||
{ ip saddr ct count over 100 } add @blackhole_ipv4 { ip saddr }
|
{ ip saddr ct count over 100 } add @blackhole_ipv4 { ip saddr } counter
|
||||||
meta nfproto ipv6 meter connlimit6 \
|
meta nfproto ipv6 meter connlimit6 \
|
||||||
{ ip6 saddr ct count over 100 } add @blackhole_ipv6 { ip6 saddr }
|
{ ip6 saddr ct count over 100 } add @blackhole_ipv6 { ip6 saddr } counter
|
||||||
|
|
||||||
# Allow ICMP
|
# Allow ICMP
|
||||||
meta l4proto icmp accept
|
meta l4proto icmp accept
|
||||||
|
|
Loading…
Reference in a new issue