From owner-freebsd-current Mon Mar 6 12:29:47 2000 Delivered-To: freebsd-current@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 0F14237BE48 for ; Mon, 6 Mar 2000 12:29:43 -0800 (PST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id NAA55406; Mon, 6 Mar 2000 13:29:41 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id NAA61443; Mon, 6 Mar 2000 13:29:32 -0700 (MST) Message-Id: <200003062029.NAA61443@harmony.village.org> To: "James E. Pace" Subject: Re: /usr/bin/ssh and SOCKS Cc: current@FreeBSD.ORG In-reply-to: Your message of "Mon, 06 Mar 2000 11:37:18 PST." References: Date: Mon, 06 Mar 2000 13:29:32 -0700 From: Warner Losh Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message "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