Contents

Views 2695 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

# 내 서버 설정 (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
No. Category Subject Author Date Views
1021 Develop [c] 재미있는 코딩.. file hooni 2003.04.23 23274
1020 Etc 이클립스(Eclipse) 유용한 단축키 ㅋㅋ hooni 2013.04.23 23197
1019 Etc 아두이노 관련 정보.. hooni 2013.04.23 22999
1018 PPT [ajax] 크로스 도메인(Cross Domain) 이슈 해결 방안 file hooni 2013.04.23 22957
1017 Develop 프로그래밍에서 foo, bar 함수의 유래 file hooni 2013.06.25 22883
1016 Develop [c++] 디렉토리 내의 파일 찾기 FindFirstFile() 함수 6 hooni 2013.04.23 22882
1015 Develop [c] 이진트리/트리 순회법 코드(전위/중위/후위) 5 file hooni 2015.07.02 22701
1014 Etc [link] iOS(아이폰) 개발 관련 ㅋㅋ hooni 2013.04.23 22633
1013 Develop [android] [번역] 안드로이드 Android Cloud to Device Messaging(C2DM) hooni 2013.04.23 22609
1012 System/OS [windows] 윈도우 사용자 계정 로그인 암호 분실, 암호 변경하는 방법 file hooni 2015.07.09 22540
1011 Develop [c] 포인터 학습용 예제 소스 코드 file hooni 2013.04.23 22217
1010 Etc [flash] 자동차 엔진의 원리 (4행정 사이클 그림) file hooni 2013.04.23 22160
Board Pagination Prev 1 ... 9 10 11 12 13 14 15 16 17 18 ... 99 Next
/ 99