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,300 courses taught by industry experts.

Installing and enabling firewalld

Installing and enabling firewalld

- Now let's begin the lab for firewalld. We're going to be working in Lab 23. And in this lab, we're going to do a lot. It's going to be broken up into four sub lessons. So a pretty lengthy lab, take it step by step. But what we're going to do for this sub lesson is we're going to install and enable firewalld, and then we'll attempt to connect to the server from a remote system. So let's get to that now. And really the first thing I want to do is try to connect to that server. What server am I running firewalld on? I'm going to be using CentOS and I'm going to be working as root. But I want to see if I can connect to it right now. So we'll do a ping to 10.0.2.61, that's my CentOS server. We're getting replies and let's try an ssh to that server as well. And we can get in via ssh as well. So we know that the firewall really isn't doing anything or anything much over there just yet. Let's go over to our CentOS system and we'll log in. There we go. And so let's check if the firewall is…

Contents