Contents

Views 1239 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. [coding] 공부해야 하는거 ㅋㅋ

  2. [android] 안드로이드 앱 문서 샘플 - NCComix

  3. 캘리포니아 운전면허 문제

  4. [mac] Homebrew/rvm/cocoapod setting

  5. [ios] VIN Scanner (VIN barcode) 스캐너

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

  7. 영어. 불규칙 동사 정리

  8. How to completely Uninstall Coda

  9. 무료로 HTTPS 적용하기 (Let's Encrypt)

  10. OpenSSL로 ROOT CA 생성 및 SSL 인증서 발급하기

  11. [mac] How to uninstall MySQL on Mac OS.

  12. [mysql] 중복데이터 삭제하는 초간단 쿼리

Board Pagination Prev 1 ... 86 87 88 89 90 91 92 93 94 95 ... 98 Next
/ 98