[plug] Can't connect to ports on localhost
Ben New
ben at leftclick.com.au
Tue Dec 2 11:17:16 WST 2003
Nigel Duff wrote:
>Hi all,
>
>I put Debian Woody 3.0R1 on this box on the weekend and did a
>dist-upgrade to testing. I then installed a 2.4.21 kernel.
>
>Having fetchmail fail to connect to my mail server (then exam3, tried 4
>and now postfix before i realised what the problem was) i realise i
>can't connect to any local ports.
>
>Telneting (ssh'ing) to 22, 25, 80 etc times out. X isn't connecting to the
>font server. Trying to start daemons like portsentry can't bind to ports.
>
>However i can connect to these ports from outside (192.168.1.*, other
>shell accounts, browsers connect to the web server). I have cleared the
>firewall and iptables has an ACCEPT policy. hosts.allow/hosts.deny look fine.
>
>I noticed there wasn't a loopback in ifconfig but bringing up lo doesn't
>make a difference (whats correct policy, should there always be a lo
>interface?).
>
>
>ping -c4 localhost gives 100% packet loss.
>
>Ahhh, a traceroute 127.0.0.1 gives;
>
>traceroute to 127.0.0.1 (127.0.0.1), 30 hops max, 38 byte packets
> 1 i014-016.nv.iinet.net.au (203.59.14.16) 118.748 ms 109.731 ms
>110.133 ms
> 2 per-qv1-core2.iinet.net.au (203.59.49.163) 129.719 ms 130.099 ms
>119.674 ms
> 3 203.59.49.177 (203.59.49.177) 109.919 ms 116.820 ms 100.197 ms
> 4 hsrp-border.wa.iinet.net.au (203.59.24.247) 129.816 ms 111.988 ms
>107.777 ms
> 5 * * *
>
>
Scary!
That's your loopback not working by the looks of it. My ifconfig output:
eth0 Link encap:Ethernet HWaddr ab:cd:ef:12:34:56
inet addr:192.168.0.5 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:454582 errors:0 dropped:0 overruns:0 frame:0
TX packets:455146 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:83310146 (79.4 Mb) TX bytes:97316350 (92.8 Mb)
Interrupt:11 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:112 errors:0 dropped:0 overruns:0 frame:0
TX packets:112 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8322 (8.1 Kb) TX bytes:8322 (8.1 Kb)
You'll probably have finished fixing it by the time this gets on the
list as it looks like you're on the right track already.
Regards, Ben
>Is this a defaultroute issue? Everything under /etc/network looks ok.
>
>Nigel
>
>Sorry if this email seems disjointed. I have been writing it while
>testing.
>
>
>
>
>
>_______________________________________________
>plug mailing list
>plug at plug.linux.org.au
>http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug
>
>
>
--
Ben New
ben at leftclick.com.au
Leftclick Software Development
http://www.leftclick.com.au/
More information about the plug
mailing list