mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-21 19:52:52 +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" ];
|
||||
};
|
||||
|
||||
networking.nftables.enable = true;
|
||||
|
||||
networking.firewall.trustedInterfaces = [ "incusbr0" ];
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "Asia/Kolkata";
|
||||
|
||||
|
@ -120,12 +124,12 @@ networking = {
|
|||
'';
|
||||
nameservers = [ "1.1.1.1" "9.9.9.9" ];
|
||||
bridges = { incusbr0.interfaces = []; };
|
||||
firewall.extraCommands = ''
|
||||
iptables -A INPUT incusbr0 -j ACCEPT
|
||||
iptables -A FORWARD -o incusbr0 -j ACCEPT
|
||||
iptables -A FORWARD -i incusbr0 -j ACCEPT
|
||||
iptables -A OUTPUT -o incusbr0 -j ACCEPT
|
||||
'';
|
||||
# firewall.extraCommands = ''
|
||||
# iptables -A INPUT incusbr0 -j ACCEPT
|
||||
# iptables -A FORWARD -o incusbr0 -j ACCEPT
|
||||
# iptables -A FORWARD -i incusbr0 -j ACCEPT
|
||||
# iptables -A OUTPUT -o incusbr0 -j ACCEPT
|
||||
# '';
|
||||
};
|
||||
|
||||
# Enable dde
|
||||
|
|
Loading…
Reference in a new issue