I normally set a rich rule allowing only my ip address can access the port. As of late the ISP in Mexico has been rotation my IP regularly.
I wanted to pass a rich rule that allowed IP 172.123.0.0/16 and the MAC from my router. Didn't work.
Code: Select all
firewall-cmd --permanent --zone=home --add-rich-rule='rule family="ipv4" source mac="**:**:**:**:**:**" port port="1234" protocol="tcp" accept'
Didn't fly.
This is what I have working currently
Code: Select all
firewall-cmd --permanent --zone=home --add-rich-rule='rule family="ipv4" source address="172.239.0.0/16" port port="1234" protocol="tcp" accept'
I need some guidance. What is the savvy play here?