From owner-freebsd-questions@FreeBSD.ORG Sat Feb 24 03:36:09 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 83DB016A404 for ; Sat, 24 Feb 2007 03:36:09 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.freebsd.org (Postfix) with ESMTP id E982213C4A3 for ; Sat, 24 Feb 2007 03:36:08 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so831844nfc for ; Fri, 23 Feb 2007 19:36:07 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sLlzPxQMsFz8KoSUh1UqHWkP7xzPcuH0nb/PzHilYCDcJGHXrOW0nQ6+gTk1dJh4cab97ayOeJ7lhxz/aEG1vhJadn41u1q5sbfmya2RMGKdcRnOd88iS7SuTaCKIo4ZeCrI1kUD5cBHe2aKkLxs3rAthe0ZXp9c+lGPJzOyUUg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=judij+jSUYzSnkqSJcE6fbfilaM9P2+W4Auln3S1jb6gnLMl01Vmv1HbSytbm2YVuryMbZTdFID95DW0KoS45F0HL3NVMgfWcfpDVQ36xJBCANRZ13n2tiBGxtWCke1jjga7/4tMVT+SIpuO8Fyq3hhcT8p+ixxi7SK6c+BCmOU= Received: by 10.82.163.13 with SMTP id l13mr987984bue.1172288167494; Fri, 23 Feb 2007 19:36:07 -0800 (PST) Received: by 10.82.191.16 with HTTP; Fri, 23 Feb 2007 19:36:07 -0800 (PST) Message-ID: <80f4f2b20702231936m9725099v6e638685273630f0@mail.gmail.com> Date: Sat, 24 Feb 2007 03:36:07 +0000 From: "Jim Stapleton" To: "Harald Schmalzbauer" In-Reply-To: <200702240430.09674.h.schmalzbauer@omnisec.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <80f4f2b20702231107p1cf7f4f3n5896aa7e8ef0ecaf@mail.gmail.com> <200702240408.40222.h.schmalzbauer@omnisec.de> <80f4f2b20702231921x603c759g9b143b24edfaa7d5@mail.gmail.com> <200702240430.09674.h.schmalzbauer@omnisec.de> Cc: freebsd-questions@freebsd.org Subject: Re: problems with jail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Feb 2007 03:36:09 -0000 OK, I have a fairly sizeable list, but it looks like most stuff is bound to 192.168.1.84 except two things, one is closed, and the other is syslog (guess I have to look at it's man page). It also looks like there is something else there. I guess I'll be looking at the netstat man page to figure out how to get the name of the daemon touch it: > netstat -f inet -a; netstat -f inet6 -a Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 192.168.1.84.57256 ar-in-f18.google.http ESTABLIS= HED tcp4 0 0 192.168.1.84.62237 caim-m05b.blue.a.aol TIME_WAI= T tcp4 0 0 192.168.1.84.58627 oam-d17a.blue.ao.aol TIME_WAI= T tcp4 0 0 192.168.1.84.64265 205.188.7.124.aol TIME_WAI= T tcp4 0 0 192.168.1.84.ssh *.* LISTEN tcp4 0 0 *.* *.* CLOSED tcp4 0 0 192.168.1.84.61774 ar-in-f19.google.http ESTABLIS= HED tcp4 0 0 192.168.1.84.53732 ar-in-f83.google.http ESTABLIS= HED udp4 0 0 *.syslog *.* Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) udp6 0 0 *.syslog *.* On 2/24/07, Harald Schmalzbauer wrote: > Am Samstag, 24. Februar 2007 04:21 schrieb Jim Stapleton: > > I did the ssh after you did the previous mail, but it didn't fix the > > problem. > > > > I'm not having problems senmail or named, they were simply mentioned > > in the man page. I never had named running, and I didn't realize > > sendmail was running. The latter was my problem with sendmail. That > > problem as I said is fixed. Beyond that I don't even know which > > process on my system are daemons at this point, except usbd and devd, > > neither of which (to my knowledge) should be listening to any sockets. > > Actually there are a couple of kernel processes (pagedaemon, vmdaemon, > > and bufdaemon), but I don't know where to find documentation on them, > > X, and KDM. I can't find anything on limiting sockets of these to a > > specific IP only. > > To see what daemons are listening you can use 'netstat -f inet -a'. Then = you > see if you have to limit some other daemons (use -f inet6 for IPv6 if > configured). > > Please post the output of the command above to see why you get ssh connec= tions > to your jail IP answered by the host's ssh daemon. > > -Harry > > -- > OmniSEC - UNIX und Windows Netzwerke - Sicher > Harald Schmalzbauer > Flintsbacher Str. 3 > 80686 M=FCnchen > +49 (0) 89 18947781 > +49 (0) 160 93860101 >