Skip to content

tor: Relaying does not work after reboot

We are setting 'ORPort auto' in tor configuration. This means that Tor will pick random port for relaying. After this we pickup this information and open firewall ports. After a reboot, however, Tor is not picking the same port (it is not stable). It results in firewall not allowing outside clients to reach Tor relay and relaying fails. Either find a way to choose a stable port or pick a static one (perhaps the default port). Another complex solutions to listen for application startup messages from systemd, read the status and update the firewall.

Temporary work around is to enable/disable Tor from FreedomBox UI after a reboot.