Guest User

Untitled

a guest
Jan 26th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.50 KB | None | 0 0
  1. base {
  2. // debug: connection progress & client list on SIGUSR1
  3. log_debug = on;
  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 = stderr;
  14.  
  15. // detach from console
  16. daemon = off;
  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 = nobody;
  24. // group = nobody;
  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 = 0.0.0.0;
  42. local_port = 12345;
  43.  
  44. // `ip' and `port' are IP and tcp-port of proxy-server
  45. ip = 127.0.0.1;
  46. port = 1080;
  47.  
  48.  
  49. // known types: socks4, socks5, http-connect, http-relay
  50. type = socks5;
  51.  
  52. // login = "foobar";
  53. // password = "baz";
  54. }
  55.  
  56. redudp {
  57. // `local_ip' should not be 0.0.0.0 as it's also used for outgoing
  58. // packets that are sent as replies - and it should be fixed
  59. // if we want NAT to work properly.
  60. local_ip = 127.0.0.1;
  61. local_port = 10053;
  62.  
  63. // `ip' and `port' of socks5 proxy server.
  64. ip = 127.0.0.1;
  65. port = 1080;
  66. //login = username;
  67. //password = pazzw0rd;
  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. // you can add more `redsocks' and `redudp' sections if you need.
Add Comment
Please, Sign In to add comment