Skip to Content
Mastering Linux Security and Hardening - Second Edition
book

Mastering Linux Security and Hardening - Second Edition

by Donald A. Tevault
February 2020
Intermediate to advanced
666 pages
15h 45m
English
Packt Publishing
Content preview from Mastering Linux Security and Hardening - Second Edition

Hands-on lab – viewing network services with netstat

In this lab, you'll practice what you've just learned about netstat. Do this on a virtual machine that has a desktop interface so that you can use Firefox to visit websites. Follow these steps:

  1. View the list of network services that are listening for a connection:
netstat -lp -A inetnetstat -lpn -A inet
  1. View the list of established connections:
netstat -p -A inetnetstat -pn -A inet
  1. Open Firefox and navigate to any website. Then, repeat Step 2.
  2. From your host machine, log into the virtual machine via SSH. Then, repeat Step 2.

You've reached the end of the lab – congratulations!

You've just seen how to audit network services with netstat. Now, let's learn how to do this with Nmap.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Linux Security and Hardening - Third Edition

Mastering Linux Security and Hardening - Third Edition

Donald A. Tevault
UNIX and Linux System Administration Handbook, 5th Edition

UNIX and Linux System Administration Handbook, 5th Edition

Trent R. Hein, Evi Nemeth, Garth Snyder, Ben Whaley, Dan Mackin

Publisher Resources

ISBN: 9781838981778Supplemental Content