RHCE Quiz with 100% Correct Answers
What terms do you search for in setting up DNS-caching only server? -
Answer✔️✔️-interface
access-control
domain-insecure
forward-zone
What cmd allows you to check unbound config? - Answer✔️✔️-unbound-
checkconf
Steps for adding a bridge - Answer✔️✔️-nmcli d
nmcli con add type bridge con-name br1 ifname br1
nmcli con add type bridge-slave con-name br1-port1 ifname ens10 master
br1
nmcli con mod br1 ipv4.addresses '10.0.0.1/24'
ncmli con mod br1 ipv4.method manual
How do you set up a FW rich rule for zone DMZ for DNS for IP 10.0.0.2? -
Answer✔️✔️-firewall-cmd --permanent --zone=dmz --add-rich-rule='rule
service name="dns" source address="10.0.0.2/24" log prefix="DNS "
level="info" accept'
1
, ©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM
How do you get to utilize semanage? - Answer✔️✔️-1. Find out how to
install it:
yum whatprovides semanage
2. yum install -y policycoreutils-python
How do you set default zone for firewall? - Answer✔️✔️-firewall-cmd --set-
default-zone=dmz
How would you add a rich rule to zone work? - Answer✔️✔️-firewall-cmd --
permanent --zone=work --add-rich-rule='rule....'
How would you check default zone in firewall? - Answer✔️✔️-firewall-cmd
--get-default-zone
firewall-cmd --get-active-zones
What command would configure a firewall for port FWD'ing to allow
TCP/443 to TCP/22? - Answer✔️✔️-firewall-cmd --permanent --add-rich-
rule='rule family="ipv4" source address="10.0.0.2/24" forward-port
port="443" protocol="tcp" to-port="22"
firewall-cmd --reload
test from client: ssh -p 443 server1
How can you make a random password? - Answer✔️✔️-pwmake
What yum command would allow you to check on the group install of a
web server? - Answer✔️✔️-yum group info "Basic Web Server"
2