Monthly Archives: March 2017

cmd

open service by allowing addresses with firewall-cmd:
sudo firewall-cmd --add-rich-rule='rule family="ipv4" source address="192.168.1.0/24" service name="dns" log prefix="dns" level="info" accept'

directly add service without filtering addresses:
sudo firewall-cmd --add-service=dns

to make it permanent:
--permanent