방화벽 설정 확인

 

  • 방화벽 유무 확인
rpm -qa | grep firewalld

 

  • 방화벽 시작
systemctl start firewalld
systemctl enable firewalld

 

  • 포트 허용 & 재시작
firewall-cmd --permanent --zone=public --add-port=8080/tcp
firewall-cmd --reload

 

  • 설정된 방화벽 확인
firewall-cmd --permanent --list-all

 

  • LISTEN상태 포트 확인
netstat -nap | grep LISTEN

//8080을 확인하고 싶은 경우
netstat -an | grep 8080