8
[Linux] CentOS 8 firewalld 설치 및 사용법
firewalld 설치 및 활성화 1. firewalld 설치 yum install firewalld -y 2. firewalld 서비스 실행 systemctl start firewalld 3. firewalld 서비스 자동시작 등록 systemctl enable firewalld firewalld 포트 허용 1. 단일 포트 허용 // TCP 8000 포트 허용 firewalld-cmd --permanent --zone=public --add-port=8000/tcp 2. 다중 포트 허용 // TCP 8000 ~ 8100 포트 허용 firewalld-cmd --permanent --zone=public --add-port=8000-8100/tcp 3. firewalld 변경사항 적용 (리로드) // Po..
[Linux] CentOS 8 firewalld 비활성화 / iptables 활성화
firewalld 비활성화 1. firewalld 서비스 정지 systemctl stop firewalld 2. firewalld 서비스 제거 (비활성화) systemctl mark firewalld iptables 설치 및 활성화 1. iptables 설치 yum install iptables-services -y 2. iptables 활성화 (시스템 실행 시 자동 시작) systemctl enable iptables