/etc/firewalld/zones/public.xml
- firewall reload
firewall-cmd --reload
- adding port
firewall-cmd --permanent --zone=public --add-port=80/tcp
- removing port
firewall-cmd --permanent --zone=public --remove-port=80/tcp
- adding service
firewall-cmd --permanent --zone=public --add-service=http
- removing service
firewall-cmd --permanent --zone=public --remove-service=http
- adding rule
firewall-cmd --permanent --zone=public --add-rich-rule="rule family=ipv4 source address=192.168.0.4/24 service name=http accept"
- removing rule
firewall-cmd --permanent --zone=public --remove-rich-rule="rule family=ipv4 source address=192.168.0.4/24 service name=http accept"
original resource : https://www.conory.com/note_linux/42477
댓글 없음 :
댓글 쓰기