summaryrefslogtreecommitdiff
path: root/net/sslh
diff options
context:
space:
mode:
authorapb <apb>2010-07-31 17:04:47 +0000
committerapb <apb>2010-07-31 17:04:47 +0000
commit37848fbd246262d69946e76fbdd60e29322bd9a8 (patch)
treef6a01773116e317d36febe9a0acb2fa2759a430f /net/sslh
parent1dd740642e02c9cb262fca509504180444814a04 (diff)
downloadpkgsrc-37848fbd246262d69946e76fbdd60e29322bd9a8.tar.gz
Add sslh-1.7a.
sslh lets one accept both HTTPS and SSH connections on the same port.
Diffstat (limited to 'net/sslh')
-rw-r--r--net/sslh/DESCR19
-rw-r--r--net/sslh/Makefile25
-rw-r--r--net/sslh/PLIST3
-rw-r--r--net/sslh/distinfo5
4 files changed, 52 insertions, 0 deletions
diff --git a/net/sslh/DESCR b/net/sslh/DESCR
new file mode 100644
index 00000000000..eb1b780e0eb
--- /dev/null
+++ b/net/sslh/DESCR
@@ -0,0 +1,19 @@
+sslh lets one accept both HTTPS and SSH connections on
+the same port. It makes it possible to connect to an SSH
+server on port 443 (e.g. from inside a corporate firewall,
+which almost never block port 443) while still serving HTTPS
+on that port.
+
+The idea is to have sslh listen to the external 443 port,
+accept the incoming connections, work out what type of
+connection it is, and then fordward to the appropriate
+server.
+
+The protocol detection is made based on a small difference
+between SSL and SSH: an SSL client connecting to a server
+speaks first, whereas an SSH client expects the SSH server
+to speak first (announcing itself with a banner). sslh
+waits for some time for the incoming connection to send data.
+If it does before the timeout occurs, it is supposed to be
+an SSL connection. Otherwise, it is supposed to be an SSH
+connection.
diff --git a/net/sslh/Makefile b/net/sslh/Makefile
new file mode 100644
index 00000000000..8fe78f89335
--- /dev/null
+++ b/net/sslh/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2010/07/31 17:04:47 apb Exp $
+#
+
+DISTNAME= sslh-1.7a
+CATEGORIES= net
+MASTER_SITES= http://www.rutschle.net/tech/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.rutschle.net/tech/sslh.shtml
+COMMENT= Multiplex ssl and ssh connections on the same port
+LICENSE= gnu-gpl-v2
+
+USE_TOOLS= gmake pod2man
+USE_LANGUAGES= c
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+INSTALLATION_DIRS= sbin ${PKGMANDIR}/man8
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/sslh ${DESTDIR}${PREFIX}/sbin/.
+ ${INSTALL_MAN} ${WRKSRC}/sslh.8.gz \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/.
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/sslh/PLIST b/net/sslh/PLIST
new file mode 100644
index 00000000000..5514480dc82
--- /dev/null
+++ b/net/sslh/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2010/07/31 17:04:47 apb Exp $
+sbin/sslh
+man/man8/sslh.8
diff --git a/net/sslh/distinfo b/net/sslh/distinfo
new file mode 100644
index 00000000000..3db3088e481
--- /dev/null
+++ b/net/sslh/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2010/07/31 17:04:47 apb Exp $
+
+SHA1 (sslh-1.7a.tar.gz) = 11bcb9fd4285b06819d16db638ca111d8d43577a
+RMD160 (sslh-1.7a.tar.gz) = 79a156469ba4b10c493851be28d15898eaef4731
+Size (sslh-1.7a.tar.gz) = 9733 bytes