xu-qemu0: net.ipv4.ip_forward = 1
This commit is contained in:
parent
230c8088c8
commit
9a7b7dc509
@ -20,7 +20,6 @@ in
|
|||||||
# TODO iptables -A POSTROUTING -t nat -j MASQUERADE
|
# TODO iptables -A POSTROUTING -t nat -j MASQUERADE
|
||||||
# TODO iptables -A INPUT -i qemubr0 -p udp -m udp --dport bootps -j ACCEPT
|
# TODO iptables -A INPUT -i qemubr0 -p udp -m udp --dport bootps -j ACCEPT
|
||||||
# TODO iptables -A INPUT -i qemubr0 -p udp -m udp --dport domain -j ACCEPT
|
# TODO iptables -A INPUT -i qemubr0 -p udp -m udp --dport domain -j ACCEPT
|
||||||
# TODO echo 1 > /proc/sys/net/ipv4/ip_forward
|
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
@ -30,6 +29,8 @@ with lib;
|
|||||||
systemd.network.enable = true;
|
systemd.network.enable = true;
|
||||||
services.resolved.enable = mkForce false;
|
services.resolved.enable = mkForce false;
|
||||||
|
|
||||||
|
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
|
||||||
|
|
||||||
systemd.network.networks.qemubr0 = {
|
systemd.network.networks.qemubr0 = {
|
||||||
matchConfig.Name = "qemubr0";
|
matchConfig.Name = "qemubr0";
|
||||||
address = ["10.56.0.1/24"];
|
address = ["10.56.0.1/24"];
|
||||||
|
Loading…
Reference in New Issue
Block a user