Netstat Question

This is a discussion on Netstat Question within the Linux Networking forums, part of the Linux Forums category; Hi All, I'm fairly new to Linux. I had a Red Hat server running fine as it was set ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-29-2006
amerar@iwc.net
 
Posts: n/a
Default Netstat Question

Hi All,

I'm fairly new to Linux. I had a Red Hat server running fine as it was
set up for me. It was acting as a mail/web server and worked
perfectly.

I build a new server and installed CentOS. However, I cannot get
Postfix to run properly on this server. I cannot find any issues,
however, the output of netstat -atn is different between the two
servers.

Maybe someone can look at the output and direct my where to look? It
would be much appreciated.

Output of Red Hat 9.0 server, which works fine:

tcp 0 0 0.0.0.0:32768 0.0.0.0:*
LISTEN
tcp 0 0 127.0.0.1:32769 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:993 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:3306 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:110 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:143 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:6000 0.0.0.0:*
LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:443 0.0.0.0:*
LISTEN


Output of CentOS server, which is not working:

tcp 0 0 0.0.0.0:3306 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:907 0.0.0.0:*
LISTEN
tcp 0 0 127.0.0.1:783 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:*
LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:*
LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:*
LISTEN
tcp 0 0 :::993 :::*
LISTEN
tcp 0 0 :::995 :::*
LISTEN
tcp 0 0 :::110 :::*
LISTEN
tcp 0 0 :::143 :::*
LISTEN
tcp 0 0 :::80 :::*
LISTEN
tcp 0 0 :::443 :::*
LISTEN

Thanks in advance.......

Reply With Quote
  #2 (permalink)  
Old 11-29-2006
Michael Heiming
 
Posts: n/a
Default Re: Netstat Question

In comp.os.linux.networking amerar@iwc.net <amerar@iwc.net>:
> Hi All,


> I'm fairly new to Linux. I had a Red Hat server running fine as it was
> set up for me. It was acting as a mail/web server and worked
> perfectly.


> I build a new server and installed CentOS. However, I cannot get
> Postfix to run properly on this server. I cannot find any issues,
> however, the output of netstat -atn is different between the two
> servers.


Why would you want to use postfix? There are 2 excellent MTA
coming with your distribution, sendmail + exim.

> Maybe someone can look at the output and direct my where to look? It
> would be much appreciated.


> Output of Red Hat 9.0 server, which works fine:


> tcp 0 0 0.0.0.0:25 0.0.0.0:*
> LISTEN


Listening to anyone on port 25.

> Output of CentOS server, which is not working:


> tcp 0 0 127.0.0.1:25 0.0.0.0:*
> LISTEN


Only listening on localhost, a 'telnet localhost 25' on the box
should connect you to whatever is running on port 25, usually
some MTA.

That is the problem you need to fix, however for easier staying
in line with updates. I'd use one of the two MTA coming with
RHEL/CentOS and decide up on the purpose of the machine which one
to use.

Good luck

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 296: The hardware bus needs a new token.
Reply With Quote
  #3 (permalink)  
Old 11-29-2006
amerar@iwc.net
 
Posts: n/a
Default Re: Netstat Question


Michael Heiming wrote:
> In comp.os.linux.networking amerar@iwc.net <amerar@iwc.net>:
> > Hi All,

>
> > I'm fairly new to Linux. I had a Red Hat server running fine as it was
> > set up for me. It was acting as a mail/web server and worked
> > perfectly.

>
> > I build a new server and installed CentOS. However, I cannot get
> > Postfix to run properly on this server. I cannot find any issues,
> > however, the output of netstat -atn is different between the two
> > servers.

>
> Why would you want to use postfix? There are 2 excellent MTA
> coming with your distribution, sendmail + exim.
>
> > Maybe someone can look at the output and direct my where to look? It
> > would be much appreciated.

>
> > Output of Red Hat 9.0 server, which works fine:

>
> > tcp 0 0 0.0.0.0:25 0.0.0.0:*
> > LISTEN

>
> Listening to anyone on port 25.
>
> > Output of CentOS server, which is not working:

>
> > tcp 0 0 127.0.0.1:25 0.0.0.0:*
> > LISTEN

>
> Only listening on localhost, a 'telnet localhost 25' on the box
> should connect you to whatever is running on port 25, usually
> some MTA.
>
> That is the problem you need to fix, however for easier staying
> in line with updates. I'd use one of the two MTA coming with
> RHEL/CentOS and decide up on the purpose of the machine which one
> to use.
>
> Good luck
>
> --
> Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
> mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
> #bofh excuse 296: The hardware bus needs a new token.


I'd take your advice on the mail program, but my entire application is
build around Postfix, not sendmail.......so, I'm gonna stick with
Postfix. Fixed the problem with port 25 listening on 127.0.0.1
only.......

Kind of curious what the 3 colons (:::) mean though......that looks
strange......

Reply With Quote
  #4 (permalink)  
Old 11-29-2006
Pascal Hambourg
 
Posts: n/a
Default Re: Netstat Question

Hello,

amerar@iwc.net a écrit :
>
> Kind of curious what the 3 colons (:::) mean though.


Just as in the other lines, it means address "::" followed by a colon
and a port number. "::" is the short form of the IPv6 address
0:0:0:0:0:0:0:0 which means ANY. It is the equivalent of IPv4 0.0.0.0.
Note that by default Linux IPv6 sockets also accept IPv4 communications.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:31 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0