Proyectos
Ver en GitHub
dannote/socks-nginx-module
Acerca de
An nginx_http_proxy_module fork with SOCKS5 support
Sistemas e infraestructuraWhat you can do
- Route upstream traffic through a SOCKS5 proxy
- Username/password authentication (RFC 1929)
- SSL to upstream through the SOCKS tunnel (proxy_pass https://...)
- IPv4, IPv6, and domain name address types
Crecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- +2
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
Originalsocks-nginx-module
An nginx module that adds SOCKS5 proxy support to proxy_pass.
Features
- Route upstream traffic through a SOCKS5 proxy
- Username/password authentication (RFC 1929)
- SSL to upstream through the SOCKS tunnel (
proxy_pass https://...) - IPv4, IPv6, and domain name address types
Building
Supports nginx stable branches 1.26.x, 1.28.x, and 1.30.x. PCRE2 is required.
git clone https://github.com/dannote/socks-nginx-module
wget https://nginx.org/download/nginx-1.30.4.tar.gz
tar -xzf nginx-1.30.4.tar.gz
cd nginx-1.30.4
./configure --add-dynamic-module=../socks-nginx-module
make
make install
Directives
socks_pass
Specifies the SOCKS5 proxy to route upstream traffic through. Must follow a proxy_pass directive.
socks_pass socks5://proxy:1080;
Credentials can be provided inline:
socks_pass socks5://user:password@proxy:1080;
socks_username / socks_password
Set SOCKS5 authentication credentials separately from the URL.
socks_pass socks5://proxy:1080;
socks_username myuser;
socks_password mypassword;
Configuration examples
HTTP through SOCKS
location / {
proxy_pass http://httpbin.org/get;
socks_pass socks5://proxy:1080;
}
HTTPS through SOCKS
location / {
proxy_pass https://httpbin.org/get;
proxy_ssl_server_name on;
socks_pass socks5://proxy:1080;
}
With authentication
location / {
proxy_pass http://httpbin.org/get;
socks_pass socks5://user:password@proxy:1080;
}
Development
Running tests
make ci
Individual targets: build, build-clang, build-asan, test, test-asan, lint, cppcheck, format.
Debugging
cd debug
docker compose run --service-ports nginx
(gdb) set follow-fork-mode child
(gdb) run
Explorar proyectos relacionados
Cargando…