(아래 문서는 CentOS 8 에서도 동일하게 적용됩니다.)
RHEL 7 / CentOS 7 에서는 방화벽으로 firewalld 가 도입되었다.
좀더 세밀한 설정을 원하거나
firewalld 익숙하지 않다면 고전적인 iptables로 돌아갈 수 있다.
먼저 firewalld service를 중지하고 자동실행을 중지한다.
[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# systemctl disable firewalld
그리고 나서 iptables-service 를 설치한다.
[root@localhost ~]# yum install iptables-services
자동실행 등록
[root@localhost ~]# systemctl enable iptables
시작
[root@localhost ~]# systemctl start iptables
방화벽 설정 후 저장한다.
[root@localhost ~]# service iptables save
iptables.txt
0.0MB
iptables.txt
0.0MB
'Linux' 카테고리의 다른 글
Centos7 하드디스크 추가하기 (0) | 2020.03.06 |
---|---|
Centos 8 설치 및 셋팅 (0) | 2020.03.06 |
PHP 첨부파일 용량 문제 (0) | 2020.02.06 |
iptables DROP 로그 남기기 (0) | 2019.11.08 |
Centos 7 에 vns server , python 3 설치 (0) | 2019.08.16 |