git ssb

0+

cel / sslh



Tree: c02e2d7aeeba25cb53d8a81acad55318ce63a4c4

Files: c02e2d7aeeba25cb53d8a81acad55318ce63a4c4 / example.cfg

1764 bytesRaw
1# This file is provided as documentation to show what is
2# possible. It should not be used as-is, and probably should
3# not be used as a starting point for a working
4# configuration. Instead use basic.cfg.
5
6verbose: true;
7foreground: true;
8inetd: false;
9numeric: false;
10timeout: 2;
11user: "nobody";
12pidfile: "/var/run/sslh.pid";
13
14
15# List of interfaces on which we should listen
16listen:
17(
18 { host: "thelonious"; port: "443"; },
19 { host: "thelonious"; port: "8080"; }
20);
21
22# List of protocols
23#
24# Each protocol entry consists of:
25# name: name of the protocol
26# service: (optional) libwrap service name (see hosts_access(5))
27# host: host name to connect that protocol
28# port: port number to connect that protocol
29# probe: "builtin" or a list of regular expressions
30# (can be left out, e.g. to use with on-timeout)
31#
32# sslh will try each probe in order they are declared, and
33# connect to the first that matches.
34
35protocols:
36(
37 { name: "ssh"; service: "ssh"; host: "localhost"; port: "22"; probe: "builtin"; },
38 { name: "openvpn"; host: "localhost"; port: "1194"; probe: [ "^\x00[\x0D-\xFF]$", "^\x00[\x0D-\xFF]\x38" ]; },
39 { name: "xmpp"; host: "localhost"; port: "5222"; probe: [ "jabber" ]; },
40 { name: "http"; host: "localhost"; port: "80"; probe: "builtin"; },
41 { name: "ssl"; host: "localhost"; port: "443"; probe: [ "" ]; },
42 { name: "timeout"; service: "daytime"; host: "localhost"; port: "daytime"; }
43);
44
45# Optionally, specify to which protocol to connect in case
46# of timeout (defaults to "ssh").
47# You can timeout to any arbitrary address by setting a
48# protocol with no probe, as is the case with this example.
49# This enables you to set a tcpd service name for this
50# protocol too.
51on-timeout: "timeout";
52
53

Built with git-ssb-web