mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +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!
|
system.stateVersion = "22.11"; # Yes! I read the comment!
|
||||||
|
|
||||||
|
# Trying to be very portable with LDAP.
|
||||||
users.ldap = {
|
users.ldap = {
|
||||||
enable = true;
|
enable = true;
|
||||||
base = "dc=foodogsquared,dc=one";
|
base = "dc=foodogsquared,dc=one";
|
||||||
|
Loading…
Reference in New Issue
Block a user