Localhost not responding
Any ideas on where to look for the issue? My /etc/hosts file contains the following:
127.0.0.1 localhost localhost.localdomain
Checked /etc/network/interfaces and it looks like the loopback is being started with:
auto lo
iface lo inet loopback
Have another tech that was on the server, but no access to him now and trying to figure out what might have come unglued.
Thanks for any help,
Paul
16 Replies
If you have a firewall set up, make sure you are allowing traffic on the local interface. My guess is since you can't locally ping 27.0.0.1, it's firewall related.
You might include what version of Ubuntu you are running, along with your Postfix configuration, so others might chime in.
–
Travis
I guess I figured it wasn't a postfix issue, and figured the error postfix is was sending was congruent with the other localhost issues, but can certainly increase logging to see if that yields any more info.
Thanks for the advice,
P
Hope that helps!
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
````
# ifconfig lo
Is your routing table intact?
# route -n
ifconfig lo
Link encap:Local Loopback
LOOPBACK MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
route -n
174.143.255.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.176.64.0 0.0.0.0 255.255.224.0 U 0 0 0 eth1
10.191.192.0 10.176.64.1 255.255.192.0 UG 0 0 0 eth1
10.176.0.0 10.176.64.1 255.248.0.0 UG 0 0 0 eth1
0.0.0.0 174.143.255.1 0.0.0.0 UG 100 0 0 eth0
````
@pmmenneg:
ifconfig lo
LOOPBACK MTU:16436 Metric:1
Well, my route -n doesn't show anything for 127.0.0.1 neither… BUT ifconfig should say "UP LOOPBACK RUNNING", so… it's down.
What's in your /etc/network/interfaces, if you have one?
# The loopback network interface
auto lo
iface lo inet loopback
# Load iptables rules
pre-up iptables-restore < /etc/iptables.up.rules
# The primary network interface
# Uncomment this and configure after the system has booted for the first time
auto eth0
iface eth0 inet static
address 174.143.255.128
netmask 255.255.255.0
gateway 174.143.255.1
dns-nameservers 72.3.128.240 72.3.128.241
auto eth1
iface eth1 inet static
address 10.176.71.71
netmask 255.255.224.0
up route add -net 10.176.0.0 netmask 255.248.0.0 gw 10.176.64.1
down route add -net 10.176.0.0 netmask 255.248.0.0 gw 10.176.64.1
up route add -net 10.191.192.0 netmask 255.255.192.0 gw 10.176.64.1
down route add -net 10.191.192.0 netmask 255.255.192.0 gw 10.176.64.1
@pmmenneg:
Tried ifconfig lo up and it seemed to do the trick. Rebooted and all is well… no idea why I wouldn't need to do a ifconfig lo up again, but have checked and the localhost is up… thanks for all the help!
Had you rebooted since you started messing with it? Though it sounds ludicrous, the other guy could have done ifconfig lo down