Why the rich rule is not setting up for apache?

@royki @Inderpreet @mmumshad

I’ve used the following command to set the rich rule as:
sudo firewall-cmd --zone=public --add-rich-rule ‘rule family=“ipv4” source address=“172.16.238.14” port port=8083 protocol=tcp accept’

and then
I restarted the service. Still this is not adding to the configuration!! WHY? Please check the below screenshot.

@Ashu27 Not so sure, I think you need to restart the dbus service.
systemctl restart dbus [Try this, if that helps you out]

@royki still the same issue

Hi @Ashu27 , try adding --permanent to the command you entered .
Command:

firewall-cmd --permanent --zone=public --add-rich-rule ‘rule family=“ipv4” source address=“172.16.238.14” port port=8083 protocol=tcp accept’

After that same as you did reload it , and check it gets listed or not .
Let me know if this works .

@akshayyw This worked for me. Thank you so much.

1 Like