[Freedombox-discuss] Firewall for FreedomBox
sunil at medhas.org
Sun Apr 27 16:53:33 UTC 2014
On Sunday 27 April 2014 10:02 PM, Sunil Mohan wrote:
> On Sunday 27 April 2014 09:29 PM, James Valleroy wrote:
>> Is it possible to get the port from /var/lib/tor/state (as we do in
>> the testsuite), and use that to configure the firewall?
>> Otherwise, if it's really necessary for us to pick a random port
>> ourselves, we should probably do that in first-run instead of setup.
> I suppose we could pick up the port from /var/lib/tor/state and it would
> be better than picking one ourselves. We are already setting the basic
> firewall configuration in first-run. Further, first-run runs after tor
> is run. If the information is in tor/state is available immediately
> after tor runs, it would be safe to pick the port number from there.
I just checked for this. The port information needed in
/var/lib/tor/state wasn't available immediately after running tor. It
got populated a bit later. Perhaps it is safer to generate the port
ourselves and set it in configuration.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: OpenPGP digital signature
More information about the Freedombox-discuss