mirror of https://github.com/kenzok8/small.git
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
base {
|
|
log_debug = off;
|
|
redirector = iptables;
|
|
reuseport = on;
|
|
}
|
|
redsocks {
|
|
local_ip = 192.168.1.1;
|
|
local_port = 1081;
|
|
ip = 192.168.1.1;
|
|
port = 9050;
|
|
type = socks5; // I use socks5 proxy for GFW'ed IP
|
|
autoproxy = 1; // I want autoproxy feature enabled on this section.
|
|
// timeout is meaningful when 'autoproxy' is non-zero.
|
|
// It specified timeout value when trying to connect to destination
|
|
// directly. Default is 10 seconds. When it is set to 0, default
|
|
// timeout value will be used.
|
|
// NOTE: decreasing the timeout value may lead increase of chance for
|
|
// normal IP to be misjudged.
|
|
timeout = 13;
|
|
//type = http-connect;
|
|
//login = username;
|
|
//password = passwd;
|
|
}
|
|
tcpdns {
|
|
// Transform UDP DNS requests into TCP DNS requests.
|
|
// You can also redirect connections to external TCP DNS server to
|
|
// REDSOCKS transparent proxy via iptables.
|
|
local_ip = 192.168.1.1; // Local server to act as DNS server
|
|
local_port = 1053; // UDP port to receive UDP DNS requests
|
|
tcpdns1 = 8.8.4.4; // DNS server that supports TCP DNS requests
|
|
tcpdns2 = 8.8.8.8; // DNS server that supports TCP DNS requests
|
|
timeout = 4; // Timeout value for TCP DNS requests
|
|
}
|