Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. base {
  2. // debug: connection progress & client list on SIGUSR1
  3. log_debug = off;
  4.  
  5. // info: start and end of client session
  6. log_info = on;
  7.  
  8. /* possible `log' values are:
  9. * stderr
  10. * "file:/path/to/file"
  11. * syslog:FACILITY facility is any of "daemon", "local0"..."local7"
  12. */
  13. log = "syslog:daemon";
  14.  
  15. // detach from console
  16. daemon = on;
  17.  
  18. /* Change uid, gid and root directory, these options require root
  19. * privilegies on startup.
  20. * Note, your chroot may requre /etc/localtime if you write log to syslog.
  21. * Log is opened before chroot & uid changing.
  22. */
  23. user = redsocks;
  24. group = redsocks;
  25. // chroot = "/var/chroot";
  26.  
  27. /* possible `redirector' values are:
  28. * iptables - for Linux
  29. * ipf - for FreeBSD
  30. * pf - for OpenBSD
  31. * generic - some generic redirector that MAY work
  32. */
  33. redirector = iptables;
  34. }
  35.  
  36. redsocks {
  37. local_ip = 127.0.0.1;
  38. local_port = 12345;
  39. type = socks5;
  40. ip = 158.98.140.171;
  41. port = 1080;
  42. // login = "foobar";
  43. // password = "baz";
  44. }
  45. redsocks {
  46. local_ip = 127.0.0.1;
  47. local_port = 12346;
  48. type = socks4;
  49. ip = 9.158.182.11;
  50. port = 1081;
  51.  
  52. }
  53. redsocks {
  54. local_ip = 127.0.0.1;
  55. local_port = 12347;
  56. type = socks5;
  57. ip = 158.98.141.70;
  58. port = 1080;
  59.  
  60. }
  61. redsocks {
  62. local_ip = 127.0.0.1;
  63. local_port = 12348;
  64. type = socks5;
  65. ip = 158.98.68.48;
  66. port = 1080;
  67. // DSG proxy;
  68.  
  69. }
  70. redsocks {
  71. local_ip = 127.0.0.1;
  72. local_port = 12349;
  73. type = socks5;
  74. ip = 158.98.141.22;
  75. port = 1080;
  76. // LEO PROXY;
  77.  
  78. }
  79. redsocks {
  80. local_ip = 127.0.0.1;
  81. local_port = 12350;
  82. type = socks5;
  83. ip = 158.98.140.136;
  84. port = 1080;
  85. // Sampension PROXY;
  86.  
  87. }
  88. redsocks {
  89. local_ip = 127.0.0.1;
  90. local_port = 12351;
  91. type = socks4;
  92. ip = 9.158.182.11;
  93. port = 1081;
  94. // paranoia;
  95.  
  96. }
  97.  
  98. redudp {
  99. // `local_ip' should not be 0.0.0.0 as it's also used for outgoing
  100. // packets that are sent as replies - and it should be fixed
  101. // if we want NAT to work properly.
  102. local_ip = 127.0.0.1;
  103. local_port = 10053;
  104.  
  105. // `ip' and `port' of socks5 proxy server.
  106. ip = 192.0.2.1;
  107. port = 1080;
  108. login = username;
  109. password = pazzw0rd;
  110.  
  111. // kernel does not give us this information, so we have to duplicate it
  112. // in both iptables rules and configuration file. By the way, you can
  113. // set `local_ip' to 127.45.67.89 if you need more than 65535 ports to
  114. // forward ;-)
  115. // This limitation may be relaxed in future versions using contrack-tools.
  116. dest_ip = 192.0.2.2;
  117. dest_port = 53;
  118.  
  119. udp_timeout = 30;
  120. udp_timeout_stream = 180;
  121. }
  122.  
  123. dnstc {
  124. // fake and really dumb DNS server that returns "truncated answer" to
  125. // every query via UDP, RFC-compliant resolver should repeat same query
  126. // via TCP in this case.
  127. local_ip = 127.0.0.1;
  128. local_port = 5300;
  129. }
  130.  
  131. // you can add more `redsocks' and `redudp' sections if you need.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement