Contents

Views 1237 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. [mac] Mac OS에서 재생되는 사운드를 녹음하는 방법

  2. [mac] OS X 엘 캐피탄에서 Soudflower 사용하기

  3. Enable the Develop Menu in Safari

  4. Enable Safari Hidden Debug Menu in Mac OS X

  5. [android] 초간단 HTTP, POST 전송 샘플

  6. 무료로 HTTPS 적용하기 (Lets' Encrypt)

  7. [windows] 윈도우즈 콘솔에서 정품인증 하는 방법

  8. [mac] Homebrew/rvm/cocoapod setting

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

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

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

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

Board Pagination Prev 1 ... 8 9 10 11 12 13 14 15 16 17 Next
/ 17