Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable networking.firewall by default #12957

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions nixos/modules/installer/tools/nixos-generate-config.pl
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ sub multiLineList {
# networking.hostName = "nixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.

networking.firewall.enable = true;

# Select internationalisation properties.
# i18n = {
# consoleFont = "Lat2-Terminus16";
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/firewall.nix
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ in

networking.firewall.enable = mkOption {
type = types.bool;
default = true;
default = versionOlder config.system.stateVersion "16.03";
description =
''
Whether to enable the firewall. This is a simple stateful
Expand Down