LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-23-2009, 01:11 PM   #1
djswagerman
LQ Newbie
 
Registered: May 2009
Distribution: Ubuntu 9.04, Fedora 9
Posts: 2

Rep: Reputation: 0
Different results for portscan localhost and private IP adress: cannot see port 25


Dear all,

I have an issue accessing port 25 from outside anything but my localhost.

Telnet to port 25 to localhost works fine:

[root@fileserver ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 localhost.localdomain ESMTP Sendmail 8.14.2/8.14.2; Sat, 23 May 2009 20:09:4
4 +0200
And I can see port 25 when running an nmap on localhost....
nmap localhost
Starting Nmap 4.53 ( http://insecure.org ) at 2009-05-23 20:02 CEST
Interesting ports on fileserver (127.0.0.1):
Not shown: 1699 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
80/tcp open http
110/tcp open pop3
111/tcp open rpcbind
139/tcp open netbios-ssn
143/tcp open imap
445/tcp open microsoft-ds
631/tcp open ipp
993/tcp open imaps
995/tcp open pop3s
2049/tcp open nfs
3128/tcp open squid-http
3306/tcp open mysql
But not when running nmap on the private ip adress in my lan:
nmap 192.168.1.140
Starting Nmap 4.53 ( http://insecure.org ) at 2009-05-23 20:03 CEST
Interesting ports on 192.168.1.140:
Not shown: 1701 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
110/tcp open pop3
111/tcp open rpcbind
139/tcp open netbios-ssn
143/tcp open imap
445/tcp open microsoft-ds
993/tcp open imaps
995/tcp open pop3s
2049/tcp open nfs
3128/tcp open squid-http
3306/tcp open mysql
I disabled the firewall.

Distribution: Fedora 9
Kernel: 2.6.27.19-78.2.30.fc9.i686
ifconfig
eth3 Link encap:Ethernet HWaddr 00:0C:29C:1D:68
inet addr:192.168.1.140 Bcast:192.168.1.255 Mask:255.255.2
inet6 addr: fe80::20c:29ff:fedc:1d68/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:472046 errors:25 dropped:25 overruns:0 frame:0
TX packets:386317 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:397754081 (379.3 MiB) TX bytes:192977439 (184.0 Mi
Interrupt:10 Base address:0x1080

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:52235 errors:0 dropped:0 overruns:0 frame:0
TX packets:52235 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8424949 (8.0 MiB) TX bytes:8424949 (8.0 MiB)
I suspect a filter / firewall issue on my router (DIR-655 running firmware 1.11EU) but tried disabling port forwarding to port 25 and the virtual server functionality on SMTP on port 25.

Any pointers will be much appreciated.
 
Old 05-23-2009, 01:29 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

By default sendmail listens only on the local loopback interface. If you want to make it listen also on your public IP, and since you're fc9, take a look at this howto.

Regards
 
Old 05-23-2009, 03:15 PM   #3
djswagerman
LQ Newbie
 
Registered: May 2009
Distribution: Ubuntu 9.04, Fedora 9
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks a lot bathory! This did the trick. Regards, Dirk-Jan
 
  


Reply



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
Assingning port no to ip adress v1nc3nt Linux - Networking 1 02-21-2006 07:36 AM
changing localhost.localdomain results in error DeltaXFX Linux - Networking 4 06-20-2005 07:09 AM
route locally generated traffic to ip:port to localhost:port maenho Linux - Software 2 03-11-2005 04:08 AM
Portscan to port 6000? J_Szucs Linux - Security 2 09-21-2004 11:27 AM
mail daily root@localhost to private email? robberttheman Linux - Newbie 4 08-27-2004 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:03 AM.

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
Open Source Consulting | Domain Registration