-
Notifications
You must be signed in to change notification settings - Fork 366
/
udp.cfg
31 lines (25 loc) · 841 Bytes
/
udp.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Example for UDP protocols
# Listen sockets get a `is_udp : true` option
# Protocol entries work exactly the same as TCP, there is no
# difference. Currently, if mix up TCP and UDP probes, sslh will
# try them in order and forward a UDP packet to a TCP probe
# that matches (but using UDP; meaning, sslh will happily
# forward a UDP packet to udp:localhost:80 if the HTTP
# probe is specified, and matches)
verbose: 3;
foreground: true;
inetd: false;
numeric: false;
transparent: false;
timeout: 10;
pidfile: "/tmp/sslh_test.pid";
# List of interfaces on which we should listen
# Options:
listen: (
{ host: "localhost"; is_udp: true; port: "4443"; }
);
protocols:
(
{ name: "regex"; regex_patterns: [ "rutschle.net" ]; host: "ns1.rutschle.net"; port: "53"; },
{ name: "anyprot"; host: "localhost"; port: "9099"; }
);