Score:0

how do I interpret netstat output?

cn flag

The netstat output -lt shows three localhost connections, is this ok or does it mean there are other users connected to my system? they are: domain, 2015 and 40939 Does this mean I have ports open and can I remove all except the domain one? ubuntu 20.04 desktop and firewall enabled and active

I don't know how to add an image but its port 2015 that I most concerned about how can I check what it is?

jpbrain avatar
ca flag
Hi. could you post the output and more information on what are you running? Is it a dektop or server installation? It is your firewall up/running and enabled?
papercup avatar
cn flag
ubuntu 20.04 should there only be one port open, ie domain?
jpbrain avatar
ca flag
netstat alone will give you more information, but what's open or connected will depend on what are you running. In my case I have a lot of ports open but they are used locally. Firewall prevents access from outside. try netstat -lptn.
papercup avatar
cn flag
I had a vpn installed but not connected. I uninstalled it and this got rid of two of the ports. So even though it was not connected the ports must have been open. I ran netstat -lptn and now there is one address only but output says not all processes could be identified
jpbrain avatar
ca flag
As ports are used in several ways I recomend you to use ufw adn gufw. This way you will at least close external access and then ports using local loops should not be a problem.
papercup avatar
cn flag
how should I have them configured?
jpbrain avatar
ca flag
sudo apt install gufw ufw. Then you will have a graphical interface to the firewall.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.