LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2007, 02:15 PM   #1
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Rep: Reputation: 16
timeout when telnetting to port 25


Hi,

I have this problem, when telnetting on my own machine to localhost 25 it works

when I try it from another host nada

I ran tcpdump -s 1492 port 25 , when telnetting i dont get any results. (externally to my machine)

I flushed all my iptables, even put logging on in my iptables for all connections towards port 25...
and dont get any attempts/loggings when telnetting to port 25...

any idea's ? I use exim4 but I checked the config and can't find any probs there + thats apllication layer, I definately seem to have a problem in a lower layer...

thx for helping me out

Last edited by bennethos; 03-03-2007 at 02:17 PM.
 
Old 03-03-2007, 02:44 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
i'd assume that exim is only listening on loopback or something... do you have a local_interfaces directive in your exim.conf? can you connect to the external ip address from the machine itself? that would connect to the interface but bypass any other networking.
 
Old 03-04-2007, 10:49 AM   #3
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Original Poster
Rep: Reputation: 16
Hi,

I've tried the following :

exim4 -bh 127.0.0.1 :

220 mydomain.com ESMTP Exim 4.50 Sun, 04 Mar 2007 16:47:59 +0100

---------

when I do exim4 -bh mywanip I get :
>>> host in hosts_connection_nolog? no (option unset)
>>> host in host_lookup? yes (matched "*")
>>> looking up host name for 195.207.150.236
>>> IP address lookup yielded mydomain.com

but I dont get the exim prompt... So I think you're right :-)

----

Any idea where I have to config this please ? my exim4 seems to have 60 config files :-/

thx
 
Old 03-04-2007, 10:55 AM   #4
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Once you figure out the config, check your netstat table.

Run
Code:
# netstat -ltn
. This will show you all the TCP ports that are listening on your host.
 
Old 03-04-2007, 11:00 AM   #5
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Original Poster
Rep: Reputation: 16
netstat -ltn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 mywanip:53 0.0.0.0:* LISTEN
tcp 0 0 mywanip:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8021 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN
tcp6 0 0 :::8022 :::* LISTEN
tcp6 0 0 :::25 :::* LISTEN
tcp6 0 0 ::1:953 :::* LISTEN


any idea what the tcp6 is ? ipv6 ???

I remember commenting out in /etc/host following lines

# The following lines are desirable for IPv6 capable hosts
#::1 ip6-localhost ip6-loopback
#fe00::0 ip6-localnet
#ff00::0 ip6-mcastprefix
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters
#ff02::3 ip6-allhosts


Cause I tought i didn't need them as I dont do ipv6, is that ok ?

Last edited by bennethos; 03-04-2007 at 11:02 AM.
 
Old 03-04-2007, 11:16 AM   #6
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Original Poster
Rep: Reputation: 16
I ran dpkg --reconfigure exim4 ...

Somewhere he asked me to enter the ip's that should listen on port 25.
so I entered my 2 wan ip's separated by a : colon...

i restarted the exim4 again and now I get an exim prompt when doing :

exim4 -bf wanip
220 mydomain.com ESMTP Exim 4.50 Sun, 04 Mar 2007 17:15:17 +0100

it works for both my wanip's + localhost...

but when I try to telnet externally to my ip :-/ it still doesnt work

netstat shows :

tcp 0 0 wanip1:25 0.0.0.0:* LISTEN
tcp 0 0 wanip2.235:25 0.0.0.0:* LISTEN


I'm stuck...
 
Old 03-07-2007, 07:26 PM   #7
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Original Poster
Rep: Reputation: 16
found the problem, my bloody isp blocked port 25 from my dsl ...

only have 1 thing to say, when tcpdump port 25 doesnt get a packet, some router/firewall BEFORE you're machine is DROPPING the packet :-)

thx all for yar help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Timeout on server, Connection was to internet.com at port 80 xxvm1 Mandriva 16 03-21-2008 01:34 AM
Timeout on server Connection was to <URL> at port 80 Iostera SUSE / openSUSE 1 04-21-2006 10:03 AM
Telnetting Boggy B Linux - Software 7 01-05-2005 01:48 AM
Timeout errors on port 80 when trying to access internet in Fedora Core 2 Test 2 Jeffmrg Fedora 7 04-19-2004 03:36 PM
unresponsive serial port after ppp timeout? netKat Linux - Networking 0 12-26-2003 03:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration