Linux serverlinux web serverNETWORK ADMINISTRATIONS

How to use Netstat in Linux

Tutorial on using Netstat to Check for Open TCP / UDP Ports in Linux.
Netstat tends to come pre-installed in Linux, you can use it for setting up firewall rules and fault finding on Linux Clients and Servers.
A similar command exists in Windows, but uses different arguments.

# netstat -natup
(Numeric, All, TCP, UDP, Show PID)

source

by quidsup

linux web server

14 thoughts on “How to use Netstat in Linux

  • You should mess around and do some attack simulation videos , you could even use @6:07 the webserver example and show what it looks like to get flooded and the opposite something like a SlowLoris . I guess overall monitoring traffic but more about the security measures like setting up a basic IDS, waf, fail2ban ,, things like that.. If it seems interesting enough to you ……

  • If only all man pages had a video like this. Like a version of Wheatly (portal)… only with RP, a lot more intelligence, and a lot less insanity… dear god… imagine if someone actually used Stephen Merchant's voice in a voice assistant product lol.

  • Cool vid.
    UDP (User Datagram Protocol), not (Universal Datagram Protocol).
    Why not use 'ss' and 'ip'. 'netstat' is kind of depricated.

    Example (display all established ssh connections): ss -o state established '( dport = :ssh or sport = :ssh )'
    To display continuosly every 2 seconds: watch -n 2 "ss -o state connected '( dport = :ssh or sport = :ssh )'"

  • next time you should use a light color as foreground rather than a dark one on dark background as it is very difficult to read especially on smaller devices.

  • sorry struggled to read anything on screen with my pants monitor, could i request yellow rather than blue for text colour please? otherwise cool vid, thanks.

  • Is there any program on linux that can tell me how much data I've used for the month and on what device and services? It would be great to have because I use linux as a router on one of my laptops.

  • can you tell what this is that came up on my ubuntu network
    enp0s25

  • now people can ping / ddos attack you 😛

  • netstat -natup << never forget the cmd again

  • Enjoying these "networking howtos". Please keep them coming! Great channel, Quids!

  • Keep up the good work, Quids. You rock.

Comments are closed.