Docker:UFW
lastmod 2026-11-10created 2022-04-192 edits
Docker 와 UFW의 조합에는 알려진 보안 문제가 있다. Docker 는 컨테이너 포트를 공개할 때 iptables 규칙을 직접 추가하므로 UFW 에서 막아 둔 포트라도 외부에서 접근할 수 있게 되며, UFW 상태만 보고 방화벽이 적용되었다고 믿기 쉽다. 이 문서는 이 문제의 원인과 함께 iptables 를 끄지 않고 ufw-docker 같은 방법으로 두 도구를 함께 쓰는 설정을 정리한다.
See also
Favorite site
- Github - chaifeng/ufw-docker - To fix the Docker and UFW security flaw without disabling iptables