Files: 9bcb2cdd7a920ebc78b59d0b5797d678424aa93a / example.cfg
1255 bytesRaw
1 | verbose: false; |
2 | foreground: true; |
3 | inetd: false; |
4 | numeric: false; |
5 | timeout: 2; |
6 | user: "nobody"; |
7 | pidfile: "/var/run/sslh.pid"; |
8 | |
9 | |
10 | # List of interfaces on which we should listen |
11 | listen: |
12 | ( |
13 | { host: "thelonious"; port: "443"; } |
14 | # , { host: "thelonious"; port: "8080"; } |
15 | ); |
16 | |
17 | # List of protocols |
18 | # |
19 | # Each protocol entry consists of: |
20 | # name: name of the protocol |
21 | # service: (optional) libwrap service name (see hosts_access(5)) |
22 | # host: host name to connect that protocol |
23 | # port: port number to connect that protocol |
24 | # probe: "builtin" or a list of regular expressions |
25 | # |
26 | # In case of timeout sslh will connect to the first |
27 | # protocol: this should be SSH. |
28 | # SSL should have a "always true" probe, and come last. |
29 | # sslh will try each probe in order they are declared, and |
30 | # connect to the first that matches. |
31 | |
32 | protocols: |
33 | ( |
34 | { name: "ssh"; service: "ssh"; host: "localhost"; port: "22"; probe: "builtin"; }, |
35 | { name: "openvpn"; host: "localhost"; port: "1194"; probe: [ "^\x00[\x0D-\xFF]$", "^\x00[\x0D-\xFF]\x38" ]; }, |
36 | { name: "xmpp"; host: "localhost"; port: "5222"; probe: [ "jabber" ]; }, |
37 | { name: "http"; host: "localhost"; port: "80"; probe: "builtin"; }, |
38 | { name: "ssl"; host: "localhost"; port: "443"; probe: [ "" ]; } |
39 | ); |
40 | |
41 |
Built with git-ssb-web