add firewall rules

This commit is contained in:
Aditya 2024-04-10 23:46:56 +05:30
parent 5861e0d3f5
commit 5ce764b429
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU
2 changed files with 4 additions and 2 deletions

View file

@ -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;

View file

@ -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