Please help me understand where this task failed?
Task Steps:
a. Allow all incoming connections on Nginx port.
b. Allow incoming connections from LB host only on Apache port and block for all others.
c. All rules must be permanent.
d. Zone should be public.
e. If Apache or Nginx services aren’t running already, please make sure to start them.
Commands Used:
sudo yum install firewalld -y
sudo systemctl start firewalld
sudo firewall-cmd --add-port=8096/tcp --permanent --zone public
sudo firewall-cmd --permanent --zone=public --add-rich-rule=’
rule family=“ipv4”
source address=“172.16.238.142”
port protocol=“tcp” port=“5003” accept’
sudo firewall-cmd --reload
sudo firewall-cmd --list-all
**Firewall-cmd --list-all Output **
stapp01
public
target: default
icmp-block-inversion: no
interfaces:
sources:
services: dhcpv6-client ssh
ports: 8096/tcp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
rule family=“ipv4” source address=“172.16.238.142” port port=“5003” protocol=“tcp” accept
stapp02
public
target: default
icmp-block-inversion: no
interfaces:
sources:
services: dhcpv6-client ssh
ports: 8096/tcp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
rule family=“ipv4” source address=“172.16.238.142” port port=“5003” protocol=“tcp” accept
stapp03
public
target: default
icmp-block-inversion: no
interfaces:
sources:
services: dhcpv6-client ssh
ports: 8096/tcp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
rule family=“ipv4” source address=“172.16.238.142” port port=“5003” protocol=“tcp” accept
Thanks in advance
Spence