[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: How to deal with OS hibernation
- To: or-talk@xxxxxxxxxxxxx
- Subject: Re: How to deal with OS hibernation
- From: Marcus Griep <tormaster@xxxxxxx>
- Date: Wed, 22 Apr 2009 14:34:14 -0400
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: or-talk-outgoing@xxxxxxxx
- Delivered-to: or-talk@xxxxxxxx
- Delivery-date: Wed, 22 Apr 2009 14:41:17 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to :content-type:content-transfer-encoding; bh=7fd8bsyYY1MMJ9cXa11cJkhyNYxSYRfEm2ipfLY6W+0=; b=N9pGlOfOFSvgkmQU+MPLVrBR1fg7/0fnSv3IEoJDLZFTgWA0/ad3PVhc5DSzLS0dS+ YqdK5bjUZPJGuayGxwi1R2o+lYOHAAesR5CD/ts1W10dwlenzi9xxyGH4VOb8oDnGjJ2 wrKG63jNaDSugZJSeKoqvH6bDIcAywYFso7bo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; b=i092tpB9rMsRikRmFgg8Za8vNCZd0J9HiyS2TMdC87EucMB89e6UN6feVTUucu01x+ 1LsjZgWF4Cc6AytZVPwxxenMro66qkEA842ySi9f4JjB7VM9qTYUOqJTS9R96qnoh+A9 W4OxhvSrTVaBh38GjnebHaA/F35/5wPzERm7w=
- In-reply-to: <49EECDB5.30801@xxxxxxxxx>
- References: <49EECDB5.30801@xxxxxxxxx>
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-talk@xxxxxxxxxxxxx
I don't believe the hibernation is a problem at all. Tor messages
include a timestamp to prevent replay attacks. When you restore your
computer from hibernation, Tor picks up right where it left off, but
notes that the system clock has jumped forward. Since any messages
regarding nodes and circuits may now be invalid, Tor basically
re-bootstraps itself (correct me here if I'm overstating). This, I
think, is similar to if Tor had received a SIGHUP. Even though it is
logging a warning, since the source of the jump is known and innocuous
(hibernation), this warning should be safely ignored.
Where this warning would have more effect is if you were actively
using the network and your clock synced significantly forward (NTP).
Then you would lose your current circuits during the re-bootstrap
which would cause any connections you had over Tor to drop. Hence the
reason this is a warning level message (there may be other reasons
too).
I think you'd be fine to let Tor run through hibernation even without
your SIGTERM hibernate/restore script.
--
Marcus Griep
——
Ακακια את.ψο´, 3°
On Wed, Apr 22, 2009 at 3:56 AM, Robas, Teodor <teodor.robas@xxxxxxxxx> wrote:
> Hello everybody,
>
> I regularly use tuxonice kernel hibernation. Recently I installed tor and
> configured as
> bridge and exit point. I want to know how it is best to use tor in this
> context.
>
> Looking in the notices.log I found this warnings:
> "[warn] Your system clock just jumped 31831 seconds forward; assuming
> established
> circuits no longer work". So I wrote a small script that sends SIGTERM (15)
> when going
> into system hibernation. Tor is then restarted at system restore.
>
> What is the recommended way to deal with hibernation ? It seems hard to find
> information
> about this because of the confusion between "tor hibernation" and "system
> hibernation".
>
>
>