Set firewall rules.
This commit is contained in:
parent
71934ea2a5
commit
440aca54c7
1 changed files with 15 additions and 4 deletions
|
@ -30,10 +30,20 @@
|
|||
networking = {
|
||||
hostName = "router";
|
||||
hostId = "91312b0b";
|
||||
firewall.allowedTCPPorts = [
|
||||
80
|
||||
443
|
||||
];
|
||||
firewall = {
|
||||
interfaces.lan = {
|
||||
allowedUDPPorts = [
|
||||
53
|
||||
67
|
||||
];
|
||||
allowedTCPPorts = [
|
||||
53
|
||||
67
|
||||
80
|
||||
443
|
||||
];
|
||||
};
|
||||
};
|
||||
useNetworkd = true;
|
||||
bridges = {
|
||||
lan = {
|
||||
|
@ -98,6 +108,7 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
caddy = {
|
||||
enable = true;
|
||||
virtualHosts."router.tailc50184.ts.net".extraConfig = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue