mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-30 22:57:55 +00:00
hosts/plover: update firewall and networking setup
This commit is contained in:
parent
96ca9d3685
commit
6e3dd18633
@ -10,12 +10,12 @@ in
|
||||
config = lib.mkIf cfg.enable {
|
||||
networking = {
|
||||
nftables.enable = true;
|
||||
domain = "foodogsquared.one";
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [
|
||||
22 # Secure Shells.
|
||||
];
|
||||
|
||||
# Secure Shells
|
||||
allowedTCPPorts = [ 22 ];
|
||||
allowedUDPPorts = [ 22 ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -77,10 +77,8 @@ in
|
||||
domains = [ config.networking.domain ];
|
||||
|
||||
routes = lib.singleton {
|
||||
routeConfig = {
|
||||
Gateway = wan.ipv4Gateway;
|
||||
GatewayOnLink = true;
|
||||
};
|
||||
Gateway = wan.ipv4Gateway;
|
||||
GatewayOnLink = true;
|
||||
};
|
||||
|
||||
linkConfig.RequiredForOnline = "routable";
|
||||
|
Loading…
Reference in New Issue
Block a user