Contents

조회 수 1239 댓글 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





?

  1. [linux] DHCP(Dynamic Host Configuration Protocol) 서버

  2. [linux] DNS(Domain Name System) 설치, 설정

  3. [linux] GD 라이브러리 설치 방법..

  4. [linux] iconv를 이용하여 euc-kr 문서를 utf-8로 대량으로 변환하기

  5. [linux] ipchains 사용예(패킷 필터링)

  6. [linux] ipchains 옵션

  7. [linux] ipfwadm를 이용한 패킷필터링(구버전)

  8. [linux] iptables 명령어 매뉴얼(options)

  9. [linux] iptables 초간단 세팅 스크립트

  10. [linux] man 명령어 뽀개기..

  11. [linux] Masquerade 가상 ip분할기법

  12. [linux] Oracle8.1.6, Mysql+PHP+Zend Optimizer+APACHE+Tomcat(jsp,servlet)+IMAP+gd

Board Pagination Prev 1 ... 61 62 63 64 65 66 67 68 69 70 ... 98 Next
/ 98