How to make the perfect TOR VM in VirtualBox
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 5 години
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. base {
  2. // debug: connection progress & client list on SIGUSR1
  3. log_debug = off;
  4. // info: start and end of client session
  5. log_info = on;
  6. /* possible `log' values are:
  7. * stderr
  8. * "file:/path/to/file"
  9. * syslog:FACILITY facility is any of "daemon", "local0"..."local7"
  10. */
  11. log = "syslog:daemon";
  12. // detach from console
  13. daemon = on;
  14. /* Change uid, gid and root directory, these options require root
  15. * privilegies on startup.
  16. * Note, your chroot may requre /etc/localtime if you write log to syslog.
  17. * Log is opened before chroot & uid changing.
  18. */
  19. user = redsocks;
  20. group = redsocks;
  21. // chroot = "/var/chroot";
  22. /* possible `redirector' values are:
  23. * iptables - for Linux
  24. * ipf - for FreeBSD
  25. * pf - for OpenBSD
  26. * generic - some generic redirector that MAY work
  27. */
  28. redirector = iptables;
  29. }
  30. redsocks {
  31. /* `local_ip' defaults to 127.0.0.1 for security reasons,
  32. * use 0.0.0.0 if you want to listen on every interface.
  33. * `local_*' are used as port to redirect to.
  34. */
  35. local_ip = 127.0.0.1;
  36. local_port = 9040;
  37. // `ip' and `port' are IP and tcp-port of proxy-server
  38. // You can also use hostname instead of IP, only one (random)
  39. // address of multihomed host will be used.
  40. ip = 127.0.0.1;
  41. port = 9050;
  42. // known types: socks4, socks5, http-connect, http-relay
  43. type = socks5;
  44. // login = "foobar";
  45. // password = "baz";
  46. }
  47. //redudp {
  48. // // `local_ip' should not be 0.0.0.0 as it's also used for outgoing
  49. // // packets that are sent as replies - and it should be fixed
  50. // // if we want NAT to work properly.
  51. // local_ip = 127.0.0.1;
  52. // local_port = 10053;
  53. //
  54. // // `ip' and `port' of socks5 proxy server.
  55. // ip = 192.0.2.1;
  56. // port = 1080;
  57. // login = username;
  58. // password = pazzw0rd;
  59. //
  60. // // kernel does not give us this information, so we have to duplicate it
  61. // // in both iptables rules and configuration file. By the way, you can
  62. // // set `local_ip' to 127.45.67.89 if you need more than 65535 ports to
  63. // // forward ;-)
  64. // // This limitation may be relaxed in future versions using contrack-tools.
  65. // dest_ip = 192.0.2.2;
  66. // dest_port = 53;
  67. //
  68. // udp_timeout = 30;
  69. // udp_timeout_stream = 180;
  70. //}
  71. //dnstc {
  72. // // fake and really dumb DNS server that returns "truncated answer" to
  73. // // every query via UDP, RFC-compliant resolver should repeat same query
  74. // // via TCP in this case.
  75. // local_ip = 127.0.0.1;
  76. // local_port = 5300;
  77. //}
  78. // you can add more `redsocks' and `redudp' sections if you need.