Some of the configuration to accomplish a stable tor service needs to be done in this program and some needs to happen elsewhere in the system. The split was largely determined experimentally. Here is an overview of what happens where.
pi3g-netconf:
- restarting dhcp
- restarting hostapd
- the entire configuration of the wireless interface
- rewriting the tor configuration
- reloading the tor configuration
OS:
- configuration of the wired interfaces
- iptables
- calling pi3g-netconf (udev, /etc/network/if-up.d)
- keeping the tor service alive (restartd)