더북(TheBook)

8. 다시 iptables -L 명령어를 이용해 방화벽 목록을 확인합니다. 좀 전에 삽입한 포트가 보이면 정상적으로 적용된 것입니다.

[root@controller ~]# 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
ACCEPT     tcp  --  anywhere             anywhere             state NEW tcp 
dpt:amqp
REJECT     all  --  anywhere             anywhere             reject-with 
icmp-host-prohibited
...
신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.