From owner-freebsd-questions Thu May 9 17:11:22 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.mango-bay.com (mail.mango-bay.com [208.206.15.12]) by hub.freebsd.org (Postfix) with ESMTP id 7A8C437B406 for ; Thu, 9 May 2002 17:11:16 -0700 (PDT) Received: from barbish ([63.70.155.69]) by mail.mango-bay.com (Post.Office MTA v3.5.3 release 223 ID# 0-52377U2500L250S0V35) with SMTP id com; Thu, 9 May 2002 20:11:15 -0400 From: "Joe & Fhe Barbish" To: "Brent Kearney" Cc: "FBSDQ" Subject: RE: can't connect to localhost Date: Thu, 9 May 2002 20:11:13 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: <20020509152242.A26685@sfu.ca> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 You show this. 00100 allow ip from any to any via lo0 00100 allow ip from 127.0.0.1 to any 00100 allow ip from 123.45.67.89 to 127.0.0.1 00100 allow ip from 123.45.67.89 to 123.45.67.89 What is happening here is the second 100 rule replacess the first, then the third 100 rule replaces the second, so after all rules numbered 100 get read by ipfw at load rules time only rule 100 allow ip from 123.45.67.89 to 123.45.67.89 is really there. Renumber the 100 number rules like so 00101 allow ip from any to any via lo0 00102 allow ip from 127.0.0.1 to any 00103 allow ip from 123.45.67.89 to 127.0.0.1 00104 allow ip from 123.45.67.89 to 123.45.67.89 -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Brent Kearney Sent: Thursday, May 09, 2002 6:23 PM To: questions@freebsd.org Subject: can't connect to localhost Greetings, Any connections to localhost appear not to work: {foo}(~)$ telnet localhost 25 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Can't assign requested address telnet: Unable to connect to remote host My /etc/hosts file looks fine; this is the only mention of 127.0.0.1 in the file: 127.0.0.1 localhost localhost.foo.ca foo2.foo.ca (Real names and IP addresses have been obscured). I use ipfw with default to deny. My rules: 00100 allow ip from any to any via lo0 00100 allow ip from 127.0.0.1 to any 00100 allow ip from 123.45.67.89 to 127.0.0.1 00100 allow ip from 123.45.67.89 to 123.45.67.89 00200 deny ip from any to 127.0.0.0/8 via fxp0 00300 deny ip from 127.0.0.0/8 to any via fxp0 00400 allow ip from 123.45.67.89 to 123.45.67.0/24 00500 allow tcp from any to any established 00600 allow ip from any to any frag ... The others are service-specific; I think the 0100 rules should allow a local connection though, shouldn't they? Any clues appreciated. Please CC: me your reply, as I'm not a list subscriber. Thanks, Brent To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message