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-26-2020, 05:20 PM   #1
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Rep: Reputation: 18
Nmap says port is open after I tried to close it


Hi all-

I am running kubuntu 18.04. My UFW looks like this:

Status: active

To Action From
-- ------ ----
6600/tcp DENY Anywhere
6600/udp DENY Anywhere
6600 DENY Anywhere
6600/tcp (v6) DENY Anywhere (v6)
6600/udp (v6) DENY Anywhere (v6)
6600 (v6) DENY Anywhere (v6)

6600 DENY OUT Anywhere
6600 (v6) DENY OUT Anywhere (v6)

I tried this scan as a regular user:
nmap -p0- -v -A -T4 myipaddress
PORT STATE SERVICE VERSION
1716/tcp open xmsg?
6600/tcp open mpd Music Player Daemon 0.20.0

also:
nmap -p 6600 myipaddress
PORT STATE SERVICE
6600/tcp open mshvlm

I don't get it. I don't want 6600 open but i can't
change the status on a scan.

The other port has kdeconnect listening so I don't mind.

The 2 ports scans are conflicting what service they are.

Any ideas why it won't close or go to filtered?

It is being caused by something called syn-ack.
I am not sure why it doesn't get the acknowledgement so it can be marked filtered
or closed.

thanks,
roboloki

Last edited by mtdew3q; 05-26-2020 at 06:51 PM.
 
Old 05-26-2020, 07:35 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,814

Rep: Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960
May not be the answer you are looking for but change the bind_to_address in the configuration file from "any" to localhost i.e.

bind_to_address "127.0.0.1"

If the mpd daemon is not listening on the ethernet adapter then it does not matter if the firewall is open or closed for that port. Be sure to restart mpd

The default port is 6600 but the service as defined in the /etc/services file is mshvlm. This is the official service as assigned by IANA.

UFW is just a front end for iptables. Post the output of the command
sudo iptables -L
 
1 members found this post helpful.
Old 05-26-2020, 07:36 PM   #3
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Original Poster
Rep: Reputation: 18
HI all-

It seems that this is a non-issue for security. First off, I apologize not tagging this in the security forum. I fell asleep and misdirected this thread.

$ nmap --reason -p 6600 myipaddress

Starting Nmap 7.60 ( https://nmap.org ) at 2020-05-26 20:11 EDT
Nmap scan report for me (myipaddress)
Host is up, received conn-refused (0.000061s latency).

PORT STATE SERVICE REASON
6600/tcp open mshvlm syn-ack

This is all greek to me, but it looks like they tried to
send a syn and the the syn/ack response got blocked which
is not really a bad thing. There is no service on that port
that is running.

Since the connection is 'refused', I no longer care why
since I wanted the port closed anyway.

thanks,
roboloki

Last edited by mtdew3q; 05-26-2020 at 07:37 PM.
 
Old 05-26-2020, 07:45 PM   #4
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Original Poster
Rep: Reputation: 18
Hi Michaelk-

yes, I agree. Nothing is listening. Thanks for the very cool help. I will boost your rating! I will restart mpd.

have a cool night,
roboloki

Last edited by mtdew3q; 05-26-2020 at 07:47 PM.
 
  


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
port 5432 open nmap online but closed status with firewalld and local nmap scan mtdew3q Linux - Security 6 06-04-2018 06:20 PM
prevent nmap to show open/close port of my server unclesamcrazy Linux - Newbie 7 07-01-2014 07:10 PM
Tried to open a port, but nmap says it is still closed ErrorBound Debian 2 06-06-2007 06:41 AM
nmap reports port 21 (ftp) open - how to close it? shazam75 Linux - Security 3 09-23-2005 07:13 PM
firewall.rc.config says :"open port 8080" but nmap says port is closed saavik Linux - Security 2 02-14-2002 12:16 PM

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

All times are GMT -5. The time now is 01:09 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
Open Source Consulting | Domain Registration