From the course: Red Hat Enterprise Linux 8 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Configure firewalld

Configure firewalld

From the course: Red Hat Enterprise Linux 8 Essential Training

Start my 1-month free trial

Configure firewalld

- [Instructor] Type into a terminal, "sudo", space, "netstat", space, "-at" and hit enter. Type in your password if prompted. Here, we can see that the iscsi target is listening. If you want to see the port numbers listing on, add "-n" to "netstat". So bring your line back and make the options "-ant" and hit enter. We can see that it's port 3260. To allow traffic for port 3260, we'll add the iscsi target service to our firewall rules. Type in "clear", type in "sudo", space, "firewall-cmd", space, "--permanent", space "--add-service", space, "iscsi-target" and hit enter. If you're using Enterprise Linux 7.1 or older, this service doesn't exist and you'll need to specify the port directly. Now we need to reload the firewall rules for this to take effect. Type in "sudo", space, "firewall-cmd", space, "--reload" and hit enter. Now we should be ready to connect our initiator to our target.

Contents