mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2025-02-21 23:30:02 +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;
|
services.openssh.enable = true;
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
networking.firewall.allowedTCPPorts = [80 443 7860];
|
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
# networking.firewall.enable = false;
|
# networking.firewall.enable = false;
|
||||||
|
|
|
@ -9,7 +9,10 @@ _: {
|
||||||
|
|
||||||
nftables.enable = true;
|
nftables.enable = true;
|
||||||
|
|
||||||
firewall.trustedInterfaces = ["incusbr0" "virbr0"];
|
firewall = {
|
||||||
|
allowedTCPPorts = [80 443];
|
||||||
|
trustedInterfaces = ["incusbr0" "virbr0"];
|
||||||
|
};
|
||||||
|
|
||||||
extraHosts = ''
|
extraHosts = ''
|
||||||
185.199.108.133 raw.githubusercontent.com
|
185.199.108.133 raw.githubusercontent.com
|
||||||
|
|
Loading…
Reference in a new issue