프로젝트
GitHub에서 보기
dannote/socks-nginx-module
소개
An nginx_http_proxy_module fork with SOCKS5 support
시스템 및 인프라What 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
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- +2
- in 1 month
- 업데이트 지연
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
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
관련 프로젝트 살펴보기
불러오는 중…