118-multiple-orports.txt 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. Filename: 118-multiple-orports.txt
  2. Title: Advertising multiple ORPorts at once
  3. Version: $Revision$
  4. Last-Modified: $Date$
  5. Author: Nick Mathewson
  6. Created: 09-Jul-2007
  7. Status: Accepted
  8. Overview:
  9. This document is a proposal for servers to advertise multiple
  10. address/port combinations for their ORPort.
  11. Motivation:
  12. Sometimes servers want to support multiple ports for incoming
  13. connections, either in order to support multiple address families, to
  14. better use multiple interfaces, or to support a variety of
  15. FascistFirewallPorts settings. This is easy to set up now, but
  16. there's no way to advertise it to clients.
  17. New descriptor syntax:
  18. We add a new line in the router descriptor, "or-address". This line
  19. can occur zero, one, or multiple times. Its format is:
  20. or-address SP ADDRESS ":" PORTLIST NL
  21. ADDRESS = IP6ADDR / IP4ADDR
  22. IPV6ADDR = an ipv6 address, surrounded by square brackets.
  23. IPV4ADDR = an ipv4 address, represented as a dotted quad.
  24. PORTLIST = PORTSPEC | PORTSPEC "," PORTLIST
  25. PORTSPEC = PORT | PORT "-" PORT
  26. [This is the regular format for specifying sets of addresses and
  27. ports in Tor.]
  28. New OR behavior:
  29. We add two more options to supplement ORListenAddress:
  30. ORPublishedListenAddress, and ORPublishAddressSet. The former
  31. listens on an address-port combination and publishes it in addition
  32. to the regular address. The latter advertises a set of address-port
  33. combinations, but does not listen on them. [To use this option, the
  34. server operator should set up port forwarding to the regular ORPort,
  35. as for example with firewall rules.]
  36. Servers should extend their testing to include advertised addresses
  37. and ports. No address or port should be advertised until it's been
  38. tested. [This might get expensive in practice.]
  39. New authority behavior:
  40. Authorities should spot-test descriptors, and reject any where a
  41. substantial part of the addresses can't be reached.
  42. New client behavior:
  43. When connecting to another server, clients SHOULD pick an
  44. address-port ocmbination at random as supported by their
  45. reachableaddresses. If a client has a connection to a server at one
  46. address, it SHOULD use that address for any simultaneous connections
  47. to that server. Clients SHOULD use the canonical address for any
  48. server when generating extend cells.
  49. Not addressed here:
  50. * There's no reason to listen on multiple dirports; current Tors
  51. mostly don't connect directly to the dirport anyway.
  52. * It could be advantageous to list something about extra addresses in
  53. the network-status document. This would, however, eat space there.
  54. More analysis is needed, particularly in light of proposal 141
  55. ("Download server descriptors on demand")
  56. Dependencies:
  57. Testing for canonical connections needs to be implemented before it's
  58. safe to use this proposal.
  59. Notes 3 July:
  60. - Write up the simple version of this. No ranges needed yet. No
  61. networkstatus chagnes yet.