Opened 9 years ago

Closed 8 years ago

#2376 closed defect (wontfix)

Torouter on OpenWRT shouldn't have its data directory in /tmp/

Reported by: karsten Owned by: ioerror
Priority: Medium Milestone:
Component: Archived/Torouter Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

AIUI, Torouter stores its data directory by default in /var/lib/tor/ with /var/ being a link to /tmp/. This means that whenever Torouter is rebooted, Tor generates new keys and gets a new fingerprint. This prevents bridge clients from learning a bridge's new descriptor whenever the bridge changes its IP address. Tor also loses its state file with circuit build timeouts as well as previously written stats. Robert Ransom adds that bridge clients will think the bridge is MITMed and possibly shout warnings at the user.

My Buffalo router has 25.6M available on /tmp and 22.9M left on /. In theory, we could move Tor's data directory to /.

Child Tickets

Change History (8)

comment:1 Changed 9 years ago by karsten

One more thing to consider: We could modify OpenWRT to stop creating a /tmp/ partition and simply have one partition with 64M (on the Buffalo router). That would also solve #2334 without having to modify Tor in any way.

I'm not sure how to build my own OpenWRT image. Has anyone done this before?

comment:2 Changed 8 years ago by phobos

Summary: Torouter shouldn't have its data directory in /tmp/Torouter on Buffalo shouldn't have its data directory in /tmp/

comment:3 Changed 8 years ago by karsten

Why is this issue Buffalo-specific, phobos? Note that this is not about disk space, but about stuff in /tmp/ not surviving a reboot.

comment:4 Changed 8 years ago by phobos

Summary: Torouter on Buffalo shouldn't have its data directory in /tmp/Torouter on OpenWRT shouldn't have its data directory in /tmp/

I guess it is openwrt specific, rather than buffalo.

comment:5 Changed 8 years ago by ioerror

I think that it's reasonable and actually desirable to keep the state - I've been maintaining the OpenWRT packages (both alpha and stable) - shall I make a new directory and call it a day?

comment:6 Changed 8 years ago by runa

Sorry, I'm a bit confused here. Keep what state?

comment:7 in reply to:  6 Changed 8 years ago by ioerror

Replying to runa:

Sorry, I'm a bit confused here. Keep what state?

The state of Tor's run-time/crypto keys/consensus/etc

comment:8 Changed 8 years ago by ioerror

Resolution: wontfix
Status: newclosed

We're not going to go any further with OpenWRT for Torouter.

Note: See TracTickets for help on using tickets.