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

nixos/eternal-terminal: add firewall information #71917

Merged
merged 1 commit into from Nov 18, 2019

Conversation

pingiun
Copy link
Member

@pingiun pingiun commented Oct 24, 2019

Motivation for this change

This was inspired by the openssh service, and others, which have the openFirewall option to open the port that the service uses. When enabling the service, one would expect it to work and opening firewalls is often necessary for this. As openssh has openFirewall enabled by default, I choose to do this as well.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

I added myself as a maintainer

Copy link
Contributor

@c0bw3b c0bw3b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a recurring question, see #19504
The consensus is that opening port should be a deliberate admin decision and we don't want to do it automatically. Plus you may want to make a service reachable only on some interfaces but not all.
sshd is actually the exception here, not the model. :) It's here to avoid users locking themselves out too easily.
And even if a module provides a convenience option for the default NixOS firewall, the default should be false and not true.

Maybe a simpler approach is to just mention the prerequisite in the description of the module port option.

BTW adding yourselves to maintainers-list should be a separate commit. :)

@pingiun pingiun force-pushed the eternal-terminal-open-firewall branch from ddd2b03 to 448270f Compare November 18, 2019 12:16
@pingiun pingiun requested a review from c0bw3b November 18, 2019 12:16
@pingiun pingiun force-pushed the eternal-terminal-open-firewall branch from 448270f to e7300ec Compare November 18, 2019 12:18
@c0bw3b c0bw3b changed the title nixos/eternal-terminal: add openFirewall option nixos/eternal-terminal: add firewall information Nov 18, 2019
@c0bw3b c0bw3b merged commit 823852a into NixOS:master Nov 18, 2019
dtzWill pushed a commit to dtzWill/nixpkgs that referenced this pull request Jan 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants