Created
August 22, 2025 16:09
-
-
Save otuva/1a63a1b9c678f9770e7df7d905718613 to your computer and use it in GitHub Desktop.
Revisions
-
otuva created this gist
Aug 22, 2025 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ 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