Last active 1696945772

https://github.com/dlundquist/sniproxy's README

gistfile1.txt Raw
1user daemon
2
3pidfile /tmp/sniproxy.pid
4
5error_log {
6 syslog daemon
7 priority notice
8}
9
10listener 127.0.0.1:443 {
11 protocol tls
12 table TableName
13
14 # Specify a server to use if the initial client request doesn't contain
15 # a hostname
16 fallback 192.0.2.5:443
17}
18
19table TableName {
20 # Match exact request hostnames
21 example.com 192.0.2.10:4343
22 # If port is not specified the listener port will be used
23 example.net [2001:DB8::1:10]
24 # Or use regular expression to match
25 .*\\.com [2001:DB8::1:11]:443
26 # Combining regular expression and wildcard will resolve the hostname
27 # client requested and proxy to it
28 .*\\.edu *:443
29}
30