nixpkgs/nixos/modules
Sachi King 361fde84f9 Revert "nixos/firewall: fix reverse path check failures with IPsec"
The inclusion of the "meta ipsec" rule in the default reverse path
filtering breaks systems not built with specific XFRM kernel config
options.  Specifically CONFIG_XFRM must be set, which gets selected
by CONFIG_NFT_XFRM, which is hidden behind CONFIG_XFRM_USER.

These options are not selected by default in most defconfig's provided
by the kernel with the exception of some device-specific defconfigs.

These options are not set by the nix kernel common_config, and I would
argue that IPSec support does not belong in a minimal kernel as that
elevates its support status above other in-kernel VPN interfaces.

The contributor of this feature does not seem interested in working
towards a solution that does not break systems running kernels built
with "autoModules = false" while supporting this feature, and as this
silently breaks firewalls into an insecure state and poses an immediate
security issue I propose this be reverted until a solution that does not
break such systems is proposed.
https://github.com/NixOS/nixpkgs/pull/310857#discussion_r1742834970

Devices used as firewalls, if they do not have the required kernel
config, will fail to load the new firewall rules and will upon boot pass
traffic without any filtering into the internal network.

Devices exposed directly to the internet, after reboot, will boot
without filtering potentially exposing services not intended to be
exposed to the internet, such as databases.

The following platforms in nixpkgs appear to be impacted:
 - pc_simplekernel
 - pogoplug4
 - sheevaplug
 - zero-gravitas
 - zero-sugar
 - utilite
 - guruplug
 - beaglebone
 - fuloong2f_n32

References to hardware without autoModules can be found in
nixos-hardware, as well as in active third-party repos on github.

I suspect there are other users impacted that do not have their configurations
public, as autoModules = true leads to long compile times when targeting
kernels to less standard hardware or hardware with quirks that require
patches that cannot be upstreamed.

This reverts commit 3c12ef3f21.
2024-09-04 11:51:15 +10:00
..
config Fix nested quotes in fontconfig.nix 2024-09-01 15:55:12 +02:00
hardware treewide/nixos: remove with lib; part 2 (#335618) 2024-08-30 15:56:57 -07:00
i18n/input-method nixos/fcitx5: fix evaluation 2024-08-31 09:20:31 -04:00
image nixos/repart-image: fix amend script 2024-07-10 11:40:40 +02:00
installer gnome-settings-daemon{,43}: Move from gnome scope to top-level 2024-09-01 14:16:31 +02:00
misc hydron: drop 2024-08-03 20:27:19 +01:00
profiles nixos/installation-device: use a bigger hammer 2024-09-03 10:53:25 +03:00
programs mouse-actions-gui: init at 0.4.4 (#269518) 2024-09-03 19:33:49 +03:00
security treewide/nixos: remove with lib; part 1 (#335603) 2024-08-29 15:42:04 -07:00
services Revert "nixos/firewall: fix reverse path check failures with IPsec" 2024-09-04 11:51:15 +10:00
system nixos/grub: fix value precedence with optional -> mkIf (#338773) 2024-09-03 08:29:25 +02:00
tasks treewide/nixos: remove with lib; part 2 (#335618) 2024-08-30 15:56:57 -07:00
testing treewide: fix mkEnableOption usage 2024-06-14 02:41:42 -04:00
virtualisation virtualisation/azure-images: drop outdated list... (#338426) 2024-09-03 21:16:39 +02:00
module-list.nix Merge branch 'master' into add-rutorrent-service 2024-09-03 01:18:16 +00:00
rename.nix antennas: drop 2024-08-22 15:51:27 +01:00