방화벽 설치 / 서비스 등록 / 시작
[root@localhost]# dnf install yum
[root@localhost]# yum install firewalld
[root@localhost]# systemctl enable firewalld // 시작 부팅 추가
[root@localhost]# systemctl start firewalld // 시작
[root@localhost]# systemctl status firewalld // 상태확인
방화벽 포트 등록/제거
[root@localhost]# firewall-cmd --permanent --zone=public --add-port=8080/tcp
success
[root@localhost]# firewall-cmd --permanent --remove-port=8080/tcp
success
방화벽 재적용
[root@localhost]# firewall-cmd --reload
success
출처: https://derveljunit.tistory.com/350 [Derveljun's Programming Log:티스토리]
출처 : https://derveljunit.tistory.com/350