Mercurial > code > home > repos > infra
diff net.py @ 107:d70816c7c7db
fix pipe net forwarding after update to ubuntu 22.04
author | drewp |
---|---|
date | Tue, 19 Jul 2022 17:40:02 -0700 |
parents | 8b8ef9d8f0fd |
children | 8012f6095220 |
line wrap: on
line diff
--- a/net.py Tue Jul 19 17:39:12 2022 -0700 +++ b/net.py Tue Jul 19 17:40:02 2022 -0700 @@ -35,6 +35,14 @@ apt.packages(packages=['ufw'], present=False) +# https://github.com/k3s-io/k3s/issues/1812 unclear, but more importantly, this has to be set +# on pipe in a way that works with the commands in house_net.service (and net_routes) +server.shell(commands=[ + 'update-alternatives --set iptables /usr/sbin/iptables-legacy', + 'update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy', +]) +# needs reboot if this changed + server.sysctl(key='net.ipv6.conf.all.disable_ipv6', value=1, persist=True) if is_wifi_pi: