summaryrefslogtreecommitdiffstats
path: root/tv
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-02-13 20:58:27 +0100
committertv <tv@krebsco.de>2016-02-13 21:00:27 +0100
commit9a7b7dc5091b0af43fe9d6620f236878f93b3225 (patch)
tree17704281d53e816f3da266622de89f9e59cf8945 /tv
parent230c8088c8e96a990400533c780b035c8a4102de (diff)
xu-qemu0: net.ipv4.ip_forward = 1
Diffstat (limited to 'tv')
-rw-r--r--tv/2configs/xu-qemu0.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/tv/2configs/xu-qemu0.nix b/tv/2configs/xu-qemu0.nix
index 4d39031db..9962ca56a 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"];