Skip to content

Commit

Permalink
firewall: Fix check for rpfilter on manual-config kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
shlevy committed Feb 6, 2017
1 parent 2ac2bd1 commit 714fdb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/services/networking/firewall.nix
Expand Up @@ -38,9 +38,9 @@ let

cfg = config.networking.firewall;

kernelPackages = config.boot.kernelPackages;
inherit (config.boot.kernelPackages) kernel;

kernelHasRPFilter = kernelPackages.kernel.features.netfilterRPFilter or false;
kernelHasRPFilter = ((kernel.config.isEnabled or (x: false)) "IP_NF_MATCH_RPFILTER") || (kernel.features.netfilterRPFilter or false);

helpers =
''
Expand Down

0 comments on commit 714fdb4

Please sign in to comment.