comparison 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
comparison
equal deleted inserted replaced
106:5faa7e3aa38f 107:d70816c7c7db
32 # On prime: 32 # On prime:
33 # using digitalocean network config: 33 # using digitalocean network config:
34 # https://cloud.digitalocean.com/networking/firewalls/f68899ae-1aac-4469-b379-59ce2bbc988f/droplets?i=7c5072 34 # https://cloud.digitalocean.com/networking/firewalls/f68899ae-1aac-4469-b379-59ce2bbc988f/droplets?i=7c5072
35 apt.packages(packages=['ufw'], present=False) 35 apt.packages(packages=['ufw'], present=False)
36 36
37
38 # https://github.com/k3s-io/k3s/issues/1812 unclear, but more importantly, this has to be set
39 # on pipe in a way that works with the commands in house_net.service (and net_routes)
40 server.shell(commands=[
41 'update-alternatives --set iptables /usr/sbin/iptables-legacy',
42 'update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy',
43 ])
44 # needs reboot if this changed
37 45
38 server.sysctl(key='net.ipv6.conf.all.disable_ipv6', value=1, persist=True) 46 server.sysctl(key='net.ipv6.conf.all.disable_ipv6', value=1, persist=True)
39 47
40 if is_wifi_pi: 48 if is_wifi_pi:
41 files.put(dest="/etc/network/interfaces.d/wlan0", src="files/pi_wlan0_powersave") 49 files.put(dest="/etc/network/interfaces.d/wlan0", src="files/pi_wlan0_powersave")