Contents

Views 1235 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
1089 Develop [android] 레이아웃 사이즈 변경 (동적; programmatically) hooni 2016.11.07 1478
1088 Develop [android] 만화 어플 소스코드 file hooni 2013.04.23 92836
1087 Develop [android] 멀티터치(Multi touch) 부분 구현 ㅋㅋ file hooni 2013.04.23 27413
1086 Develop [android] 버전 별 앱 알림 설정으로 이동하는 방법 file hooni 2016.11.28 2155
1085 Develop [android] 안드로이드 동영상 스트리밍 예제 2 hooni 2015.01.02 4812
1084 Develop [android] 안드로이드 앱 문서 샘플 - NCComix file hooni 2017.07.11 2101
1083 Develop [android] 안드로이드 어플 모음 ㅎㅎ secret hooni 2013.04.23 16340
1082 Develop [android] 자동차 리모컨 소스코드 secret hooni 2013.04.23 17082
1081 Develop [android] 점심 해결 앱 소스 코드 ㅋㅋ file hooni 2013.04.23 76394
1080 PPT [Android] 제스처 자료.. file hooni 2013.05.28 51072
1079 System/OS [android] 초간단 HTTP, POST 전송 샘플 1 file hooni 2017.02.16 3445
1078 Develop [android] 초간단 얼럿 (AlertDialog) hooni 2016.10.21 807
Board Pagination Prev 1 ... 3 4 5 6 7 8 9 10 11 12 ... 98 Next
/ 98