From owner-freebsd-questions Thu Jan 4 5:44:13 2001 From owner-freebsd-questions@FreeBSD.ORG Thu Jan 4 05:44:12 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from bcfw1d.bridge.com (bcfw1d.ext.bridge.com [167.76.159.31]) by hub.freebsd.org (Postfix) with ESMTP id 53BB737B400 for ; Thu, 4 Jan 2001 05:44:11 -0800 (PST) Received: (from uucp@localhost) by bcfw1d.bridge.com (8.10.2/8.10.2) id f04Dj4I29081; Thu, 4 Jan 2001 07:45:05 -0600 (CST) Received: from unknown(167.76.56.34) by bcfw1d.bridge.com via smap (V5.5) id xma028895; Thu, 4 Jan 01 07:44:47 -0600 Received: from mnmailhost (mnmailhost.bridge.com [167.76.155.14]) by mail1srv.bridge.com (8.8.8/8.7.3) with SMTP id HAA04132; Thu, 4 Jan 2001 07:43:42 -0600 (CST) Received: from 89-7 by mnmailhost (SMI-8.6/SMI-4.1) id IAA02888; Thu, 4 Jan 2001 08:43:34 -0500 To: freebsd-questions@FreeBSD.ORG Subject: Re: Connection refused to my own port References: <3A541FCC.BE6F155B@gorean.org> From: Tim Ayers Date: 04 Jan 2001 07:43:31 -0600 In-Reply-To: Doug Barton's message of "Wed, 03 Jan 2001 23:01:32 -0800" Message-ID: Lines: 29 User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.5 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> "D" == Doug Barton writes: D> Tim Ayers wrote: >> I have written a simple C echo server that accepts a connection and >> echoes back whatever is sent to it. This works fine if I connect >> from the same machine or a machine on the same subnet as the server >> machine. But if I try to connect from a machine outside the subnet I >> get a "Connection refused" message. How can I allow connections to my >> "custom" port from outside my subnet? D> Fix your hosts.allow file? Thanks for the reply. I think my hosts.allow file is okay. Or more accurately I think my hosts.allow file is not the problem. It has ALL : ALL : allow as the first line. My understanding is that it should not be denying anything, right? I also confirmed that my inetd is started with '-wW', which I believe is necessary for the hosts.allow file to be used. I'm definitely stumped at the moment, but that's not too surprising since I don't know much about FreeBSD. :-/ One other tidbit is that in my inetd.conf I only have the ftp and telnet entries uncommented. All other services are commented out. Maybe something else takes care of this? Thanks a lot for the help. Hope you have a very nice day, :-) Tim Ayers (tayers@bridge.com) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message