Remark:
firewalld 은 zone 기준으로 세팅해보자
1. firewalld zone Check
1 2 3 |
# firewall-cmd --get-zones |
1 2 3 4 |
# firewall-cmd --get-zones block cloud dmz drop external home internal mysql-access public scouter trusted work |
2. zone add
1 2 3 |
# firewall-cmd --new-zone=mysql-access --permanent |
2.1 zone delete
1 2 3 |
# firewall-cmd --permanent --delete-zone=mysql-access |
3. mysql-access 192.168.0.111 allow
1 2 3 |
# firewall-cmd --zone=mysql-access --add-source=192.168.0.111 --permanent |
4. mysql-access port=3306/tcp allow
1 2 3 |
# firewall-cmd --zone=mysql-access --add-port=3306/tcp --permanent |
5. firewall reload
1 2 3 |
# firewall-cmd --reload |