ngx_stream_socks_module
ngx_stream_socks_module copied to clipboard
Socks5 and HTTP proxy server based on nginx stream module implementation.
Having a config like ``` stream { resolver 8.8.8.8 ipv6=off; log_format socks 'socks: $socks_connect_addr $socks_name $socks_protocol [$time_local] $remote_addr'; server { listen 0.0.0.0:1080 ssl; ... socks; socks_user_passwd maria aaa; socks_user_passwd ilya...
Having a simple config like ``` load_module modules/ngx_stream_module.so; load_module modules/ngx_stream_socks_module.so; events { } stream { } ``` I get segfaults: ``` $ sudo objs/nginx -t -c /home/sa/nginx_build/socks-nginx.conf qemu: uncaught target...
If nginx is built with both `ngx_stream_ssl_preread_module` and `ngx_stream_socks_module`, one gets an error for the basic config: ``` ... stream { resolver 8.8.8.8 ipv6=off; log_format socks 'socks: $socks_connect_addr $socks_name $socks_passwd...
Listening port drops connections. Literally nothing is happening. Debug log shows nothing. An nginx worker exists with signal 8. ``` 2022/12/23 22:40:35 [debug] 57526#102466: accept on 10.10.0.1:8080, ready: 1 2022/12/23...
In the source code, there are some places where c->send is used directly like the following one: 483 if (c->send(c, out_buf, len) != (ssize_t) len) { 484 ngx_stream_socks_proxy_finalize(s, NGX_STREAM_BAD_REQUEST); 485...