Tag: netstat

Linux, Security

Get a list of Open Ports in Linux

netstat – Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. Get a list of open tcp/udp ports sudo netstat -plntusudo netstat -plntu -p = display PID/Program name for sockets -l = display listening server sockets -n = don’t resolve names -t = tcp ports -u = udp ports https://en.wikipedia.org/wiki/Netstat https://linux.die.net/man/8/netstat

Linux

Inspect network connections with netstat

List network connections, open ports and the programs running behind those ports with netstat. Open a terminal and type: netstat -apenetstat -ape -a, –all, –listening display all sockets (default: connected) -p, –programs display PID/Program name for sockets -e, –extend display other/more information Output: Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name …