"리눅스 iptables 끄기, 켜기"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-==참고 자료== +==참고==))
 
(사용자 2명의 중간 판 4개는 보이지 않습니다)
4번째 줄: 4번째 줄:
;How To Turn off/Turn on Linux Firewall
;How To Turn off/Turn on Linux Firewall
;리눅스 iptables 끄기, 켜기
;리눅스 iptables 끄기, 켜기
;리눅스 OS 방화벽 비활성화/활성화 하기
*리눅스 설치하면 방화벽은 기본적으로 켜져 있다.
*리눅스 설치하면 방화벽은 기본적으로 켜져 있다.
*아래 명령어로 iptables를 끄고 켤 수 있다.
<source lang='bash'>
service iptables stop
/etc/init.d/iptables stop
</source>
<source lang='bash'>
service iptables start
/etc/init.d/iptables start
</source>


==끄기==
==끄기==
<source lang='cli'>
<source lang='console'>
[root@jmnote ~]# iptables -L
[root@zetawiki ~]# iptables -L
Chain INPUT (policy ACCEPT)
Chain INPUT (policy ACCEPT)
target    prot opt source              destination         
target    prot opt source              destination         
24번째 줄: 35번째 줄:
target    prot opt source              destination   
target    prot opt source              destination   
</source>
</source>
<source lang='cli'>
<source lang='console'>
[root@jmnote ~]# service iptables stop
[root@zetawiki ~]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Flushing firewall rules:                        [  OK  ]
iptables: Flushing firewall rules:                        [  OK  ]
iptables: Unloading modules:                              [  OK  ]
iptables: Unloading modules:                              [  OK  ]
</source>
</source>
<source lang='cli'>
<source lang='console'>
[root@jmnote ~]# iptables -L
[root@zetawiki ~]# iptables -L
Chain INPUT (policy ACCEPT)
Chain INPUT (policy ACCEPT)
target    prot opt source              destination         
target    prot opt source              destination         
43번째 줄: 54번째 줄:


==켜기==
==켜기==
<source lang='cli'>
<source lang='console'>
[root@jmnote ~]# iptables -L
[root@zetawiki ~]# iptables -L
Chain INPUT (policy ACCEPT)
Chain INPUT (policy ACCEPT)
target    prot opt source              destination         
target    prot opt source              destination         
54번째 줄: 65번째 줄:
target    prot opt source              destination  
target    prot opt source              destination  
</source>
</source>
<source lang='cli'>
<source lang='console'>
[root@jmnote ~]# service iptables start
[root@zetawiki ~]# service iptables start
iptables: Applying firewall rules:                        [  OK  ]
iptables: Applying firewall rules:                        [  OK  ]
</source>
</source>
<source lang='cli'>
<source lang='console'>
[root@jmnote ~]# iptables -L
[root@zetawiki ~]# iptables -L
Chain INPUT (policy ACCEPT)
Chain INPUT (policy ACCEPT)
target    prot opt source              destination         
target    prot opt source              destination         
79번째 줄: 90번째 줄:
*[[iptables]]
*[[iptables]]


==참고 자료==
==참고==
*http://www.cyberciti.biz/faq/turn-on-turn-off-firewall-in-linux/
*http://www.cyberciti.biz/faq/turn-on-turn-off-firewall-in-linux/
[[분류: 리눅스 네트워크]]
[[분류: 리눅스 네트워크]]
[[분류: 방화벽]]
[[분류: 방화벽]]

2017년 7월 11일 (화) 03:50 기준 최신판

1 개요[ | ]

How To Disable/Enable The Iptables Firewall in Linux
How To Turn off/Turn on Linux Firewall
리눅스 iptables 끄기, 켜기
리눅스 OS 방화벽 비활성화/활성화 하기
  • 리눅스 설치하면 방화벽은 기본적으로 켜져 있다.
  • 아래 명령어로 iptables를 끄고 켤 수 있다.
service iptables stop
/etc/init.d/iptables stop
service iptables start
/etc/init.d/iptables start

2 끄기[ | ]

[root@zetawiki ~]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ACCEPT     icmp --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
[root@zetawiki ~]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Unloading modules:                               [  OK  ]
[root@zetawiki ~]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

3 켜기[ | ]

[root@zetawiki ~]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
[root@zetawiki ~]# service iptables start
iptables: Applying firewall rules:                         [  OK  ]
[root@zetawiki ~]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ACCEPT     icmp --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

4 같이 보기[ | ]

5 참고[ | ]

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