Views 1235 Votes 0 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




?

  1. [linux] Xwindow/Xmanager 사용

  2. [linux] X환경 GNOME에서 KDE로 바꾸는 법..

  3. [linux] yum 업데이트 시 커널 제외하기

  4. [linux] 간단한 find 명령어 설명(업데이트 해야 함)

  5. [linux] 간단한 NAT 설정 script

  6. [linux] 간단한 vi편집기 사용 명령

  7. [linux] 계정관리하기(내공쌓기)

  8. [linux] 기본 명령어 (내공쌓기)

  9. [linux] 기본적인 설정하기(내공쌓기)

  10. [linux] 기존 환경설정 저장하면서 커널 컴파일..

  11. [linux] 꿀통(honeyd) 설치하기.. 메뉴얼 과정

  12. [linux] 네트워크 커널 설정..

  13. [linux] 네트웍 트래픽 모니터링(MRTG)

  14. [linux] 데비안(debian.org) 리눅스 명령어 예제

  15. [linux] 데스크탑환경(GNOME/KDE) 바꾸기..

  16. [linux] 랜카드 2개 설정 & iptables 로 사설 ip..

Board Pagination Prev 1 3 4 5 6 7 ... 13 Next
/ 13