configuration examples for fork option

This commit is contained in:
Yves Rutschlé 2018-01-06 22:42:39 +00:00
parent 141e4b4f83
commit 2c3518beb4
2 changed files with 4 additions and 2 deletions

View File

@ -20,7 +20,7 @@ listen:
protocols: protocols:
( (
{ name: "ssh"; service: "ssh"; host: "localhost"; port: "22"; }, { name: "ssh"; service: "ssh"; host: "localhost"; port: "22"; fork: true; },
{ name: "openvpn"; host: "localhost"; port: "1194"; }, { name: "openvpn"; host: "localhost"; port: "1194"; },
{ name: "xmpp"; host: "localhost"; port: "5222"; }, { name: "xmpp"; host: "localhost"; port: "5222"; },
{ name: "http"; host: "localhost"; port: "80"; }, { name: "http"; host: "localhost"; port: "80"; },

View File

@ -39,6 +39,8 @@ listen:
# 1 to log each incoming connection # 1 to log each incoming connection
# keepalive: Should TCP keepalive be on or off for that # keepalive: Should TCP keepalive be on or off for that
# connection (default is off) # connection (default is off)
# fork: Should a new process be forked for this protocol?
# (only useful for sslh-select)
# #
# Probe-specific options: # Probe-specific options:
# tls: # tls:
@ -59,7 +61,7 @@ listen:
protocols: protocols:
( (
{ name: "ssh"; service: "ssh"; host: "localhost"; port: "22"; keepalive: true; }, { name: "ssh"; service: "ssh"; host: "localhost"; port: "22"; keepalive: true; fork: true; },
{ name: "http"; host: "localhost"; port: "80"; }, { name: "http"; host: "localhost"; port: "80"; },
# match BOTH ALPN/SNI # match BOTH ALPN/SNI