From owner-freebsd-questions Tue Apr 23 0:32:34 2002 Delivered-To: freebsd-questions@freebsd.org Received: from homemail.bjt.net (mailhub1.bjt.net [209.237.6.254]) by hub.freebsd.org (Postfix) with ESMTP id CA95537B404 for ; Tue, 23 Apr 2002 00:32:30 -0700 (PDT) Received: from foo.fake.primenet.com [209.237.31.190] by homemail.bjt.net with ESMTP (SMTPD32-7.06) id AC60D2F005A; Tue, 23 Apr 2002 00:25:20 -0700 Received: from baz.fake.primenet.com (baz [10.0.0.3]) by foo.fake.primenet.com (8.9.3/8.8.8) with ESMTP id AAA08598; Tue, 23 Apr 2002 00:32:25 -0700 (PDT) (envelope-from bko@idiom.com) Received: from baz.fake.primenet.com (localhost [127.0.0.1]) by baz.fake.primenet.com (8.12.2/8.12.2) with ESMTP id g3N7WQ0q064037; Tue, 23 Apr 2002 00:32:26 -0700 (PDT) (envelope-from bkogawa@baz.fake.primenet.com) Received: (from bkogawa@localhost) by baz.fake.primenet.com (8.12.2/8.12.2/Submit) id g3N7WPlU064034; Tue, 23 Apr 2002 00:32:25 -0700 (PDT) From: "Bryan K. Ogawa" Message-Id: <200204230732.g3N7WPlU064034@baz.fake.primenet.com> To: "Taylor Dondich" , questions@freebsd.org Subject: Re: Can Services Be Restricted To Certain Ports? In-Reply-To: <001f01c1e985$28e1e6a0$bba6ea18@penguin> References: <001f01c1e985$28e1e6a0$bba6ea18@penguin> Date: Tue, 23 Apr 2002 00:32:25 -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In localhost.freebsd.questions, you wrote: > I'm running Samba on one of my webservers with two interfaces, 1 public, 1 > private. I've got the services only running on the private interface, > however the web swat interface is bound to port 901 and will respond on > either interface. This is defined in /etc/services. Is there a way to make > the service only listen on a certain interface? I believe that TCP wrappers will do what you want. Look at the inetd man page (specifically, the -w option and the section on TCP Wrappers) and host_access(5) (note -- section 5, not section 3, which describes the API). I haven't tried it, however. -- bryan k ogawa http://www.idiom.com/~bko/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message