Created
October 16, 2019 12:48
-
-
Save PI-Victor/2129291db55a766a804f44e7ee31de10 to your computer and use it in GitHub Desktop.
disable docker iptables for internet exposed interface
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 -N DOCKER-USER | |
iptables -I FORWARD -j DOCKER-USER | |
iptables -A DOCKER-USER -j RETURN | |
iptables -I DOCKER-USER -i br0 ! -s 192.168.1.1 -j DROP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment