System/OS
2017.09.26 01:52
[linux] iptables 초간단 세팅 스크립트
조회 수 2695 댓글 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
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
72 | System/OS |
[linux] GD 라이브러리 설치 방법..
![]() |
hooni | 2013.04.23 | 12360 |
71 | System/OS |
[linux] 초간단 Postfix, Covecot, SSL/TLS (SMTP)
![]() |
hooni | 2017.12.11 | 12347 |
70 | System/OS | [linux] 시스템 데몬 종류와 설명 | hooni | 2013.04.23 | 12228 |
69 | System/OS |
Configure Postfix to Use Gmail SMTP on Ubuntu 18.04
![]() |
hooni | 2020.02.07 | 12161 |
68 | System/OS | [linux] vi 편집기 간단한 명령과 환경설정 | hooni | 2003.04.23 | 12159 |
67 | System/OS |
[doc] TCP/IP 강의 자료 (html)
![]() |
hooni | 2013.04.23 | 11944 |
66 | System/OS | [linux] 프로세스의 stat 상태에 대한 설명 | hooni | 2013.04.23 | 11886 |
65 | System/OS | [mysql] 시간 관련 SQL구문.. | hooni | 2013.04.23 | 11682 |
64 | System/OS | [router] 라우팅 프로토콜 BGP (간단한 세팅) | hooni | 2013.04.23 | 11645 |
63 | System/OS |
OSI (Open Systems Interconnection) 개방형 시스템간 상호 접속
![]() |
hooni | 2013.04.23 | 11525 |
62 | System/OS | [linux] SSH에 대한 기본 설명과 설치/설정 | hooni | 2013.04.23 | 11418 |
61 | System/OS |
[doc] 레드햇 리눅스 메뉴얼 (html버전)
![]() |
hooni | 2013.04.23 | 11306 |