Mercurial > code > home > repos > infra
diff templates/net/house_net.service.j2 @ 107:d70816c7c7db
fix pipe net forwarding after update to ubuntu 22.04
author | drewp |
---|---|
date | Tue, 19 Jul 2022 17:40:02 -0700 |
parents | 122ba5444176 |
children |
line wrap: on
line diff
--- a/templates/net/house_net.service.j2 Tue Jul 19 17:39:12 2022 -0700 +++ b/templates/net/house_net.service.j2 Tue Jul 19 17:40:02 2022 -0700 @@ -6,7 +6,7 @@ [Service] Type=oneshot -ExecStart=/usr/sbin/iptables -A POSTROUTING --table nat --out-interface eth0 --jump MASQUERADE +ExecStart=sh -c "sysctl net.ipv4.ip_forward=1 && /usr/sbin/iptables -A POSTROUTING --table nat --out-interface eth0 --jump MASQUERADE" RemainAfterExit=yes