From root@truffle0.soffen.com  Wed Dec 19 13:34:28 2001
Return-Path: <root@truffle0.soffen.com>
Received: from gateway.soffen.com (gateway.soffen.com [64.65.195.194])
	by hub.freebsd.org (Postfix) with SMTP id 8506637B417
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 19 Dec 2001 13:34:27 -0800 (PST)
Received: (qmail 45077 invoked from network); 19 Dec 2001 21:34:26 -0000
Received: from truffle0.soffen.com (64.65.195.196)
  by gateway.soffen.com with SMTP; 19 Dec 2001 21:34:26 -0000
Received: (qmail 7763 invoked by uid 0); 19 Dec 2001 21:34:24 -0000
Message-Id: <20011219213424.7762.qmail@truffle0.soffen.com>
Date: 19 Dec 2001 21:34:24 -0000
From: matt@soffen.com
Reply-To: matt@soffen.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Patch for RC (add multiple SSHD configurations)
X-Send-Pr-Version: 3.2

>Number:         33018
>Category:       conf
>Synopsis:       Patch for RC (add multiple SSHD configurations)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    des
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 19 13:40:01 PST 2001
>Closed-Date:    Mon Jul 14 03:43:01 PDT 2003
>Last-Modified:  Mon Jul 14 03:43:01 PDT 2003
>Originator:     Matthew Sofen &
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
none
>Environment:

	N/A

>Description:

This patch was written to allow a site to have multiple SSH Daemons on different ports with different config files.

This patch includes modification to the /etc/defaults/rc.conf and /etc/rc to handle reading in multiple sshd configs.


>How-To-Repeat:

	Attempt to run multiple ssh daemons on restarts

>Fix:
	This patch will allow a user to create N different instances of SSHD.  On startup RC will cycle through all the
	variables in the rc.conf file and run the daemons.

	To work around the problem explicitly call something like 
		/usr/sbin/sshd -f /etc/ssh/sshd_config_2.conf

>Release-Note:
>Audit-Trail:

From: Ceri <setantae@submonkey.net>
To: matt@soffen.com
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: conf/33018: Patch for RC (add multiple SSHD configurations)
Date: Wed, 19 Dec 2001 22:08:50 +0000

 Matthew, I think you forgot to attach the patch ;)
 
 Ceri

From: Ceri <setantae@submonkey.net>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: [matt@soffen.com: Re: conf/33018: Patch for RC (add multiple SSHD configurations)]
Date: Thu, 20 Dec 2001 00:35:54 +0000

 --YZ5djTAD1cGYuMQK
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Adding to audit trail.
 
 Ceri
 
 
 --YZ5djTAD1cGYuMQK
 Content-Type: message/rfc822
 Content-Disposition: inline
 
 Return-path: <matt@soffen.com>
 Envelope-to: setantae@localhost
 Delivery-date: Wed, 19 Dec 2001 23:50:04 +0000
 Received: from localhost.private.submonkey.net. ([127.0.0.1] helo=localhost)
 	by rhadamanth.private.submonkey.net with esmtp (Exim 3.33 #1)
 	id 16GqTM-0002H1-00
 	for setantae@localhost; Wed, 19 Dec 2001 23:50:04 +0000
 Delivered-To: setantae@eidosnet.co.uk
 Received: from mail.eidosnet.co.uk [195.40.67.19]
 	by localhost with POP3 (fetchmail-5.8.17)
 	for setantae@localhost (single-drop); Wed, 19 Dec 2001 23:50:04 +0000 (GMT)
 Received: (qmail 77202 invoked from network); 19 Dec 2001 23:40:03 -0000
 Received: from jupiter.easily.co.uk ([213.239.5.5]) (envelope-sender <matt@soffen.com>)
           by nectarine.mail.uk.easynet.net (qmail-ldap-1.03) with SMTP
           for <setantae@eidosnet.co.uk>; 19 Dec 2001 23:40:03 -0000
 Received: from gateway.soffen.com (gateway.soffen.com [64.65.195.194])
 	by jupiter.easily.co.uk (Postfix) with SMTP id 3DC901242
 	for <setantae@submonkey.net>; Wed, 19 Dec 2001 23:39:05 +0000 (GMT)
 Received: (qmail 56031 invoked from network); 19 Dec 2001 23:39:56 -0000
 Received: from callie.soffen.com (HELO callie) (64.65.195.183)
   by gateway.soffen.com with SMTP; 19 Dec 2001 23:39:56 -0000
 Message-Id: <4.2.0.58.20011219183926.00a50c80@pop3.norton.antivirus>
 X-Sender: matt/mail.soffen.com@pop3.norton.antivirus
 X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 
 Date: Wed, 19 Dec 2001 18:39:45 -0500
 To: Ceri <setantae@submonkey.net>
 From: Matthew Soffen <matt@soffen.com>
 Subject: Re: conf/33018: Patch for RC (add multiple SSHD configurations)
 In-Reply-To: <20011219220850.GA7690@rhadamanth>
 References: <20011219213424.7762.qmail@truffle0.soffen.com>
  <20011219213424.7762.qmail@truffle0.soffen.com>
 Mime-Version: 1.0
 Content-Type: text/plain; charset="us-ascii"; format=flowed
 
 At 10:08 PM 12/19/2001 +0000, you wrote:
 
 >Matthew, I think you forgot to attach the patch ;)
 >
 >Ceri
 
 D'oh! That's what I get for sending it when I was in a rush.
 
 --- /etc/rc.orig Mon Nov 20 07:03:04 2000
 +++ /etc/rc Wed Dec 19 16:07:12 2001
 @@ -453,6 +453,20 @@
 echo -n ' sshd';
 ${sshd_program:-/usr/sbin/sshd} ${sshd_flags}
 fi
 + while
 + [ $sshd -lt $sshd_count ]
 + do
 + eval enab=\$sshd_enable_$sshd
 + case ${enab} in
 + [Yy][Ee][Ss])
 + if [ -x ${sshd_program:-/usr/sbin/sshd} ]; then
 + echo -n ' sshd'$sshd;
 + ${sshd_program:-/usr/sbin/sshd} ${sshd_flags}_$sshd
 + fi
 + ;;
 + esac
 + sshd=`expr $sshd + 1`
 + done
 ;;
 esac
 --- /etc/defaults/rc.conf.orig Mon Nov 20 07:03:04 2000
 +++ /etc/defaults/rc.conf Wed Dec 19 16:23:59 2001
 @@ -149,9 +149,11 @@
 pppoed_provider="*" # Provider and ppp(8) config file entry.
 pppoed_flags="-P /var/run/pppoed.pid" # Flags to pppoed (if enabled).
 pppoed_interface="fxp0" # The interface that pppoed runs on.
 +sshd_count=1
 sshd_enable="NO" # Enable sshd
 -sshd_program="/usr/sbin/sshd" # path to sshd, if you want a different one.
 -sshd_flags="" # Additional flags for sshd.
 +sshd_enable_1="YES" # Enable sshd Conf 1
 +sshd_program_1="/usr/sbin/sshd" # path to sshd, if you want a different one.
 +sshd_flags_1="" # Additional flags for sshd.
 ### Network Time Services options: ###
 timed_enable="NO" # Run the time daemon (or NO).
 
 
 
 
 --YZ5djTAD1cGYuMQK--
Responsible-Changed-From-To: freebsd-bugs->des 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sat Jul 12 17:56:51 PDT 2003 
Responsible-Changed-Why:  
Assign to SSH maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=33018 
State-Changed-From-To: open->closed 
State-Changed-By: des 
State-Changed-When: Mon Jul 14 03:42:59 PDT 2003 
State-Changed-Why:  
Should be reformulated as a general rcNG issue. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=33018 
>Unformatted:
 Matthew Soffen
