Skip to content

Instantly share code, notes, and snippets.

@PI-Victor
Created October 16, 2019 12:48
Show Gist options
  • Save PI-Victor/2129291db55a766a804f44e7ee31de10 to your computer and use it in GitHub Desktop.
Save PI-Victor/2129291db55a766a804f44e7ee31de10 to your computer and use it in GitHub Desktop.
disable docker iptables for internet exposed interface
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