base { // debug: connection progress & client list on SIGUSR1 log_debug = off; // info: start and end of client session log_info = off; /* possible `log' values are: * stderr * "file:/path/to/file" * syslog:FACILITY facility is any of "daemon", "local0"..."local7" */ log = "file:/run/redsocks/redsocks.log"; // detach from console daemon = on; /* Change uid, gid and root directory, these options require root * privilegies on startup. * Note, your chroot may requre /etc/localtime if you write log to syslog. * Log is opened before chroot & uid changing. */ // user = nobody; // group = nogroup; // chroot = "/var/chroot"; /* possible `redirector' values are: * iptables - for Linux * ipf - for FreeBSD * pf - for OpenBSD * generic - some generic redirector that MAY work */ redirector = iptables; } redsocks { /* `local_ip' defaults to 127.0.0.1 for security reasons, * use 0.0.0.0 if you want to listen on every interface. * `local_*' are used as port to redirect to. */ local_ip = 0.0.0.0; local_port = 12345; // `ip' and `port' are IP and tcp-port of proxy-server ip = %%PROXY_IP%%; port = %%PROXY_PORT%%; // known types: socks4, socks5, http-connect, http-relay // type = http-connect; type = %%PROXY_TYPE%%; // login = "foobar"; // password = "baz"; }