| Linode Forum https://forum.linode.com/ |
|
| Telnet localhost 25 test not working - SOLVED! https://forum.linode.com/viewtopic.php?f=19&t=3766 |
Page 1 of 2 |
| Author: | Bedevere [ Fri Dec 26, 2008 7:43 pm ] |
| Post subject: | Telnet localhost 25 test not working - SOLVED! |
Maybe someone can clear this mystery up. I am running SuSe 11.1 and am testing out an Exim config, and wanted to confirm everything. I ran "telnet localhost 25" and got "trying 127.0.0.1...." and it just sits there. My local carrier seems to block outbound 25 so i knew testing from home was a waste. I have already received mail form the system so I know it is working but I am troubled that I cannot telnet locally. I also want to be sure it will accept incoming mail before I move the domain dns over. * I have tried without a firewall installed * I have confirmed exim is set up on 25 and 587 (using daemon_smtp_ports = 25 : 587) I have been able to telenet in from home on port 587. * Exim hostlist contains 127.0.0.1 * Telnet doesn't seem to want to work for anything local! Anyway if I am missing something please let me know. I have been running SuSE 10x servers for work and at home without any issue so I am a little baffled. As an aside I did remove the default SuSE firewall and am using Firehol, but as I mentioned above even without a firewall installed localhost telnet doesn't seem to work. Thanks in advance! |
|
| Author: | Alucard [ Fri Dec 26, 2008 7:52 pm ] |
| Post subject: | |
post the output of the following (run as root) /sbin/ifconfig -a netstat -anp |grep " LISTEN " grep "^[^#]" /etc/hosts |
|
| Author: | Bedevere [ Sat Dec 27, 2008 3:26 am ] |
| Post subject: | |
First I hope you dont mind I Xed out my IP. Secondly I noticed that in my hosts has my IP as "server1.oi-guild.com" but I havn't moved my domain over yet. Should I make that the default Linode DNS entry (The members.linode.com one)? Code: server1:~ # /sbin/ifconfig -a |
|
| Author: | Alucard [ Sat Dec 27, 2008 10:31 am ] |
| Post subject: | |
Ok, that confirms that exim is listening on all available addresses (ipv4 and v6) on ports 25 and 587. Try: Code: ifup lo then restarting exim, and try telnet again. You're missing a key line, here's part of mine: Code: alucard@thrawn:~$ /sbin/ifconfig lo The name in /etc/hosts shouldn't matter unless you need to use the old server1.oi-guild.com from this Linode. |
|
| Author: | weave [ Sat Dec 27, 2008 5:13 pm ] |
| Post subject: | Other reasons |
There's a lot of reasons why you can't connect to a port even though it's showing as listening. Some other areas to check besides what's been already mentioned are /etc/hosts.deny and any firewall rules (iptables -L -n) Also check your /var/log/messages and secure files for hints. |
|
| Author: | Bedevere [ Sat Dec 27, 2008 11:27 pm ] |
| Post subject: | |
ifup gets me: Code: server1:~ # ifup lo Guess that explains part of it. I have been letting Linode manage my IP via dhcp and have not set my address to static, which I guess I should. /etc/hosts.deny: http-rman : ALL EXCEPT LOCAL /etc/hosts.allow is completely remarked out. /var/log/warn had this: Dec 27 21:55:37 server1 ifup: Cannot enable interface lo. Dec 27 21:55:37 server1 ifup-route: interface lo is not up Dec 27 21:55:51 server1 ifup: Cannot enable interface lo. Dec 27 21:55:51 server1 ifup-route: interface lo is not up I think we have a problem.... |
|
| Author: | weave [ Sun Dec 28, 2008 9:27 am ] |
| Post subject: | ifcfg-lo |
Do you have an ifcfg-lo file somewhere? On my distro (Centos) it's in /etc/sysconfig/network-scripts. If so, what is in it? Mine says... DEVICE=lo IPADDR=127.0.0.1 NETMASK=255.0.0.0 NETWORK=127.0.0.0 # If you're having problems with gated making 127.0.0.0/8 a martian, # you can change this to something else (255.255.255.255, for example) BROADCAST=127.255.255.255 ONBOOT=yes NAME=loopback On my ubuntu install at home it has a file /etc/network/interfaces and it contains this... auto lo iface lo inet loopback |
|
| Author: | Bedevere [ Sun Dec 28, 2008 11:13 am ] |
| Post subject: | |
Code: ifcfg-lo: Code: ifcfg-eth0: I have tried to set my static address to the settings I see in my control panel but I get an error on the netmask onm reboot...then its back to the ajax console...and I need to reset the character set because that screen isn't easy. I am confised as to why "IPADDR_2=127.0.0.2/8" i in there.... Also should I have a "NAME=loopback" in the ifcfg-lo? I thought Name was an optional field. |
|
| Author: | Bedevere [ Sun Dec 28, 2008 11:16 am ] |
| Post subject: | |
I am seeing soemthing about the ifroute-lo file that one might need to put "127/8" in it. Any thoughts on that? EDIT: Ignore this - I have that already... To add tot he mystery mySQL is connecting via localhost fine. So it may be purely a telnet issue? |
|
| Author: | Bedevere [ Sun Dec 28, 2008 11:40 am ] |
| Post subject: | |
OK seems lo is not coming up: Code: FireHOL: Saving your old firewall to a temporary file: OK (note: Xs are mine) Now what seems odd is if eth0 is not up how am I connecting? |
|
| Author: | mwalling [ Sun Dec 28, 2008 12:20 pm ] |
| Post subject: | |
try bringing up lo by hand: Code: ifconfig lo 127.0.0.1 netmask 255.0.0.0 see if its a real problem, or overcomplicated do everything including cleaning the kitchen sink distro networking scripts |
|
| Author: | Internat [ Sun Dec 28, 2008 6:07 pm ] |
| Post subject: | |
When you said you can connect to mysql on localhost, are you typing "localhost" or "127.0.0.1" ? If you use "localhost", it will connect via Unix Sockets, rather then via the Loop back adapter, where as if you use 127.0.0.1 it connects via TCP.. |
|
| Author: | Bedevere [ Sun Dec 28, 2008 10:08 pm ] |
| Post subject: | |
mwalling wrote: try bringing up lo by hand:
Code: ifconfig lo 127.0.0.1 netmask 255.0.0.0 see if its a real problem, or overcomplicated do everything including cleaning the kitchen sink distro networking scripts This worked! I was able to telnet localhost after I ran that....so how to fix it? |
|
| Author: | mwalling [ Sun Dec 28, 2008 11:02 pm ] |
| Post subject: | |
well, somethings screwed up somewhere in your distro's configs. using ifconfig to bring it up is really a band-aid... you should see what is broken and fix it. |
|
| Author: | seanmb [ Mon Dec 29, 2008 2:26 am ] |
| Post subject: | |
I am seeing the same behavior on recent SUSE 11.0 linode distribution load. By setting Code: # grep DEBUG /etc/sysconfig/network/config I was able to get a bit more details out of 'ifup' Code: # ifup lo -o rc onboot (the parameters on 'ifup' are as it is called in /etc/init.d/network) Some how it seems to want to go into a section that is trying to set wireless parameters and errors out. I am plugging away trying to trace this down, but my ability to read shell scrips as complex as 'ifup' is a little weak. So the going is rather slow. Anyone with a suggestion on where to look would be welcome. |
|
| Page 1 of 2 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|