Skip to content

Commit

Permalink
feat: #263 add registry firewall rule
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-shulha committed Nov 9, 2024
1 parent 37afacb commit 4bad313
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/self-hosted/install-agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ if [ -z "$SKIP_CORE_INSTALL" ]; then
iptables -I DOCKER-USER -p tcp -s 127.0.0.1 --dport 2019 -j ACCEPT
iptables -I DOCKER-USER -p tcp --dport 2019 -j REJECT --reject-with tcp-reset

# Allow access to internal Docker Registry port
# Docker Registry will be available at registry.ptah.local:5050 on the overlay ptah_net network
iptables -I DOCKER-USER -p tcp -s 127.0.0.1 --dport 5050 -j ACCEPT
iptables -I DOCKER-USER -p tcp --dport 5050 -j REJECT --reject-with tcp-reset
echo '127.0.0.1 registry.ptah.local' >> /etc/hosts

netfilter-persistent save

rm -f /tmp/ptah-agent
Expand Down

0 comments on commit 4bad313

Please sign in to comment.