プロジェクト
概要
An nginx_http_proxy_module fork with SOCKS5 support
システム・インフラできること
- 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
計測したスター増加
- 24時間
- 0
- 7日間
- +2
- 15日間
- +2
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルsocks-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
関連プロジェクトを探す
読み込み中…