"우분투 방화벽 ufw"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source lang='cli'> +<source lang='console'>))
6번째 줄: 6번째 줄:
==주요 명령어==
==주요 명령어==
;상태 확인
;상태 확인
<source lang='cli'>
<source lang='console'>
root@zetawiki:~# ufw status
root@zetawiki:~# ufw status
Status: inactive
Status: inactive
12번째 줄: 12번째 줄:


;활성화
;활성화
<source lang='cli'>
<source lang='console'>
root@zetawiki:~# ufw enable
root@zetawiki:~# ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)?  
Command may disrupt existing ssh connections. Proceed with operation (y|n)?  
19번째 줄: 19번째 줄:


;비활성화
;비활성화
<source lang='cli'>
<source lang='console'>
root@zetawiki:~# ufw disable
root@zetawiki:~# ufw disable
Firewall stopped and disabled on system startup
Firewall stopped and disabled on system startup
</source>
</source>
<source lang='cli'>
<source lang='console'>
root@zetawiki:~# ufw status
root@zetawiki:~# ufw status
Status: inactive
Status: inactive
35번째 줄: 35번째 줄:
ufw status
ufw status
</source>
</source>
<source lang='cli'>
<source lang='console'>
root@zetawiki:~# ufw allow 22/tcp
root@zetawiki:~# ufw allow 22/tcp
Rules updated
Rules updated
Rules updated (v6)
Rules updated (v6)
</source>
</source>
<source lang='cli'>
<source lang='console'>
root@zetawiki:~# ufw logging on
root@zetawiki:~# ufw logging on
Logging enabled
Logging enabled
</source>
</source>
<source lang='cli'>
<source lang='console'>
root@zetawiki:~# ufw enable
root@zetawiki:~# ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startup
Firewall is active and enabled on system startup
</source>
</source>
<source lang='cli'>
<source lang='console'>
root@zetawiki:~# ufw status
root@zetawiki:~# ufw status
Status: active
Status: active

2016년 3월 29일 (화) 14:19 판

1 개요

우분투 ufw[1]
/usr/sbin/ufw

2 주요 명령어

상태 확인
root@zetawiki:~# ufw status
Status: inactive
활성화
root@zetawiki:~# ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)?


비활성화
root@zetawiki:~# ufw disable
Firewall stopped and disabled on system startup
root@zetawiki:~# ufw status
Status: inactive

3 기본 설정

ufw allow ssh/tcp
ufw logging on
ufw enable
ufw status
root@zetawiki:~# ufw allow 22/tcp
Rules updated
Rules updated (v6)
root@zetawiki:~# ufw logging on
Logging enabled
root@zetawiki:~# ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startup
root@zetawiki:~# ufw status
Status: active

To                         Action      From
--                         ------      ----
22/tcp                     ALLOW       Anywhere
22/tcp (v6)                ALLOW       Anywhere (v6)

4 같이 보기

5 참고 자료

  1. Uncomplicated Firewall
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}