Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 May 2002 19:24:16 -0700
From:      James Long <list@museum.rain.com>
To:        Brent Kearney <brentk@sfu.ca>
Cc:        questions@FreeBSD.ORG
Subject:   Re: can't connect to localhost
Message-ID:  <20020509192416.A3635@ns.museum.rain.com>
In-Reply-To: <20020509172438.A25839@sfu.ca>; from brentk@sfu.ca on Thu, May 09, 2002 at 05:24:38PM -0700
References:  <20020509152242.A26685@sfu.ca> <LPBBIGIAAKKEOEJOLEGOMEAODAAA.barbish@a1poweruser.com> <20020509172438.A25839@sfu.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 09, 2002 at 05:24:38PM -0700, Brent Kearney wrote:
> 
> I renumbered them.  Now no two rules have the same number.  I
> get exactly the same effect though.

In my experience, the post about rule numbering is incorrect.  You can 
indeed have multiple ipfw rules with identical rule numbers, and they are 
checked sequentially, in the order you "ipfw add" them, except of course 
in cases of divert, skipto, etc.  The natd man page mentions this, plus
I have at times had multiple firewall rules with the same number.

Does your ifconfig look okay WRT lo0?  If you set the firewall completely
open, can you ping lo0?  And does telnet work then?

ipfw -f flush
ipfw add 100 allow all from any to any
ping -c3 localhost
telnet localhost 25

If that works, then review your firewall rules.  If the ping fails, 
check your loopback interface configuration.  If the ping is okay,
but the telnet fails, ensure that you do indeed have an MTA listening
on port 25, and that inetd isn't getting in your way.  With sendmail,
e.g., you want the smtp lines in inetd commented out.

And if all else fails, ask someone more knowledgeable than I.  :)



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020509192416.A3635>