mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-21 19:52:52 +00:00
add firewall rules
This commit is contained in:
parent
5861e0d3f5
commit
5ce764b429
2 changed files with 4 additions and 2 deletions
|
@ -165,7 +165,6 @@
|
|||
services.openssh.enable = true;
|
||||
|
||||
# Open ports in the firewall.
|
||||
networking.firewall.allowedTCPPorts = [80 443 7860];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
# Or disable the firewall altogether.
|
||||
# networking.firewall.enable = false;
|
||||
|
|
|
@ -9,7 +9,10 @@ _: {
|
|||
|
||||
nftables.enable = true;
|
||||
|
||||
firewall.trustedInterfaces = ["incusbr0" "virbr0"];
|
||||
firewall = {
|
||||
allowedTCPPorts = [80 443];
|
||||
trustedInterfaces = ["incusbr0" "virbr0"];
|
||||
};
|
||||
|
||||
extraHosts = ''
|
||||
185.199.108.133 raw.githubusercontent.com
|
||||
|
|
Loading…
Reference in a new issue