Notice
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- meta
- 클릭이벤트막기
- google_purchases
- Google Pay
- Google_Client
- MySQL
- 업로드
- Database
- how to slim install
- google purchases
- php
- TABLE
- 아파치
- slim install
- closest
- subscriptionsv2
- 리눅스
- 영수증확인
- 데이터베이스확인
- 영수증검증
- 테이블인덱스
- 데이터베이스 지정하기
- Google_Service_AndroidPublisher
- CSV
- 영수증인증
- SQL
- 몇번째행
- purchases
- purchases_subscriptions
Archives
- Today
- Total
Web_developer
CentOS 7 에서 iptables 방화벽 데몬 사용하기 본문
반응형
이번에 개인 서버를 CentOS 6.5에서 7로 이전하기 위해서 열심히 구축 중이다.
웹 서버 데몬을 올리고 iptables 에서 80 포트 해제 해 준 뒤 localhost로 접속하는데 접속이 안된다.
구글링을 좀 했더니 CentOS 7 부터는 firewalld 라는 방화벽 데몬이 따로 돌아간단다. 예전처럼 iptables를 사용하기 위해서는 systemctl 설정을 좀 건드려 줘야한다.
우선 작동 중인 firewalld 데몬을 중지 시킨 후 재부팅 시에도 올라오지 않도록 설정한다.
systemctl stop firewalld
systemctl mask firewalld
다음으로 iptables 명령어와 연관된 패키지를 설치한다.
CentOS 설치할 때의 옵션에 따라 설치 되었을 수도 있다. 나는 웹 서버 구성으로 설치 했더니 이미 설치 되어 있었다.
yum install iptables-services
iptables 서비스 데몬이 재부팅시에 자동으로 올라오도록 만들자
systemctl enable iptables
iptables 서비스를 중지 | 시작 | 재시작
systemctl [stop | start | restart ] iptables
iptables 규칙 저장
service iptables save
혹은
/usr/libexec/iptables/iptables.init save
'Linux' 카테고리의 다른 글
Node.js와 socket I/O의 실시간 채팅 구현하기 (0) | 2021.08.01 |
---|---|
centos7 - nginx + php + mariadb / yum 설치 (0) | 2019.08.23 |
리눅스 Apache 2.4 설치 / CentOS 7 소스설치 (0) | 2019.07.31 |
Comments