2003-11-05 02:29:36 +01:00
|
|
|
|
2003-03-18 00:19:25 +01:00
|
|
|
Legend:
|
|
|
|
SPEC!! - Not specified
|
|
|
|
SPEC - Spec not finalized
|
|
|
|
NICK - nick claims
|
|
|
|
ARMA - arma claims
|
|
|
|
- Not done
|
|
|
|
* Top priority
|
|
|
|
. Partially done
|
|
|
|
o Done
|
|
|
|
D Deferred
|
|
|
|
X Abandoned
|
|
|
|
|
2004-02-01 22:09:42 +01:00
|
|
|
Bugs:
|
2004-02-27 05:52:02 +01:00
|
|
|
- should maybe make clients exit(1) when bad things happen?
|
|
|
|
e.g. clock skew.
|
|
|
|
o client-side dns cache doesn't appear to be getting populated
|
2004-02-27 05:08:44 +01:00
|
|
|
by 'connected' cells. In fact, the 'connected' cells don't even
|
2004-02-27 05:52:02 +01:00
|
|
|
include the IP.
|
2004-02-27 00:05:11 +01:00
|
|
|
o When it can't resolve any dirservers, it is useless from then on.
|
2004-02-24 23:22:04 +01:00
|
|
|
We should make it reload the RouterFile if it has no dirservers.
|
2004-02-18 23:30:16 +01:00
|
|
|
o Sometimes it picks a middleman node as the exit for a circuit.
|
2004-03-01 07:58:21 +01:00
|
|
|
o if you specify a non-dirserver as exitnode or entrynode, when it
|
2004-01-31 01:14:23 +01:00
|
|
|
makes the first few circuits it hasn't yet fetched the directory,
|
|
|
|
so it warns that it doesn't know the node.
|
2004-03-01 07:58:21 +01:00
|
|
|
o make 'make test' exit(1) if a test fails.
|
|
|
|
. fix buffer unit test so it passes
|
2004-02-01 22:09:42 +01:00
|
|
|
|
|
|
|
Short-term:
|
2004-02-27 00:36:31 +01:00
|
|
|
- put IP into the descriptor, so clients don't need to resolve things
|
2004-02-27 00:05:11 +01:00
|
|
|
o when you hup, rewrite the router.desc file (and maybe others)
|
2004-01-31 01:14:23 +01:00
|
|
|
- consider handling broken socks4 implementations
|
2003-12-31 00:05:06 +01:00
|
|
|
- improve how it behaves when i remove a line from the approved-routers files
|
2003-11-11 08:50:12 +01:00
|
|
|
- Make tls connections tls_close intentionally
|
|
|
|
o Rename ACI to circID
|
2003-09-24 23:30:12 +02:00
|
|
|
. integrate rep_ok functions, see what breaks
|
2003-10-22 07:15:08 +02:00
|
|
|
- update tor faq
|
2003-11-10 09:06:55 +01:00
|
|
|
o obey SocksBindAddress, ORBindAddress
|
2003-12-14 07:34:40 +01:00
|
|
|
o warn if we're running as root
|
2003-11-10 09:06:55 +01:00
|
|
|
o make connection_flush_buf() more obviously obsolete
|
2003-11-19 14:29:00 +01:00
|
|
|
o let hup reread the config file, eg so we can get new exit
|
2003-10-22 07:15:08 +02:00
|
|
|
policies without restarting
|
2003-11-19 14:29:00 +01:00
|
|
|
o Put recommended_versions in a config entry
|
2003-12-14 07:34:40 +01:00
|
|
|
X use times(2) rather than gettimeofday to measure how long it
|
2003-10-22 07:15:08 +02:00
|
|
|
takes to process a cell
|
2003-11-19 14:29:00 +01:00
|
|
|
o Separate trying to rebuild a circuit because you have none from trying
|
2003-11-11 08:50:12 +01:00
|
|
|
to rebuild a circuit because the current one is stale
|
2003-11-19 14:29:00 +01:00
|
|
|
X Continue reading from socks port even while waiting for connect.
|
2003-12-14 07:34:40 +01:00
|
|
|
o Exit policies
|
2003-10-22 07:15:08 +02:00
|
|
|
o Spec how to write the exit policies
|
2003-12-14 07:34:40 +01:00
|
|
|
o Path selection algorithms
|
2003-11-12 19:55:07 +01:00
|
|
|
o Choose path more incrementally
|
2003-12-14 07:34:40 +01:00
|
|
|
o Let user request first/last node
|
|
|
|
o And disallow certain nodes
|
2003-10-22 07:15:08 +02:00
|
|
|
D Choose path by jurisdiction, etc?
|
2003-12-02 19:20:31 +01:00
|
|
|
o Make relay end cells have failure status and payload attached
|
2003-11-12 19:55:07 +01:00
|
|
|
X let non-approved routers handshake.
|
2004-02-27 00:05:11 +01:00
|
|
|
X Dirserver shouldn't put you in running-routers list if you haven't
|
2003-11-11 08:50:12 +01:00
|
|
|
uploaded a descriptor recently
|
2004-02-27 00:05:11 +01:00
|
|
|
X migrate to using nickname rather than addr:port for routers
|
|
|
|
- migrate to using IPv6 sizes everywhere
|
|
|
|
o Move from onions to ephemeral DH
|
2003-10-22 07:15:08 +02:00
|
|
|
o incremental path building
|
|
|
|
o transition circuit-level sendmes to hop-level sendmes
|
|
|
|
o implement truncate, truncated
|
|
|
|
o move from 192byte DH to 128byte DH, so it isn't so damn slow
|
2004-02-27 00:05:11 +01:00
|
|
|
X exiting from not-last hop
|
|
|
|
X OP logic to decide to extend/truncate a path
|
|
|
|
X make sure exiting from the not-last hop works
|
|
|
|
X logic to find last *open* hop, not last hop, in cpath
|
2003-11-11 08:50:12 +01:00
|
|
|
o Remember address and port when beginning.
|
2003-11-02 05:53:15 +01:00
|
|
|
- Extend by nickname/hostname/something, not by IP.
|
2003-11-11 08:50:12 +01:00
|
|
|
- Need a relay teardown cell, separate from one-way ends.
|
2004-03-01 07:58:21 +01:00
|
|
|
X remove per-connection rate limiting
|
2004-01-13 02:19:02 +01:00
|
|
|
- Make it harder to circumvent bandwidth caps: look at number of bytes
|
|
|
|
sent across sockets, not number sent inside TLS stream.
|
2003-10-22 07:15:08 +02:00
|
|
|
|
|
|
|
On-going
|
|
|
|
. Better comments for functions!
|
|
|
|
. Go through log messages, reduce confusing error messages.
|
|
|
|
. make the logs include more info (fd, etc)
|
|
|
|
. Unit tests
|
2003-12-31 00:05:06 +01:00
|
|
|
. Update the spec so it matches the code
|
2003-10-22 07:15:08 +02:00
|
|
|
|
|
|
|
Mid-term:
|
2003-12-03 11:44:11 +01:00
|
|
|
- Rotate tls-level connections -- make new ones, expire old ones.
|
|
|
|
So we get actual key rotation, not just symmetric key rotation
|
2003-12-31 00:05:06 +01:00
|
|
|
o Are there anonymity issues with sequential streamIDs? Sequential
|
2003-11-11 08:50:12 +01:00
|
|
|
circIDs? Eg an attacker can learn how many there have been.
|
2003-12-02 19:20:31 +01:00
|
|
|
The fix is to initialize them randomly rather than at 1.
|
2003-11-11 08:50:12 +01:00
|
|
|
- Look at having smallcells and largecells
|
2003-10-01 02:35:54 +02:00
|
|
|
. Redo scheduler
|
|
|
|
o fix SSL_read bug for buffered records
|
|
|
|
- make round-robining more fair
|
2003-09-20 08:56:15 +02:00
|
|
|
- What happens when a circuit's length is 1? What breaks?
|
2003-08-22 05:17:14 +02:00
|
|
|
. streams / circuits
|
|
|
|
o Implement streams
|
2003-04-25 20:29:45 +02:00
|
|
|
o Rotate circuits after N minutes?
|
|
|
|
X Circuits should expire when circuit->expire triggers
|
2003-03-18 00:19:25 +01:00
|
|
|
NICK . Handle half-open connections
|
2003-10-22 07:15:08 +02:00
|
|
|
o openssh is an application that uses half-open connections
|
2003-06-25 09:28:34 +02:00
|
|
|
o Figure out what causes connections to close, standardize
|
2003-04-25 20:29:45 +02:00
|
|
|
when we mark a connection vs when we tear it down
|
2003-05-07 20:30:46 +02:00
|
|
|
o Look at what ssl does to keep from mutating data streams
|
2003-12-14 07:34:40 +01:00
|
|
|
o Put CPU workers in separate processes
|
2003-08-22 05:17:14 +02:00
|
|
|
o Handle multiple cpu workers (one for each cpu, plus one)
|
|
|
|
o Queue for pending tasks if all workers full
|
|
|
|
o Support the 'process this onion' task
|
2003-09-20 08:56:15 +02:00
|
|
|
D Merge dnsworkers and cpuworkers to some extent
|
2003-12-14 07:34:40 +01:00
|
|
|
o Handle cpuworkers dying
|
2003-03-18 00:19:25 +01:00
|
|
|
. Scrubbing proxies
|
|
|
|
- Find an smtp proxy?
|
2003-04-25 20:29:45 +02:00
|
|
|
- Check the old smtp proxy code
|
|
|
|
o Find an ftp proxy? wget --passive
|
|
|
|
D Wait until there are packet redirectors for Linux
|
2003-03-18 00:19:25 +01:00
|
|
|
. Get socks4a support into Mozilla
|
2003-06-25 09:28:34 +02:00
|
|
|
. Develop rendezvous points
|
2003-12-14 07:34:40 +01:00
|
|
|
X Handle socks commands other than connect, eg, bind?
|
2003-08-31 02:11:01 +02:00
|
|
|
o Design
|
|
|
|
- Spec
|
2003-06-25 09:28:34 +02:00
|
|
|
- Implement
|
2003-12-31 00:05:06 +01:00
|
|
|
. Tests
|
2003-05-07 04:13:23 +02:00
|
|
|
o Testing harness/infrastructure
|
2003-04-25 20:29:45 +02:00
|
|
|
D System tests (how?)
|
2003-03-18 00:19:25 +01:00
|
|
|
- Performance tests, so we know when we've improved
|
|
|
|
. webload infrastructure (Bruce)
|
|
|
|
. httperf infrastructure (easy to set up)
|
2003-08-22 05:17:14 +02:00
|
|
|
. oprofile (installed in RH >8.0)
|
2003-06-25 09:28:34 +02:00
|
|
|
NICK . Daemonize and package
|
2003-03-18 00:19:25 +01:00
|
|
|
o Teach it to fork and background
|
2004-03-01 07:58:21 +01:00
|
|
|
. Red Hat spec file
|
2004-02-05 06:23:06 +01:00
|
|
|
o Debian spec file equivalent
|
2003-09-20 08:56:15 +02:00
|
|
|
. Portability
|
2003-08-22 05:17:14 +02:00
|
|
|
. Which .h files are we actually using?
|
|
|
|
. Port to:
|
2003-03-18 00:19:25 +01:00
|
|
|
o Linux
|
|
|
|
o BSD
|
|
|
|
. Solaris
|
2003-08-22 05:17:14 +02:00
|
|
|
o Cygwin
|
2003-10-15 21:28:59 +02:00
|
|
|
. Win32
|
2003-06-25 09:28:34 +02:00
|
|
|
o OS X
|
2003-09-20 08:56:15 +02:00
|
|
|
- deal with pollhup / reached_eof on all platforms
|
2003-06-25 09:28:34 +02:00
|
|
|
o openssl randomness
|
|
|
|
o inet_ntoa
|
2003-12-14 07:34:40 +01:00
|
|
|
o stdint.h
|
2003-04-25 20:29:45 +02:00
|
|
|
- Make a script to set up a local network on your machine
|
2003-12-14 07:34:40 +01:00
|
|
|
o More flexibility in node addressing
|
2003-04-25 20:29:45 +02:00
|
|
|
D Support IPv6 rather than just 4
|
2003-12-14 07:34:40 +01:00
|
|
|
o Handle multihomed servers (config variable to set IP)
|
2003-10-22 07:15:08 +02:00
|
|
|
|
|
|
|
In the distant future:
|
|
|
|
D Load balancing between router twins
|
|
|
|
D Keep track of load over links/nodes, to
|
|
|
|
know who's hosed
|
|
|
|
SPEC!! D Non-clique topologies
|
|
|
|
D Implement our own memory management, at least for common structs
|
|
|
|
(Not ever necessary?)
|
|
|
|
D Advanced directory servers
|
|
|
|
D Automated reputation management
|
|
|
|
SPEC!! D Figure out how to do threshold directory servers
|
|
|
|
D jurisdiction info in dirserver entries? other info?
|
2003-08-22 05:21:51 +02:00
|
|
|
|
|
|
|
Older (done) todo stuff:
|
|
|
|
|
2004-01-31 01:14:23 +01:00
|
|
|
For 0.0.2pre17:
|
|
|
|
o Put a H(K | handshake) into the onionskin response
|
|
|
|
o Make cells 512 bytes
|
|
|
|
o Reduce streamid footprint from 7 bytes to 2 bytes
|
|
|
|
X Check for collisions in streamid (now possible with
|
|
|
|
just 2 bytes), and back up & replace with padding if so
|
|
|
|
o Use the 4 reserved bytes in each cell header to keep 1/5
|
|
|
|
of a sha1 of the ongoing relay payload (move into stream header)
|
|
|
|
o Move length into the stream header too
|
|
|
|
o Make length 2 bytes
|
|
|
|
D increase DH key length
|
|
|
|
D increase RSA key length
|
|
|
|
D Spec the stream_id stuff. Clarify that nobody on the backward
|
|
|
|
stream should look at stream_id.
|
|
|
|
|
|
|
|
Cell:
|
|
|
|
ACI (anonymous circuit identifier) [2 bytes]
|
|
|
|
Command [1 byte]
|
|
|
|
Payload (padded with 0 bytes) [509 bytes]
|
|
|
|
|
|
|
|
Relay payload:
|
|
|
|
Relay command [1 byte]
|
|
|
|
Stream ID [7 bytes]
|
|
|
|
Partial SHA-1 [4 bytes]
|
|
|
|
Length [2 bytes]
|
|
|
|
Relay payload [495 bytes]
|
|
|
|
|
|
|
|
For 0.0.2pre15:
|
|
|
|
o don't pick exit nodes which will certainly reject all things.
|
|
|
|
o don't pick nodes that the directory says are down
|
|
|
|
o choose randomly from running dirservers, not just first one
|
|
|
|
o install the man page
|
|
|
|
o warn when client-side tries an address/port which no router in the dir accepts.
|
|
|
|
|
|
|
|
For 0.0.2pre14:
|
|
|
|
o More flexible exit policies (18.*, 18.0.0.0/8)
|
|
|
|
o Work to succeed in the precense of exit policy violation
|
|
|
|
o Replace desired_path_len with opaque path-selection specifier
|
|
|
|
o Client-side DNS caching
|
|
|
|
o Add entries to client DNS cache based on END cells
|
|
|
|
o Remove port from END_REASON_EXITPOLICY cells
|
|
|
|
o Start building new circuits when we get an exit-policy
|
|
|
|
failure. (Defer exiting from the middle of existing
|
|
|
|
circuits or extending existing circuits for later.)
|
|
|
|
o Implement function to check whether a routerinfo_t
|
|
|
|
supports a given exit addr.
|
|
|
|
o Choose the exit node of an in-progress circuit based on
|
|
|
|
pending AP connections.
|
|
|
|
o Choose the exit node _first_, then beginning, then
|
|
|
|
middle nodes.
|
|
|
|
|
|
|
|
Previous:
|
2003-10-22 07:15:08 +02:00
|
|
|
o Get tor to act like a socks server
|
|
|
|
o socks4, socks4a
|
|
|
|
o socks5
|
|
|
|
o routers have identity key, link key, onion key.
|
|
|
|
o link key certs are
|
|
|
|
D signed by identity key
|
|
|
|
D not in descriptor
|
|
|
|
o not in config
|
|
|
|
D not on disk
|
|
|
|
o identity and onion keys are in descriptor (and disk)
|
|
|
|
o upon boot, if it doesn't find identity key, generate it and write it.
|
|
|
|
o also write a file with the identity key fingerprint in it
|
|
|
|
o router generates descriptor: flesh out router_get_my_descriptor()
|
|
|
|
o Routers sign descriptors with identity key
|
|
|
|
o routers put version number in descriptor
|
|
|
|
o routers should maybe have `uname -a` in descriptor?
|
|
|
|
o Give nicknames to routers
|
|
|
|
o in config
|
|
|
|
o in descriptors
|
|
|
|
o router posts descriptor
|
|
|
|
o when it boots
|
2003-12-02 19:20:31 +01:00
|
|
|
o every DirFetchPostPeriod seconds
|
2003-10-22 07:15:08 +02:00
|
|
|
D when it changes
|
|
|
|
o change tls stuff so certs don't get written to disk, or read from disk
|
|
|
|
o make directory.c 'thread'safe
|
|
|
|
o dirserver parses descriptor
|
|
|
|
o dirserver checks signature
|
|
|
|
D client checks signature?
|
|
|
|
o dirserver writes directory to file
|
|
|
|
o reads that file upon boot
|
|
|
|
o directory includes all routers, up and down
|
|
|
|
o add "up" line to directory, listing nicknames
|
|
|
|
o instruments ORs to report stats
|
|
|
|
o average cell fullness
|
|
|
|
o average bandwidth used
|
|
|
|
o configure log files. separate log file, separate severities.
|
|
|
|
o what assumptions break if we fclose(0) when we daemonize?
|
|
|
|
o make buffer struct elements opaque outside buffers.c
|
|
|
|
o add log convention to the HACKING file
|
|
|
|
o make 'make install' do the right thing
|
|
|
|
o change binary name to tor
|
|
|
|
o change config files so you look at commandline, else look in
|
|
|
|
/etc/torrc. no cascading.
|
|
|
|
o have an absolute datadir with fixed names for files, and fixed-name
|
|
|
|
keydir under that with fixed names
|
|
|
|
o Move (most of) the router/directory code out of main.c
|
|
|
|
o Simple directory servers
|
|
|
|
o Include key in source; sign directories
|
|
|
|
o Signed directory backend
|
|
|
|
o Document
|
|
|
|
o Integrate
|
|
|
|
o Add versions to code
|
|
|
|
o Have directories list recommended-versions
|
|
|
|
o Include line in directories
|
|
|
|
o Check for presence of line.
|
|
|
|
o Quit if running the wrong version
|
|
|
|
o Command-line option to override quit
|
|
|
|
o Add more information to directory server entries
|
|
|
|
o Exit policies
|
|
|
|
o Clearer bandwidth management
|
|
|
|
o Do we want to remove bandwidth from OR handshakes?
|
|
|
|
o What about OP handshakes?
|
|
|
|
X Move away from openssl
|
|
|
|
o Abstract out crypto calls
|
|
|
|
X Look at nss, others? Just include code?
|
2003-08-22 05:21:51 +02:00
|
|
|
o Use a stronger cipher
|
|
|
|
o aes now, by including the code ourselves
|
|
|
|
X On the fly compression of each stream
|
|
|
|
o Clean up the event loop (optimize and sanitize)
|
|
|
|
o Remove that awful concept of 'roles'
|
|
|
|
o Terminology
|
|
|
|
o Circuits, topics, cells stay named that
|
|
|
|
o 'Connection' gets divided, or renamed, or something?
|
|
|
|
o DNS farm
|
|
|
|
o Distribute queries onto the farm, get answers
|
|
|
|
o Preemptively grow a new worker before he's needed
|
|
|
|
o Prune workers when too many are idle
|
|
|
|
o DNS cache
|
|
|
|
o Clear DNS cache over time
|
|
|
|
D Honor DNS TTL info (how??)
|
|
|
|
o Have strategy when all workers are busy
|
|
|
|
o Keep track of which connections are in dns_wait
|
|
|
|
o Need to cache positives/negatives on the tor side
|
|
|
|
o Keep track of which queries have been asked
|
|
|
|
o Better error handling when
|
|
|
|
o An address doesn't resolve
|
|
|
|
o We have max workers running
|
|
|
|
o Consider taking the master out of the loop?
|
2003-09-20 08:56:15 +02:00
|
|
|
X Implement reply onions
|
2003-08-22 05:21:51 +02:00
|
|
|
o Total rate limiting
|
|
|
|
o Look at OR handshake in more detail
|
|
|
|
o Spec it
|
|
|
|
o Merge OR and OP handshakes
|
|
|
|
o rearrange connection_or so it doesn't suck so much to read
|
|
|
|
D Periodic link key rotation. Spec?
|
2003-05-28 08:36:49 +02:00
|
|
|
o wrap malloc with something that explodes when it fails
|
2003-08-22 05:21:51 +02:00
|
|
|
o Clean up the number of places that get to look at prkey
|
2003-03-18 00:19:25 +01:00
|
|
|
|