Merge pull request #82801 from Izorkin/fail2ban
nixos/fail2ban: add warning if work fail2ban without firewall
This commit is contained in:
commit
2edf67b62f
@ -216,6 +216,10 @@ in
|
|||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
|
warnings = mkIf (config.networking.firewall.enable == false || config.networking.nftables.enable == false) [
|
||||||
|
"fail2ban can not be used without a firewall"
|
||||||
|
];
|
||||||
|
|
||||||
environment.systemPackages = [ cfg.package ];
|
environment.systemPackages = [ cfg.package ];
|
||||||
|
|
||||||
environment.etc = {
|
environment.etc = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user