Created
September 8, 2021 18:19
-
-
Save rehmatworks/7dcf98c10be47f522ac842bc406c8ca7 to your computer and use it in GitHub Desktop.
Disallow eth0 traffic for Docker Swarm container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iptables -I DOCKER-USER -i eth0 -j DROP | |
iptables -I DOCKER-USER -m state --state RELATED,ESTABLISHED -j ACCEPT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment