118-multiple-orports.txt 2.9 KB

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