Miracle Proxy is a config-based, composable, multi-protocol proxy.
bazel build -c opt net/tools:miracle-proxy
The output binary is located at
bazel-bin/net/tools/miracle-proxy
miracle-proxy --config miracle.conf
handlers {
"" {
listen 127.0.0.1:1080
type socks
}
}
handlers {
"" {
listen [::]:8388
type shadowsocks
method 2022-blake3-aes-128-gcm
password AAAAAAAAAAAAAAAAAAAAAA
}
}
handlers {
"" {
listen 127.0.0.1:1080
type socks
connector proxy
}
}
connectors {
proxy {
type shadowsocks
server 1.2.3.4:8388
method 2022-blake3-aes-128-gcm
password AAAAAAAAAAAAAAAAAAAAAA
}
}
ProxyCommand miracle-proxy --config=miracle.conf --tcp_connect_target="%h:%p" --tcp_connect_with=proxy