AvANa-BBS / freepto-lb

Encrypted GNU/Linux OS (based on Debian Wheezy) which can be installed on USB flash drive. Freepto is designed for encrypt your communications, carry your documents in secure way and save your anonymity.
http://www.freepto.mx/
43 stars 14 forks source link

Tor broken by ntp #129

Open paskao opened 10 years ago

paskao commented 10 years ago

When ntp update the time can broke the tor circuits connections, and tor must be restarted. But we havent a user-friendly way to do that.

This is what is output in the tor log: root@freepto # tail -n 2 /var/log/tor/log Jun 14 20:05:55.000 [warn] Problem bootstrapping. Stuck at 80%: Connecting to the Tor network. (Network is unreachable; NOROUTE; count 15; recommendation warn) Jun 14 18:06:21.000 [notice] Your system clock just jumped 7199 seconds backward; assuming established circuits no longer work.

ghost commented 10 years ago

A quick way to provide a user-friendly way to do that, could be add a new menu category (eg: services) and add something like: "tor restart" (that basically execute: "sudo /etc/init.d/tor restart")

boyska commented 10 years ago

We investigated a bit, and probably the "right" way to do it, is adding an hook into NetworkManager.d/dispatchers (can't remember the exact name). You can also look at tails code to see what they do (which is much more complicated than just a restart!)

boyska

boyska commented 10 years ago

Paskao will do this

boyska commented 10 years ago

in ff66f67ae63f472c9e356422b66d165cbdb57cbd it works for me. I did the following test:

date -s  "2 days ago"
service tor restart
curl -i ifconfig.me
service ntp restart
curl -i ifconfig.me

Notice that:

boyska commented 10 years ago

@paskao : while I know that the bug you report is true and is grave and should be fixed, there seems to be no clear way to reproduce it. Can you help us in reproducing it?

boyska commented 10 years ago

See be59f6ea2db6b6ba40b6520a85b1622016159708 at boyska/129-fix-tor-ntp

boyska commented 9 years ago

I removed the testing-needed label, as it can be confusing. That's the current situation:

boyska commented 9 years ago

I managed to reproduce it! It is documented in https://we.riseup.net/freepto-wiki/tor-ntp . The script that make tor fails is http://paste.debian.net/125967/

boyska commented 9 years ago

Postponed to v1.1, as v1.0 is already too late