LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-17-2021, 08:31 PM   #1
andy657
LQ Newbie
 
Registered: Feb 2021
Posts: 11

Rep: Reputation: Disabled
Closing open ports in Debian 10


Hi all,

I recently setup an email server using iRedMail. Everything is working perfectly I'm just having issues closing open ports with nftables.

I'm currently trying to close port 110...

This is what I have done so far... I removed the rule in the /etc/nftables.conf file for port 110 and restarted the service - sudo systemctl restart nftables.service

Unfortunately when I scan the port with nmap it's still showing as being opened.

What additional steps do I have to do in order to close this port?

Thanks for the help...

Last edited by andy657; 02-17-2021 at 08:57 PM.
 
Old 02-18-2021, 12:11 AM   #2
Pentium4User
Member
 
Registered: Jan 2018
Posts: 81

Rep: Reputation: Disabled
An open port results in a software listening on this port.
If no software listens on this port, it is closed and on TCP ports it will send TCP-RESET.
This is the right way to get rid off it.
Check with
Code:
fuser 110/tcp
which PID the process has and then check what application it is.

110 TCP is the well-known port for POP3, so maybe you need to disable POP3 in you mail server.
This is the right way instead of using a firewall to block it.
 
  


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
[SOLVED] checking for open ports need ports 5198, 5199 open for UDP raypsi Linux - Security 9 05-22-2012 06:51 PM
Cannot Open Mail Server Ports 25, 110, and 220. Other Ports will open. Binxter Linux - Newbie 9 11-29-2007 02:03 AM
ports, ports, ports cjae Linux - Networking 1 04-09-2006 09:38 AM
Open Ports - Do they need closing? Tezdread Linux - Security 12 07-11-2003 08:56 PM
Slackware n()()b and closing open ports/services osx Slackware 8 03-10-2003 12:51 PM

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

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