Skip to main content

Questions tagged [netstat]

analysis tool for statistics about active connections, open sockets, routing tables; in general the networking subsystem.

0 votes
1 answer
237 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; ...
cat pants's user avatar
  • 167
3 votes
1 answer
214 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 ...
sdbbs's user avatar
  • 590
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 ...
Rachel1983's user avatar
1 vote
0 answers
350 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 ...
maloo's user avatar
  • 111
0 votes
2 answers
318 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 ...
Dave's user avatar
  • 732
2 votes
1 answer
80 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/...
elbarna's user avatar
  • 14.2k
1 vote
1 answer
781 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 ...
LiamF's user avatar
  • 175
7 votes
2 answers
2k 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 ...
First User's user avatar
0 votes
0 answers
153 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 ...
meolic's user avatar
  • 101
0 votes
2 answers
151 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 ...
Dimitrios Desyllas's user avatar
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. ...
Blake Candy's user avatar
1 vote
1 answer
255 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 ...
I'm Root James's user avatar
1 vote
1 answer
110 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 ...
Twigg90's user avatar
  • 11
0 votes
0 answers
259 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 ...
Karima FATHI's user avatar
1 vote
1 answer
1k views

ss or ip equivalent to netstat -gn to show multicast memberships?

Is there a modern Linux tool that will show the equivalent of netstat -gn to show multicast group memberships? This old command shows output like this: IPv6/IPv4 Group Memberships Interface ...
Mike S's user avatar
  • 2,732

15 30 50 per page
1
2 3 4 5
18