mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
hosts/ni: enable nftables-based firewall
This commit is contained in:
parent
55547bddc7
commit
6ae080c68d
@ -177,8 +177,25 @@ in
|
||||
];
|
||||
};
|
||||
|
||||
# We'll go with a software firewall. We're mostly configuring it as if we're
|
||||
# using a server even though the chances of that is pretty slim.
|
||||
networking = {
|
||||
nftables.enable = true;
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedUDPPorts = [ wireguardPort ];
|
||||
allowedTCPPorts = [
|
||||
22 # Secure Shells.
|
||||
|
||||
80 # HTTP servers.
|
||||
433 # HTTPS servers.
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "22.11"; # Yes! I read the comment!
|
||||
|
||||
# Trying to be very portable with LDAP.
|
||||
users.ldap = {
|
||||
enable = true;
|
||||
base = "dc=foodogsquared,dc=one";
|
||||
|
Loading…
Reference in New Issue
Block a user