Contents

조회 수 1225 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

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

# 내 서버 설정 (firewall.sh)


#!/bin/bash
# iptables automation script
iptables -F

# open 22port first for ssh
iptables -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT

# configure for basic policy
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT

# accept to localhost
iptables -A INPUT -i lo -j ACCEPT

# accept to established and related
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

# open 80 port for apache
iptables -A INPUT -p tcp --dport 80 -j ACCEPT

# save the configuration
/sbin/service iptables save

# print out
iptables -L -v





?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
190 System/OS 맥에서 파일공유 (윈도우,맥) file hooni 2013.04.25 37296
189 System/OS [mac] Mac에서 Mac으로 원격제어하기 (맥에서 맥으로) file hooni 2013.10.08 36978
188 System/OS [sql] 조회구문(select)에서 중복 데이터를 한 번만 출력 (distinct) 1 hooni 2013.04.23 33898
187 System/OS [linux] Oracle8.1.6, Mysql+PHP+Zend Optimizer+APACHE+Tomcat(jsp,servlet)+IMAP+gd hooni 2003.04.23 32442
186 System/OS Mac OS X - Apache+PHP+MySQL 환경 서버 hooni 2013.04.25 31624
185 System/OS [mac] 맥에서 슬립(잠자기) 모드 진입을 막는 방법~ hooni 2013.10.10 30866
184 System/OS [linux] 특정 문자열 포함된 파일 찾는 명령어 hooni 2013.10.16 30600
183 System/OS [linux] 랜카드가 2개 일 때 네트워크 설정 hooni 2003.04.23 30007
182 System/OS 맥북에서 MAC/윈도우 멀티부팅시 시간 설정 file hooni 2013.04.23 29755
181 System/OS [mac] OSX(맥) 단축키 설명 ㅎㅎ file hooni 2013.04.23 29552
180 System/OS [mysql] mysql user 생성시 ERROR 1364 hooni 2013.04.25 28492
179 System/OS [sql] insert into select 사용하기 hooni 2013.04.23 27551
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 17 Next
/ 17