Date: Sun, 2 Jun 2002 19:34:23 -0500 From: rahermon@iastate.edu To: <sroberts@dsl.pipex.com> Cc: <freebsd-questions@FreeBSD.ORG> Subject: RE: Unable to connect to localhost Message-ID: <000301c20a96$68e7a960$8404a8c0@TheGetto> In-Reply-To: <1023056794.315.106.camel@Demon.Strobe.org>
next in thread | previous in thread | raw e-mail | index | archive | help
To see the rules will be helpful. In my firewall the first two rules are the following. # Allow loopbacks, deny imposters ${fwcmd} add 100 pass all from any to any via lo0 ${fwcmd} add 200 deny all from any to 127.0.0.0/8 If I understood correctly, once a rule is matched the rest are skipped. I hope it helps. Regards, Ramon > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of S. Roberts > Sent: Sunday, June 02, 2002 5:27 PM > To: FreeBSD-Questions > Subject: Unable to connect to localhost > > > Hello, > Might be a simple one for many of you, but I kinda > thought I had this sorted.., not! > > I thought I'd check the currently installed version of > sendmail running on a FreeBSD system here., and got this: > # date > Sun Jun 2 23:16:04 BST 2002 > # exit > exit > $ telnet localhost 25 > Trying ::1... > telnet: connect to address ::1: Connection refused > Trying 127.0.0.1... > telnet: connect to address 127.0.0.1: Permission denied > telnet: Unable to connect to remote host > $ > > I then check /var/log/security, and see: > $ su > Password: > # tail /var/log/security > Jun 2 23:16:15 <snip> /kernel: Connection attempt to TCP > ::0001:25 from ::0001:1207 > Jun 2 23:16:15 <snip> /kernel: ipfw: 910 Deny TCP > 127.0.0.1:1208 127.0.0.1:25 out via lo0 > # > > I check what tcpdmatch says about the user's priviledges: > $ tcpdmatch telnetd <user> > warning: telnetd: no such process name in /etc/inetd.conf > warning: <user>: hostname alias > warning: (official name: <domain name>) > client: hostname <host name> > client: address <ip> > server: process telnetd > matched: /etc/hosts.allow line <line number> > option: allow > access: granted > $ > I alo noticed that I can't access via url: > http://localhost:80 either - I get the > message: "The > connection was refused when attempting to contact localhost.". > > So., what's the matter here? I'm happy to post more details > if required (as in firewall rules and such). Thanks to all > those that might reply! > > Stacey > -- > Stacey Roberts B.Sc. (HONS) Computer Science > Network Systems Engineer > 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?000301c20a96$68e7a960$8404a8c0>