diff options
author | tv <tv@krebsco.de> | 2016-02-13 20:58:27 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-02-13 21:00:27 +0100 |
commit | 1c5c7af4b04fc967b664b2102cfc03336f7a501c (patch) | |
tree | 3b7541b440d8586d2bcc709cbcb33df61129895d /tv | |
parent | d08dab713bdd5bb61e47ed5a53c4ef530e704599 (diff) |
xu-qemu0: net.ipv4.ip_forward = 1
Diffstat (limited to 'tv')
-rw-r--r-- | tv/2configs/xu-qemu0.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tv/2configs/xu-qemu0.nix b/tv/2configs/xu-qemu0.nix index 4d39031..9962ca5 100644 --- a/tv/2configs/xu-qemu0.nix +++ b/tv/2configs/xu-qemu0.nix @@ -20,7 +20,6 @@ in # 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 domain -j ACCEPT -# TODO echo 1 > /proc/sys/net/ipv4/ip_forward with lib; @@ -30,6 +29,8 @@ with lib; systemd.network.enable = true; services.resolved.enable = mkForce false; + boot.kernel.sysctl."net.ipv4.ip_forward" = 1; + systemd.network.networks.qemubr0 = { matchConfig.Name = "qemubr0"; address = ["10.56.0.1/24"]; |