LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 08-27-2018, 09:29 AM   #1
mikudo
Member
 
Registered: Aug 2018
Posts: 82

Rep: Reputation: Disabled
strange port open after install


Hi,

I am trying out new OS's and considering Centos 7.

I installed openvpn after running yum update and then installed nmap and scanned localhost for giggles.

Port 50500 was open, I said, waa? I am used to the rpc, smtp, and 631 but 50500? An obscure port? No known service associated with this.

I grepped services and ps but no hits.

It was open for another couple minutes then closed on its own?

Can anyone explain to me what this was?

tia
 
Old 08-27-2018, 01:18 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,157

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
Use netstat (or ss) to find the process. Example:

Code:
sudo netstat -tpn |grep 49982
tcp        0      0 10.189.49.244:49982         72.37.164.112:80            ESTABLISHED 15168/firefox
 
1 members found this post helpful.
Old 08-27-2018, 01:46 PM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,357
Blog Entries: 3

Rep: Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767
The nmap scan must be done from another machine so that it will show what is really visible to the outside. Scanning from the same machine will show localhost among other things. The localhost / loopback address is for all kinds of internal communication among activities on your machine. If set up correctly they are not in any way communicating with the outside. In order to see what actually is on the outside the scan, too, must be done from another machine.
 
1 members found this post helpful.
Old 08-28-2018, 02:20 AM   #4
mikudo
Member
 
Registered: Aug 2018
Posts: 82

Original Poster
Rep: Reputation: Disabled
Thank you these two responses are helpful, however, do you have a short list of things that port 50500 might have been, internally communicating?
 
Old 08-28-2018, 02:56 AM   #5
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,357
Blog Entries: 3

Rep: Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767
You can check /etc/services on machine to see if anything is registered, but I doubt you will find something. IANA has a list called the Service Name and Transport Protocol Port Number Registry available in a number of formats. But those are mostly just guidelines, even if people do generally adhere to them closely.

Again, if it is a localhost to localhost connection it is just your system talking to itself so meaningful security scans can only come from a second computer. However, if you are fast enough with netstat you might see the program name though.
 
Old 08-28-2018, 10:56 AM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
wrt: 50500
Alfresco...?

Next time it is "Open" try
Code:
sudo lsof -i :50500

Last edited by Habitual; 08-28-2018 at 10:58 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Check port open status for port 443 asteroid4u Linux - Server 8 07-06-2017 09:56 PM
CentOS 5: iptables - cannot open port 80 and nat to port 8080 for Tomcat steve willett Linux - Networking 4 09-24-2010 04:03 AM
cannot SFTP to SUSE 9.2 box, port 22 open, can putty in though using same port. jgrady Linux - Networking 6 03-29-2005 08:44 AM
strange service running ... open port shadow.blue Slackware 12 04-16-2004 05:42 PM
Strange port opened ivanatora Linux - Security 4 11-11-2003 10:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 07:25 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