Your support on Ko-Fi is much appreciated:
👉 https://ko-fi.com/csg_yt
Join our new discord channel:
👉 / discord
Buy CSG Merchandise:
👉 http://tee.pub/lic/csg
This video is based on RHEL 8.
Video to cover the section 'Configure firewall settings using firewall-cmd/firewalld' for the RHCSA (Red Hat Certified System Administrator).
More information on the required learning: http://bit.ly/rhcsa8
Notes from the video:
The local firewall on the server is managed by the firewall-cmd command line, the first area to learn is about zoning on the firewall.
This has been covered largely in a previous video though some sections will be revisited.
Note in the exam you may be asked to enable IP forwarding this essentially allows the server to route packets to do this you need to enable it in the sysctl file:
vi /etc/sysctl.conf
Add the following line:
net.ipv4.ip_forward=1
Then to ask sysctl to re-read the config:
sysctl -p
I will mostly go over the same using the GUI, to launch to GUI run:
firewall-config
Note, this won’t be installed by default, to install run:
dnf install firewall-config
To get the current state of the firewall run:
firewall-cmd --state
To list all of the zones run:
firewall-cmd --get-zones
To see what is configured in a particular zone:
firewall-cmd --zone servers --list-all
To view the zones currently assigned to each interface, use the –get-active-zones option:
firewall-cmd --get-active-zones
To get the current config of a particular zone:
firewall-cmd --zone servers --list-all
#rhcsa #rhel #linux #redhat