Description
whalewall automates firewall rules for Docker containers. By default Docker creates iptables rules that override almost all user-set rules. The two usual workarounds each cause trouble: turning off Docker's iptables management breaks most container networking, and adding rules by hand to the DOCKER-USER chain means recreating them whenever containers and networks are recreated with new addresses. whalewall listens for Docker container start and die events and creates or deletes nftables rules to match. It uses nftables because, as the README explains, nftables can be configured programmatically, unlike iptables. Besides controlling traffic to and from localhost and external interfaces, whalewall can enforce container network isolation by limiting traffic between containers. It requires Linux with a recent kernel, around 5.10 or newer. The README includes a security section and installation instructions. The project is public on GitHub. It suits people who run Docker on a Linux host and want their firewall rules to follow their containers automatically, without maintaining them by hand.…
Highlights
- Creates and deletes nftables rules as containers start and stop
- Controls traffic to localhost and external interfaces
- Limits traffic between containers for isolation
- Needs Linux with a kernel around 5.10 or newer
- No hand-managed DOCKER-USER chain rules
Ratings & Reviews
No ratings yet
Be the first to rate Whalewall.
People also visit
Ufw Docker Automated
Manage UFW (Uncomplicated Firewall) rules for Docker containers
Whalewall FAQ
What problem does it solve?
Docker's own iptables rules override most user firewall rules, and rules added by hand to the DOCKER-USER chain must be updated whenever container addresses change.
What does it need?
A Linux host with a recent kernel, around 5.10 or newer.
How does it work?
It listens for Docker container start and die events and creates or deletes nftables rules to match.
Why nftables instead of iptables?
The README gives several reasons, and one is that nftables can be configured programmatically, unlike iptables.
Can it isolate containers?
Yes. Besides rules for host traffic, it can limit traffic between containers.
What are the best Whalewall alternatives?
Popular alternatives to Whalewall include Ufw Docker Automated, Ufw Docker and XDP Firewall. See all Whalewall alternatives
