Skip to content

Commit 7530d8c

Browse files
committed
feat: #263 add registry firewall rule
1 parent 16070c2 commit 7530d8c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: scripts/self-hosted/install-agent.sh

+6
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ if [ -z "$SKIP_CORE_INSTALL" ]; then
121121
iptables -I DOCKER-USER -p tcp -s 127.0.0.1 --dport 2019 -j ACCEPT
122122
iptables -I DOCKER-USER -p tcp --dport 2019 -j REJECT --reject-with tcp-reset
123123

124+
# Allow access to internal Docker Registry port
125+
# Docker Registry will be available at registry.ptah.local:5000 on the overlay ptah_net network
126+
iptables -I DOCKER-USER -p tcp -s 127.0.0.1 --dport 5050 -j ACCEPT
127+
iptables -I DOCKER-USER -p tcp --dport 5050 -j REJECT --reject-with tcp-reset
128+
echo '127.0.0.1 registry.ptah.local' >> /etc/hosts
129+
124130
netfilter-persistent save
125131

126132
rm -f /tmp/ptah-agent

0 commit comments

Comments
 (0)