Limit the capabilities of what fail2ban service can do. Taken from ArchLinux wiki.
This commit is contained in:
parent
7e7392b8ad
commit
6adfb647ff
@ -118,6 +118,7 @@ in
|
||||
{ ExecStart = "${pkgs.fail2ban}/bin/fail2ban-server -f";
|
||||
ReadOnlyDirectories = "/";
|
||||
ReadWriteDirectories = "/var/run/fail2ban";
|
||||
CapabilityBoundingSet="CAP_DAC_READ_SEARCH CAP_NET_ADMIN CAP_NET_RAW";
|
||||
};
|
||||
|
||||
postStart =
|
||||
|
Loading…
Reference in New Issue
Block a user