LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-11-2017, 01:14 AM   #1
olatodimeji
LQ Newbie
 
Registered: Apr 2017
Posts: 1

Rep: Reputation: Disabled
Port 111


I will like to know what port 111 is used for, how to know if it is open, how to open it and how to close it.
 
Old 04-11-2017, 02:30 AM   #2
camp0
Member
 
Registered: Dec 2016
Location: Dublin
Distribution: Fedora
Posts: 70

Rep: Reputation: 3
The port 111 is normally used by the RCP port mapping process. You can check if is open with netstat and close by stopping the process who binds that port.
 
Old 04-11-2017, 07:10 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
From /etc/services

Code:
sunrpc          111/tcp         portmapper      # RPC 4.0 portmapper
sunrpc          111/udp         portmapper
Something has to listen for it (rpcbind?). The firewall has to allow it (iptables / netfilter). You can check if it's active or listened for with netstat. And probe for it from outside the network with nmap / nagios.
 
1 members found this post helpful.
Old 04-11-2017, 10:46 PM   #4
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
You might find this list of ports interesting: https://en.wikipedia.org/wiki/List_o...P_port_numbers
 
Old 04-19-2017, 01:06 AM   #5
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,853

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Cool

Quote:
Originally Posted by olatodimeji View Post
I will like to know what port 111 is used for, how to know if it is open, how to open it and how to close it.
You can close and open a port on a firewall.

Firewall can be a hardware or software depends on how it is implemented in your system or network.

You can also kill the process that uses the port but if the port is unused it is a good practice to close it on the firewall.

Check out this link, it has a good info: https://superuser.com/questions/1278...om-commandline
 
Old 04-19-2017, 03:00 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,863

Rep: Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598Reputation: 2598
The most common use I've seen of port 111 is with nfs (v2, v3) https://www.centos.org/docs/5/html/D...y-portmap.html
 
Old 04-19-2017, 08:21 AM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,159
Blog Entries: 4

Rep: Reputation: 3233Reputation: 3233Reputation: 3233Reputation: 3233Reputation: 3233Reputation: 3233Reputation: 3233Reputation: 3233Reputation: 3233Reputation: 3233Reputation: 3233
And of course, never make any such port available "to the outside world."

If you need to channel the traffic through the Internet, always use an OpenVPN tunnel, properly secured with one-of-a-kind digital certificates and tls-auth. The port-mapper and all other daemons should be listening only to the virtual IP-addresses created by the OpenVPN software-router, and be communicating with their peers only through the tunnel. Direct access (going and coming) should be blocked by firewalls.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Portmap -> Only tcp 111 port / where is udp 111 port? lfs_mm Linux - Networking 2 11-30-2011 11:02 AM
blocking port 111 wedgeworth Linux - Newbie 1 04-19-2004 01:56 PM
sunrpc port 111 MrJoshua Linux - General 4 12-20-2002 03:47 AM
scan port at 111 is open.... Qebex Linux - Security 5 09-21-2002 06:29 PM
Closing port 111 psyklops Linux - General 3 05-01-2002 12:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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