728x90
반응형

※ CentOS 7 버전부터는 firewalld라는 방화면 데몬이 따로 돌아간다고 한다.

firewalld 데몬 중지하기

root # systemctl stop firewalld
root # systemctl mask firewalld

iptables 서비스가 설치하기

root # yum install iptables
root # yum install iptables-services

iptables 설치 확인하기

root # rpm -qa | grep iptables

부팅시 iptables 서비스가 자동으로 올라오게 만들기

root # systemctl enable iptables

iptables 서비스 컨트롤

root # systemctl [stop|start|restart] iptables

iptables 서비스 작동 확인하기

root # systemctl status iptables

 

참고사이트

CentOS 7 에서 iptables 방화벽 데몬 사용하기

728x90
반응형
복사했습니다!