System/OS
2017.09.26 01:52
[linux] iptables 초간단 세팅 스크립트
Views 1408 Comment 0
# 내 서버 설정 (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
-
무료로 HTTPS 적용하기 (Let's Encrypt)
-
[linux] iptables 초간단 세팅 스크립트
-
[mac] Homebrew/rvm/cocoapod setting
-
[windows] 윈도우즈 콘솔에서 정품인증 하는 방법
-
무료로 HTTPS 적용하기 (Lets' Encrypt)
-
[android] 초간단 HTTP, POST 전송 샘플
-
Enable Safari Hidden Debug Menu in Mac OS X
-
Enable the Develop Menu in Safari
-
[mac] OS X 엘 캐피탄에서 Soudflower 사용하기
-
[mac] Mac OS에서 재생되는 사운드를 녹음하는 방법
-
맥 OS X 에서 스크린 화면 캡쳐 단축키 (Mac Print Screen)
-
[windows] 윈도우 사용자 계정 로그인 암호 분실, 암호 변경하는 방법