From owner-freebsd-questions@FreeBSD.ORG Mon May 12 03:56:27 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34F8137B401 for ; Mon, 12 May 2003 03:56:27 -0700 (PDT) Received: from doriath.saers.com (doriath.religion.no [193.156.192.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5B5843FB1 for ; Mon, 12 May 2003 03:56:26 -0700 (PDT) (envelope-from niklasmls@doriath.saers.com) Received: by doriath.saers.com (Postfix, from userid 1001) id D51A13E82; Mon, 12 May 2003 12:56:22 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by doriath.saers.com (Postfix) with ESMTP id CED133E3B for ; Mon, 12 May 2003 12:56:22 +0200 (CEST) Date: Mon, 12 May 2003 12:56:22 +0200 (CEST) From: Niklas Saers Mailinglistaccount To: questions@freebsd.org Message-ID: <20030512124842.F32710@doriath.saers.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: SSH nat-forwarded X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2003 10:56:27 -0000 Hi, I've got a firewall that forwards ports to SSH-ports on boxes it protects. This has been good for all 4-STABLE boxes, but I've recently put up a CURRENT box. I can SSH to the firewall and from the firewall to the CURRENT box, but I do not get a proper connection when having it forwarded through the firewall. Let's say my external box 'ext' is on 193.1.2.3, my firewall 'fw' is on 193.2.2.1 and my internal CURRENT-box on 192.168.5.1 'fw' masquerades using "/sbin/natd -interface fxp0 -redirect_port 192.168.5.1:22 5051" and "firewall": ipfw add divert 8668 ip from any to any via fxp0 ipfw add allow ip from any to any from 'fw' "telnet 192.168.5.1 22" gives the classic "SSH-1.99"-etc while from 'ext' "telnet 192.2.2.1 5051" gives no greeting at all. It listens and terminates the connection after a short while. Any suggestions to why ssh doesn't connect correctly? I've forwarded other ports to other services on the same box and it works flawlessly. Thus I suspect that 'sshd' understands I've forwarded this connection and doesn't like it the least bit. Can I turn of this hypersensitivity? Cheers Nik