exit-v4.i 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. # 1. Allow exiting to IPv4 localhost and private networks by default
  2. # -------------------------------------------------------------
  3. # Each IPv4 tor instance is configured with Address 127.0.0.1 by default
  4. ExitPolicy accept 127.0.0.0/8:*
  5. # If you only want tor to connect to localhost, disable these lines:
  6. # This may cause network failures in some circumstances
  7. ExitPolicyRejectPrivate 0
  8. ExitPolicy accept private:*
  9. # 2. Optionally: Allow exiting to the entire IPv4 internet on HTTP(S)
  10. # -------------------------------------------------------------------
  11. # 2. or 3. are required to work around #11264 with microdescriptors enabled
  12. # "The core of this issue appears to be that the Exit flag code is
  13. # optimistic (just needs a /8 and 2 ports), but the microdescriptor
  14. # exit policy summary code is pessimistic (needs the entire internet)."
  15. # An alternative is to disable microdescriptors and use regular
  16. # descriptors, as they do not suffer from this issue.
  17. #ExitPolicy accept *:80
  18. #ExitPolicy accept *:443
  19. # 3. Optionally: Accept all IPv4 addresses, that is, the public internet
  20. # ----------------------------------------------------------------------
  21. ExitPolicy accept *:*
  22. # 4. Finally, reject all IPv4 addresses which haven't been permitted
  23. # ------------------------------------------------------------------
  24. ExitPolicy reject *:*