Monitoring network connection using ss command

Rasho

Linux System Administrator with over 8 years experience in administering production level servers (CentOS/Ubuntu/Debian with apache2/nginx, mysql server, etc)

You may also like...

1 Response

  1. BadConsole says:

    Surprised I didn’t see my personal favourite.

    List all ports you are listening to nd which service listening

    % sudo ss -nlp
    State      Recv-Q Send-Q   Local Address:Port     Peer Address:Port 
    LISTEN     0      128          127.0.0.1:80                  *:*      users:(("nginx",1430,7),("nginx",1429,7),("nginx",1428,7),("nginx",1427,7),("nginx",1426,7))
    LISTEN     0      128          127.0.0.1:28017               *:*      users:(("mongod",11491,8))
    LISTEN     0      128          127.0.0.1:5939                *:*      users:(("teamviewerd",2067,14))
    LISTEN     0      128          127.0.0.1:631                 *:*      users:(("cupsd",837,9))
    LISTEN     0      128                ::1:631                :::*      users:(("cupsd",837,8))
    LISTEN     0      128                  *:3000                *:*      users:(("gulp",31585,11))
    LISTEN     0      100                  *:11192               *:*      users:(("skype",2211,34))
    LISTEN     0      128                  *:3001                *:*      users:(("gulp",31585,14))
    LISTEN     0      128                  *:3002                *:*      users:(("gulp",31585,12))
    LISTEN     0      128                  *:4000                *:*      users:(("node",31316,11))
    LISTEN     0      128          127.0.0.1:27017               *:*      users:(("mongod",11491,6))

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.