Last active 1696945772

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

jmjl's Avatar jmjl revised this gist 1696945772. Go to revision

1 file changed, 29 insertions

gistfile1.txt(file created)

@@ -0,0 +1,29 @@
1 + user daemon
2 +
3 + pidfile /tmp/sniproxy.pid
4 +
5 + error_log {
6 + syslog daemon
7 + priority notice
8 + }
9 +
10 + listener 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 +
19 + table 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 + }
Newer Older