ufw




개요


ufw 방화벽에 대해 알아보고 설정 방법에 대해 알아보겠다.

본투비루트 과제 해결 사항

◦ You have to configure your operating system with the UFW firewall and thus leave only port 4242 open.




ufw


UFW는 Uncomplicated Firewall의 줄임말로 데비안 계열 및 다양한 리눅스 환경에서 작동되는 방화벽 관리 프로그램이다.

방화벽은 여러 규칙을 만들어 사용하게 되는데 방화벽의 가장 기본 규칙은 모든 IP와 포트에 대해 차단하는 정책이다.




ufw


apt install ufw




ufw 상태 확인


디폴트는 비활성

ufw status verbose




부팅 시 ufw 활성화


ufw enable




포트 허용


ufw allow port_num




포트 삭제


ufw status numbered

ufw delete port_index




You have to configure your operating system with the UFW firewall and thus leave only port 4242 open.


ufw status verbose 확인