[sslh] sslh configuration file examples

Yves Rutschle yves at naryves.com
Thu May 2 13:48:59 CEST 2013


Hi Lars,

On Thu, May 02, 2013 at 01:59:52PM +0300, Lars Nooden wrote:
> Thanks for the neat program.  It works well and the manual page is quite 
> clear.  There is one thing missing, though, that is an example of a 
> configuration file.

There is an example.cfg in the distribution that I hope is
both complete and clear.

What's missing is a reference to that configuration file in
the man page, or maybe a manpage for the configuration file.

> /usr/local/sbin/sslh-fork -u sslh -p xx.yy.zz.aa:443 \
> 	--ssl 127.0.0.1:443 --ssh 127.0.0.1:22
> 
> What would that be if expressed as a configuration file?

This should do it:

user: "sslh";
listen: ( { host: "xxx.yy.zz.aa"; port: "443" });
protocols: (
     { name: "ssl"; host: "localhost"; port: "443"; probe: "builtin" ]; },
     { name: "ssh"; service: "ssh"; host: "localhost"; port:
     "22"; probe: "builtin"; } );

> The pointer to the libconfig manual is in the manual page,
> but it is a little too abstract for me.  

Agreed, that only talks about the syntax, which isn't very
helpful.

Cheers,
Y.




More information about the sslh mailing list