조회 수 2696 추천 수 0 댓글 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. [mac] OS X 요세미티 사용자가 많이 겪는 버그와 몇몇 불편사항

  2. [mac] VirtualBox 실행 스크립트와 bash_profile 설정

  3. Ubuntu Desktop RDP Setup - 24.04 LTS

  4. [펌] 마이크로서비스, 모노리포, SRE, ... 덮어놓고 구글 따라하면 안 되는 기술들

  5. 개인적으로 쓰고 있는 zshrc 파일

  6. 맥 OS X 에서 스크린 화면 캡쳐 단축키 (Mac Print Screen)

  7. iptime 공유기 해킹 기술문서

  8. [linux] The Ultimate Wget Download Guide With 15 Awesome Examples

  9. [mac] 맥에서 기본 실행 앱 변경하기

  10. Enable the Develop Menu in Safari

  11. [linux] wget 명령 사용 예제

  12. SSH Passwordless Login Using SSH Keygen in 5 Easy Steps

  13. 콘솔에서 패스워드 걸린 zip 압축하는 명령

  14. [mac][추천 무료앱] 구름 입력기 - 국내 맥 사용자를 위한 한글 대안 입력기

  15. [apache2] Redirect HTTP to HTTPS

  16. [macos] How to Fix ‘You Shut Down Your Computer Because of a Problem’

Board Pagination Prev 1 2 3 4 5 ... 13 Next
/ 13