Dockerfile
FROM nixery.dev/sniproxy
ADD passwd /etc/passwd
ENTRYPOINT ["sniproxy"]
CMD ["-f"]
passwd
root:x:0:0::/root:/bin/bash
sniproxy.conf
user root
error_log {
syslog daemon
priority notice
}
listener 0.0.0.0:443 {
protocol tls
table TableName
# Specify a server to use if the initial client request doesn't contain
# a hostname
fallback 192.0.2.5:443
}
table TableName {
# Match exact request hostnames
example.com 192.0.2.10:4343
# If port is not specified the listener port will be used
example.net [2001:DB8::1:10]
# Or use regular expression to match
.*\\.com [2001:DB8::1:11]:443
# Combining regular expression and wildcard will resolve the hostname
# client requested and proxy to it
.*\\.edu *:443
}
Run
docker run -d -p 443:443 -v sniproxy.conf:/etc/sniproxy.conf imlonghao/sniproxy
Content type
Image
Digest
sha256:450f71163…
Size
11.7 MB
Last updated
about 4 years ago
docker pull imlonghao/sniproxy