Archive for March, 2017

Managing CentOS 7 firewall with firewall-cmd

Monday, March 6th, 2017

firewall-cmd --state

firewall-cmd --zone=public --permanent --add-port=2812/tcp
firewall-cmd --permanent --add-rich-rule 'rule family="ipv4" source address="x.x.x.x" log reject'

firewall-cmd --reload
firewall-cmd --list-all