Advertisement
Guest User

Untitled

a guest
May 30th, 2018
448
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 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' defaults to 127.0.0.1 for security reasons,
  38. * use 0.0.0.0 if you want to listen on every interface.
  39. * `local_*' are used as port to redirect to.
  40. */
  41. local_ip = 127.0.0.1;
  42. local_port = 12345;
  43.  
  44. // `ip' and `port' are IP and tcp-port of proxy-server
  45. // You can also use hostname instead of IP, only one (random)
  46. // address of multihomed host will be used.
  47. ip = 127.0.0.1;
  48. port = 23649;
  49.  
  50.  
  51. // known types: socks4, socks5, http-connect, http-relay
  52. type = socks5;
  53.  
  54. // login = "foobar";
  55. // password = "baz";
  56. }
  57.  
  58. redudp {
  59. // `local_ip' should not be 0.0.0.0 as it's also used for outgoing
  60. // packets that are sent as replies - and it should be fixed
  61. // if we want NAT to work properly.
  62. local_ip = 127.0.0.1;
  63. local_port = 10053;
  64.  
  65. // `ip' and `port' of socks5 proxy server.
  66. ip = 127.0.0.1;
  67. port = 23649;
  68.  
  69. // kernel does not give us this information, so we have to duplicate it
  70. // in both iptables rules and configuration file. By the way, you can
  71. // set `local_ip' to 127.45.67.89 if you need more than 65535 ports to
  72. // forward ;-)
  73. // This limitation may be relaxed in future versions using contrack-tools.
  74. dest_ip = 8.8.8.8;
  75. dest_port = 53;
  76.  
  77. udp_timeout = 30;
  78. udp_timeout_stream = 180;
  79. }
  80.  
  81. dnstc {
  82. // fake and really dumb DNS server that returns "truncated answer" to
  83. // every query via UDP, RFC-compliant resolver should repeat same query
  84. // via TCP in this case.
  85. local_ip = 127.0.0.1;
  86. local_port = 5300;
  87. }
  88.  
  89. // you can add more `redsocks' and `redudp' sections if you need.
  90.  
  91. dnsu2t {
  92. local_ip 127.0.0.1;
  93. local_port 5053;
  94. remote_ip 127.0.0.1;
  95. remote_port 10053;
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement