mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2025-02-22 07:40:01 +00:00
update incus network configuration
This commit is contained in:
parent
3f281d1744
commit
5cb5d5de84
1 changed files with 10 additions and 6 deletions
|
@ -78,6 +78,10 @@
|
||||||
unmanaged = [ "virbr0" "docker0" ];
|
unmanaged = [ "virbr0" "docker0" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.nftables.enable = true;
|
||||||
|
|
||||||
|
networking.firewall.trustedInterfaces = [ "incusbr0" ];
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "Asia/Kolkata";
|
time.timeZone = "Asia/Kolkata";
|
||||||
|
|
||||||
|
@ -120,12 +124,12 @@ networking = {
|
||||||
'';
|
'';
|
||||||
nameservers = [ "1.1.1.1" "9.9.9.9" ];
|
nameservers = [ "1.1.1.1" "9.9.9.9" ];
|
||||||
bridges = { incusbr0.interfaces = []; };
|
bridges = { incusbr0.interfaces = []; };
|
||||||
firewall.extraCommands = ''
|
# firewall.extraCommands = ''
|
||||||
iptables -A INPUT incusbr0 -j ACCEPT
|
# iptables -A INPUT incusbr0 -j ACCEPT
|
||||||
iptables -A FORWARD -o incusbr0 -j ACCEPT
|
# iptables -A FORWARD -o incusbr0 -j ACCEPT
|
||||||
iptables -A FORWARD -i incusbr0 -j ACCEPT
|
# iptables -A FORWARD -i incusbr0 -j ACCEPT
|
||||||
iptables -A OUTPUT -o incusbr0 -j ACCEPT
|
# iptables -A OUTPUT -o incusbr0 -j ACCEPT
|
||||||
'';
|
# '';
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable dde
|
# Enable dde
|
||||||
|
|
Loading…
Reference in a new issue