Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Mar 2000 13:29:32 -0700
From:      Warner Losh <imp@village.org>
To:        "James E. Pace" <jepace@pobox.com>
Cc:        current@FreeBSD.ORG
Subject:   Re: /usr/bin/ssh and SOCKS 
Message-ID:  <200003062029.NAA61443@harmony.village.org>
In-Reply-To: Your message of "Mon, 06 Mar 2000 11:37:18 PST." <Pine.GSO.4.05.10003061134200.27621-100000@shell1> 
References:  <Pine.GSO.4.05.10003061134200.27621-100000@shell1>  

next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.GSO.4.05.10003061134200.27621-100000@shell1> "James E. Pace" writes:
: I rebuilt -current on Friday, and OpenSSH does not work through a
: SOCKS firewall.
: 
: In my make.conf, I have "USE_SOCKS= YES", which is used in the
: ports/security/ssh port.
: 
: Any help?

Sure.  Here's what I have in my uncommitted tree.  It assumes that you
have socks installed already.  Known to work with the nec port, not
known one way or the other on dante.

Oh, there's lots of warnings from this, but it does work.

Warner

Index: scp/Makefile
===================================================================
RCS file: /home/imp/FreeBSD/CVS/src/secure/usr.bin/scp/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- scp/Makefile	2000/02/25 08:21:09	1.2
+++ scp/Makefile	2000/03/04 06:00:12
@@ -16,3 +16,8 @@
 
 LDADD+=	-lcrypto -lutil -lz -L${.OBJDIR}/../../lib/libssh -lssh
 DPADD+=	${LIBCRYPTO} ${LIBUTIL} ${LIBZ}
+
+.if defined(USE_SOCKS) && ((${USE_SOCKS} == "yes") || (${USE_SOCKS} == "YES"))
+LDADD+= -L/usr/local/lib -lsocks5
+CFLAGS+= -DSOCKS --include /usr/local/include/socks.h
+.endif
Index: ssh/Makefile
===================================================================
RCS file: /home/imp/FreeBSD/CVS/src/secure/usr.bin/ssh/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- ssh/Makefile	2000/03/03 20:33:53	1.4
+++ ssh/Makefile	2000/03/05 05:58:06
@@ -37,3 +37,8 @@
 
 LDADD+=	-L${.OBJDIR}/../../lib/libssh -lssh -lcrypto -lutil -lz
 DPADD+=	${LIBCRYPTO} ${LIBUTIL} ${LIBZ}
+
+.if defined(USE_SOCKS) && ((${USE_SOCKS} == "yes") || (${USE_SOCKS} == "YES"))
+LDADD+= -L/usr/local/lib -lsocks5
+CFLAGS+= -DSOCKS --include /usr/local/include/socks.h
+.endif


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003062029.NAA61443>