firewalld zone 추가
Remark:
firewalld 은 zone 기준으로 세팅해보자
1. firewalld zone Check
|
# firewall-cmd --get-zones |
|
# firewall-cmd --get-zones block cloud dmz drop external home internal mysql-access public scouter trusted work |
2. zone add
|
# firewall-cmd --new-zone=mysql-access --permanent |
2.1 zone delete
|
# firewall-cmd --permanent --delete-zone=mysql-access |
3. mysql-access 192.168.0.111 allow
|
# firewall-cmd --zone=mysql-access --add-source=192.168.0.111 --permanent |
4. mysql-access port=3306/tcp allow
|
# firewall-cmd --zone=mysql-access --add-port=3306/tcp --permanent |
5. firewall reload
비고 : public에 8080/tcp 추가 // 대외용
|
firewall-cmd --zone=public --add-port=8080/tcp --permanent |
.추가
포트 50001~ 50012 오픈 명령어
|
sudo firewall-cmd --zone=public --add-port=50001-50012/tcp --permanent |
|
sudo firewall-cmd --reload |