조회 수 1390 추천 수 0 댓글 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
번호 분류 제목 글쓴이 날짜 조회 수
26 System/OS [linux] 새 하드디스크 추가하기..(내공쌓기) hooni 2003.04.23 13854
25 System/OS [linux] 기본적인 설정하기(내공쌓기) hooni 2003.04.23 14046
24 System/OS [linux] 계정관리하기(내공쌓기) hooni 2003.04.23 13302
23 System/OS [linux] 프로그램 설치방법 (내공쌓기) hooni 2003.04.23 13482
22 System/OS [linux] 간단한 vi편집기 사용 명령 hooni 2003.04.23 13524
21 System/OS [linux] 기본 명령어 (내공쌓기) hooni 2003.04.23 14377
20 System/OS [linux] 리눅스 활용 팁^^ hooni 2003.04.23 14685
19 System/OS [linux] vi 편집기 간단한 명령과 환경설정 hooni 2003.04.23 11406
18 System/OS [perl] 펄 환경 설정해야 할거 ㅋㅋ hooni 2003.04.23 15045
17 System/OS 컴파일러 수업 자료(교재 : 컴파일러 입문) file hooni 2003.04.23 22060
16 System/OS asx미디어 정보 기록.. hooni 2003.04.23 20594
15 System/OS [linux] 쉘 스크립트에 대한 설명과 예제.. hooni 2003.04.23 13456
14 System/OS [linux] 쉘 스크립트 (Shell Script) hooni 2003.04.23 12110
13 System/OS [unix] 유닉스 csh에서 환경변수 등록 hooni 2003.04.23 11751
12 System/OS [linux] ProFTPD 타임아웃 설정 hooni 2003.04.23 12895
11 System/OS [unix] SUN Solaris 싱글모드.. ㅡ,.ㅡ; hooni 2003.04.23 12049
Board Pagination Prev 1 ... 9 10 11 12 13 Next
/ 13