darkk / redsocks

transparent TCP-to-proxy redirector
http://darkk.net.ru/redsocks
3.29k stars 862 forks source link

increase max conn more than 128 #184

Open abjadhoz opened 1 month ago

abjadhoz commented 1 month ago

hi i have a busy server and want increase max conn more than 128 there is any solution or another program that support more connection

abjadhoz commented 1 month ago

https://github.com/darkk/redsocks/blob/master/redsocks.conf.example

// listenq = 128; // SOMAXCONN equals 128 on my Linux box. what is this line

abjadhoz commented 1 month ago

hi i use this configuration and speed get wild

base {
log_debug = off;
log_info = off;
log = stderr;
daemon = on;
redirector = iptables;
redsocks_conn_max = 4096;
connpres_idle_timeout = 7440;
max_accept_backoff = 6000;
}

redsocks {
local_ip = 127.0.0.1;
local_port = 12345;
listenq = 4096;
splice = true;
ip = 127.0.0.1;
port = 10808;
type = socks5;
}