RadarURL
유닉스/리눅스

[Rocky Linux] 방화벽 설치와 적용

by JaeSoo posted Sep 23, 2025
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

 

방화벽 설치 / 서비스 등록 / 시작

[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


Articles

1 2 3 4 5 6 7 8 9 10