Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gecko655/fe9778e6fcce613850e0 to your computer and use it in GitHub Desktop.
Save gecko655/fe9778e6fcce613850e0 to your computer and use it in GitHub Desktop.
sudo iptables -A DOCKER -p tcp -s 172.17.0.0/16 -d 172.17.0.7 --dport 4444 -j ACCEPT
sudo iptables -A DOCKER -p tcp -d 172.17.0.7 --dport 4444 -j DROP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment