git ssb

0+

cel / sslh



Tree:
📄Makefile
📄README
📁scripts
📄sslh.c
📄sslh.pod
README
1===== sslh -- A ssl/ssh multiplexer. =====
2
3sslh lets one accept both HTTPS and SSH connections on the
4same port. It makes it possible to connect to an SSH server
5on port 443 (e.g. from inside a corporate firewall) while
6still serving HTTPS on that port.
7
8==== Compile and install ====
9
10If you're lucky, the Makefile will work for you:
11
12make install
13
14(see below for configuration hints)
15
16
17Otherwise:
18
19Compilation instructions:
20
21Solaris:
22 cc -o sslh sslh.c -lresolv -lsocket -lnsl
23
24LynxOS:
25 gcc -o tcproxy tcproxy.c -lnetinet
26
27Linux:
28 cc -o sslh sslh.c -lnet
29or:
30 cc -o sslh sslh.c
31
32To compile with libwrap support:
33 cc -o sslh -DLIBWRAP sslh.c -lwrap
34
35To install:
36
37make
38cp sslh /usr/local/sbin
39cp scripts/etc.init.d.sslh /etc/init.d/sslh
40cp scripts/etc.default.sslh /etc/default/sslh
41
42and probably create links in /etc/rc<x>.d so that the server
43start automatically at boot-up, e.g. under Debian:
44update-rc.d sslh defaults
45
46
47
48==== Configuration ====
49
50You can edit settings in /etc/default/sslh:
51
52LISTEN=ifname:443
53SSH=localhost:22
54SSL=localhost:443
55
56A good scheme is to use the external name of the machine in
57$LISTEN, and bind httpd to localhost:443 (instead of all
58binding to all interfaces): that way, https connections
59coming from inside your network don't need to go through
60sslh, and sslh is only there as a frontal for connections
61coming from the internet.
62
63
64==== Libwrap support ====
65
66Sslh can optionnaly perform libwrap checks for the sshd
67service: because the connection to sshd will be coming
68locally from sslh, sshd cannot determine the IP of the
69client.
70
71Comments? questions? sslh@rutschle.net
72
73HISTORY
74
75v1.6: 25APR2009
76 Added -V, version option.
77 Install target directory configurable in Makefile
78 Changed syslog prefix in auth.log to "sslh[%pid]"
79 Man page
80 new 'make install' and 'make install-debian' targets
81 PID file now specified using -P command line option
82 Actually fixed zombie generation (the v1.5 patch got
83 lost, doh!)
84
85
86v1.5: 10DEC2008
87 Fixed zombie generation.
88 Added support scripts (), Makefile.
89 Changed all 'connexions' to 'connections' to please
90 pesky users. Damn users.
91
92v1.4: 13JUL2008
93 Added libwrap support for ssh service (Christian Weinberger)
94 Only SSH is libwraped, not SSL.
95
96v1.3: 14MAY2008
97 Added parsing for local interface to listen on
98 Changed default SSL connection to port 442 (443 doesn't make
99 sense as a default as we're already listening on 443)
100 Syslog incoming connections
101
102v1.2: 12MAY2008
103 Fixed compilation warning for AMD64 (Thx Daniel Lange)
104
105v1.1: 21MAY2007
106 Making sslhc more like a real daemon:
107 * If $PIDFILE is defined, write first PID to it upon startup
108 * Fork at startup (detach from terminal)
109 (thanks to http://www.enderunix.org/docs/eng/daemon.php -- good checklist)
110 * Less memory usage (?)
111
112v1.0:
113 * Basic functionality: privilege dropping, target hostnames and ports
114 configurable.
115
116

Built with git-ssb-web