Opened 7 years ago

Closed 5 years ago

#6894 closed enhancement (duplicate)

answer network time requests

Reported by: proper Owned by:
Priority: High Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Keywords: tor-client needs-proposal
Cc: adrelanos, mikeperry, nickm, mk, ioerror, T(A)ILS, developers, adrelanos@… Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

It would be useful if the Tor client could be used to ask the Tor network for the current time.

To demonstrate, here is an example:

tor time --direct <router name>

tor time --direct <router ip port>

tor time --direct <bridge ip port>

tor time --direct <authority (mirror)>

tor time --torified <router name>

tor time --torified <route ip port>

tor time --torified <bridge ip port>

tor time --torified <authority (mirror)>

Example answer:

Wed Sep 19 02:02:22 UTC 2012

The Tor control protocol could be used to provide this feature.

--direct = A direct encrypted/authenticated connection from the Tor client to a relay, bridge or authority.
--torified = A regular encrypted/authenticated three hop circuit using the normal routing algorithm to connect to exit nodes.

Also something like an "clock source=atomic" flag for the relays would be useful. The "clock source" flag would let a relay advertise "we are using an atomic clock as time source".

Having this feature would allow writing a secure distributed trust time synchronization client, which works through NAT, over Tor and which is independent from SSL certificate authorities.

sources:

Child Tickets

Change History (8)

comment:1 Changed 7 years ago by nickm

Keywords: tor-client added

comment:2 Changed 7 years ago by nickm

Component: Tor ClientTor

comment:3 Changed 7 years ago by proper

Cc: T(A)ILS developers adrelanos@… added; T(A)ILS developers removed

comment:4 Changed 7 years ago by nickm

Keywords: needs-proposal added
Milestone: Tor: 0.2.4.x-finalTor: unspecified

Unless somebody's got a patch in the wings here, it's not going to make the small-features deadline for 0.2.4.

comment:5 Changed 7 years ago by ioerror

I'm interested in adding it as a very small feature of tor to log the remote time from servers - we could then also hand it off to a helper - who could then set the time securely.

comment:6 in reply to:  5 Changed 6 years ago by proper

Example answer:
Wed Sep 19 02:02:22 UTC 2012

Better return unix time. I mean, in *nix/bash:
date +%s
1367722422

That's simpler to use in external applications:

date --set "@1367722422"

date --date "@1367722422"
Sun May 5 02:53:42 UTC 2013

Replying to ioerror:

I'm interested in adding it as a very small feature of tor to log the remote time from servers - we could then also hand it off to a helper - who could then set the time securely.

I shared some thoughts on that in comments of #8170.

comment:7 Changed 5 years ago by mikeperry

Parent ID: #3059

comment:8 Changed 5 years ago by mikeperry

Resolution: duplicate
Status: newclosed

I think this is a dup of #3652.

Note: See TracTickets for help on using tickets.