Add libvirt
This commit is contained in:
parent
32c28d8577
commit
9e95b2595a
2 changed files with 15 additions and 3 deletions
|
|
@ -77,12 +77,20 @@ with lib; {
|
|||
externalInterface = interfaces.wan;
|
||||
internalInterfaces = [
|
||||
interfaces.lan
|
||||
"virbr0"
|
||||
];
|
||||
};
|
||||
|
||||
firewall.extraForwardRules = ''
|
||||
tcp flags syn tcp option maxseg size set rt mtu
|
||||
'';
|
||||
firewall = {
|
||||
allowedTCPPorts = [ 5201 ];
|
||||
extraForwardRules = ''
|
||||
tcp flags syn tcp option maxseg size set rt mtu
|
||||
'';
|
||||
interfaces.virbr0 = {
|
||||
allowedTCPPorts = [ 53 ];
|
||||
allowedUDPPorts = [ 53 67 ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.radvd = {
|
||||
|
|
@ -225,5 +233,8 @@ with lib; {
|
|||
memoryPercent = 60;
|
||||
priority = 1;
|
||||
};
|
||||
|
||||
|
||||
jalr.libvirt.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ in
|
|||
services.dnsmasq = {
|
||||
enable = true;
|
||||
settings = {
|
||||
bind-interfaces = true;
|
||||
listen-address = [
|
||||
"192.168.42.1"
|
||||
"10.20.0.1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue