Questions tagged [netstat]
analysis tool for statistics about active connections, open sockets, routing tables; in general the networking subsystem.
261 questions
0 votes
0 answers
34 views
Are a ncat ip port -vz or netstat -tunlp enough to say that a port is opened? A mongo connection to :27017 looks refused at socket level nevertheless
I have a mongo database in a container exposed by its 27017 port. When I do a netstat -tulpn, I see: tcp 0 0 0.0.0.0:27017 0.0.0.0.* LISTEN - tcp6 0 0 :::27017 :::* LISTEN - ...
0 votes
1 answer
285 views
Hundreds of strange connections in iftop
OS is Debian. I'm running nginx as a webserver. I am not running Wordpress. Logging is enabled in the http block with: access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; ...
3 votes
1 answer
240 views
Show non-truncated usernames of users connected to sshd server in terminal?
On my Ubuntu server, I find it very useful that netstat -tulpn also shows the username connected to sshd (apparently, this username printing is specifically for sshd) - unfortunately, this printout is ...
0 votes
2 answers
3k views
Where does ss command gather its data for ports etc
When trying to see port clashes within my system, many websites online recommend using /etc/services or ss -tunl to see port info I am noticing /etc/services is providing different information to -ss ...
1 vote
0 answers
385 views
How to see all tcp ports listened on locally
I have a WSL2 instance with Ubuntu 22.04. I have installed microk8s and enabled the local registry. The local Registry in microk8s listens on node port 32000. I can access this registry in WSL on both ...
0 votes
2 answers
374 views
Why using grep for some netstat commands require sudo priv?
System: Ubuntu 20.04.06 net-tools 2.10-alpha grep (GNU grep) 3.4 If I run netstat without sudo I see port information and no process information. This is expected as process information requires ...
2 votes
1 answer
92 views
Old 43BSD and netstat output
On old 43BSD... netstat -f unix Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr 801ca38c dgram 0 0 8008b5c0 0 0 0 /dev/...
1 vote
1 answer
817 views
Can you widen the columns in netstat, specifically "PID/Program name" ...?
There is an old post about line truncation in netstat (Netstat output line width limit) but my question is a bit different. I'm using netstat (net-tools 2.10) on Debian 12. My primary use is to list ...
7 votes
2 answers
3k views
Given a service name, get its port number?
Hi I feel like this is an obvious question but I haven't been able to get a good answer so far. Given the name of the service (which I know running on localhost) is there any networking command line ...
0 votes
0 answers
160 views
Established but hidden TCP connection
On computer 10.196.111.161, I can see the following established tcp connection: [10.196.111.161]# netstat -natp | grep 7000 Proto Recv-Q Send-Q Local Address Foreign Address State ...
0 votes
2 answers
166 views
How netstat is able to read route tables?
For my php containers if I need to detect the ip where ide listens to. I run: ip=$(netstat -rn | grep "^0.0.0.0 " | cut -d " " -f10) And I get the gateway IP. But for that I need ...
4 votes
1 answer
1k views
How to list the connections of the port forwarded by firewalld?
I have forwarded a port using firewalld, and everything is functioning properly. However, the 'netstat' and 'ss' commands do not display the port opened by firewalld, nor do they show the connections. ...
1 vote
1 answer
278 views
netstat output: unexpected kind 634 which 0x27
When running the netstat -tuln command on macOS terminal I get a strange output at the bottom: ... truncated... e85ca8f83c2f500b dgram 0 0 0 e85ca8f83c2f3fa3 0 ...
1 vote
1 answer
123 views
Linux Webserver not "Accepting" Connections
First off, thanks for any help anyone can provide, I greatly appreciate it! I have a basic network I have set up for testing. It has pfSense acting as a Gateway/DHCP/DNS host and two Linux machines ...
0 votes
0 answers
268 views
'curl' command works intermittently
I am trying to install and configure a high availability RKE2 cluster (Rancher Kubernetes Engine 2). My architecture consists of 4 VMs: one with DNS and LoadBalancer configured, another with the ...