티스토리 뷰
방법[편집]
- 명령어
iptables -A INPUT -s 아이피 -j DROP
- 명령어 예시
iptables -A INPUT -s 111.222.33.44 -j DROP
- → 111.222.33.44 차단
iptables -A INPUT -s 111.222.33.0/24 -j DROP
- → 111.222.33.X 대역 차단
- 실행예시
[root@zetawiki ~]# iptables -A INPUT -s 111.222.33.44 -j DROP
[root@zetawiki ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
DROP all -- 111.222.33.44 anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
iptables -A INPUT -s 아이피 -j DROP
iptables -A INPUT -s 111.222.33.44 -j DROP
iptables -A INPUT -s 111.222.33.0/24 -j DROP
[root@zetawiki ~]# iptables -A INPUT -s 111.222.33.44 -j DROP
[root@zetawiki ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
DROP all -- 111.222.33.44 anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
'Computer > Server:Linux&Window' 카테고리의 다른 글
sda hda 차이 (0) | 2016.08.25 |
---|---|
(CentOS) CentOS USB로 설치하기 (4GB 이상) (0) | 2016.08.23 |
(리눅스 보안) Centos History 시간 출력하기 (0) | 2016.08.19 |
(리눅스) 기본 로그 보안 (0) | 2016.08.18 |
(Linux) Crontab 크론탭/예약작업 (0) | 2016.04.04 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- git hub
- 점유율
- linux
- php
- C언어
- GIT
- Swift
- 서버
- node.js
- 리눅스
- 깃헙
- Android
- 스위프트
- Phaser
- 노드
- Asterisk
- xcode
- 배열
- 안드로이드
- Node
- 뉴스룸
- 앵커브리핑
- C
- IOS
- Kotlin
- CentOS
- mysql
- BBC 가쉽
- nodejs
- 손석희
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
글 보관함