linux-What to do when a strange port is found

Source: Internet
Author: User

The problem occurs in the background :

Generally in the new job need to their own company's entire IT environment to have a general understanding, in 1-2 months after the opening of the port to have a clear understanding of what the port is to do, whether it is illegal to open the port, I have to know otherwise by the unknown Trojan through a strange port to black off the embarrassment. Therefore, as operations personnel need to the company's every machine open port has a clear understanding, but also have to face the unfamiliar port how to determine the port corresponding to how the service, the service is illegal and other capabilities.


commands that need to be used :

SS-TNL shows all TCP ports that have been monitored

lsof-i : Port shows all processes that open the port


Working example:

One day, through SS-TNL, I found a port that I didn't know I was listening to.

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9D/FD/wKiom1mJlnSwC9PIAABZpAHJxnM449.jpg "title=" 4d47511da712423982928064f3d4689c.jpg "alt=" Wkiom1mjlnswc9piaabzpahjxnm449.jpg "/>

For Port 49994 I don't know what it is, so use the Lsof-i command to see which processes are open on that port.

The port that corresponds to the RPC.STATD command is found here.

(If prompted without the command remember Yum install-y lsof)

If you do not know rpc.statd, a very simple way is Baidu

Baidu can know that the command is a process of the Nfslock service, if you want to close the port only need to shut down the Nfslock service can

Service Nfslock Stop

Re-execute SS-TNL discovery 49994 Port disappears


If you encounter an unknown port in the future, you can use the above method to judge.

This article is from "Zhang Fan-it's fantasy drifting" blog, please be sure to keep this source http://chawan.blog.51cto.com/9179874/1954596

linux-What to do when a strange port is found

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.