security: enable firewall
This commit is contained in:
parent
6427297c9e
commit
1e370e35f3
3 changed files with 9 additions and 1 deletions
|
|
@ -14,6 +14,7 @@
|
||||||
snapper
|
snapper
|
||||||
|
|
||||||
./filesystem.nix
|
./filesystem.nix
|
||||||
|
./firewall.nix
|
||||||
./kernel.nix
|
./kernel.nix
|
||||||
./networking.nix
|
./networking.nix
|
||||||
|
|
||||||
|
|
|
||||||
3
hosts/fondue/firewall.nix
Normal file
3
hosts/fondue/firewall.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{ ... }: {
|
||||||
|
networking.firewall.allowedTCPPorts = [ 22 80 ];
|
||||||
|
}
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
networking.firewall.enable = false;
|
networking.firewall = {
|
||||||
|
enable = true;
|
||||||
|
allowedUDPPorts = [ 20100 ];
|
||||||
|
trustedInterfaces = [ "wg0" ];
|
||||||
|
};
|
||||||
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue