Created
August 22, 2025 16:09
-
-
Save otuva/1a63a1b9c678f9770e7df7d905718613 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| sudo iptables -I DOCKER ! -s ipyouwanttoallow -j DROP | |
| sudo iptables -I DOCKER -s localipofyourcontainer -d 0.0.0.0/0 -j ACCEPT | |
| sudo iptables -I DOCKER -m state --state ESTABLISHED,RELATED -j ACCEPT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment