From the course: Complete Guide to Linux Security: Protecting Your Linux Server Environment

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Reducing the attack surface

Reducing the attack surface

- Now, let's use the systemctl command to show how to reduce the attack surface of a system and potentially limit the threats to that system and protect against vulnerabilities. So we're going to be working in Lab 14, Reducing the Attack Surface. So feel free to follow along with that. And I'm going to be working on a Debian client system. Let's jump to that Debian client now, and we'll run some commands. First of all, I'm going to do a systemctl status and check one of the services that's running. Debian as a client will use the NetworkManager service for all networking functions. Anything that you do with networking rides on NetworkManager in this particular distribution. So if we press Enter for that, we will see that the NetworkManager service is active and running and it's enabled. So this section here is the unit section, when we're dealing with the immediate, if we're starting or stopping a service, that will show here, whether it's active or not active. And here where it says…

Contents