더북(TheBook)

9. iptables 명령어를 이용해 IN_public_allow 체인에 다음과 같이 포트 5672번을 추가합니다.

[root@controller ~]# iptables -A IN_public_allow -p tcp -m tcp –dport 5672 -m
conntrack –ctstate NEW -j ACCEPT


10. 다시 iptables -L 명령어를 이용해 방화벽 목록을 확인합니다. IN_public_allow 체인을 확인하면 amqp 포트가 추가되어 있습니다.

[root@controller ~]# iptables -L
Chain INPUT (policy ACCEPT)

… Chain IN_public (3 references) target prot opt source destination
IN_public_log all – anywhere anywhere
IN_public_deny all – anywhere anywhere
IN_public_allow all – anywhere anywhere

Chain IN_public_allow (1 references) target prot opt source destination
ACCEPT tcp – anywhere anywhere tcp dpt:ssh ctstate NEW ACCEPT tcp – anywhere anywhere tcp dpt:amqp ctstate NEW

신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.