Skip to content

Instantly share code, notes, and snippets.

@sammcgeown
Last active August 27, 2020 16:24
Show Gist options
  • Save sammcgeown/68259474dffb856a5af06c5c97e70a35 to your computer and use it in GitHub Desktop.
Save sammcgeown/68259474dffb856a5af06c5c97e70a35 to your computer and use it in GitHub Desktop.
Allow Docker API Remote Access through Firewall
sudo firewall-cmd --state
sudo firewall-cmd --permanent --zone=public --add-rich-rule='
rule family="ipv4"
source address="[vRealize Appliance IP/Cloud Proxy IP]/32"
port protocol="tcp" port="2376" accept'
sudo firewall-cmd --permanent --zone=public --add-rich-rule='
rule family="ipv4"
source address="[vRealize Appliance IP/Cloud Proxy IP]/32"
port protocol="tcp" port="30000-32767" accept'
sudo firewall-cmd --permanent --zone=public --add-rich-rule='
rule family="ipv4"
source address="[Workstation IP]/32"
port protocol="tcp" port="2376" accept'
sudo firewall-cmd --reload
sudo ufw status
sudo ufw allow from [vRealize Appliance IP/Cloud Proxy IP] to any port 2376
sudo ufw allow from [vRealize Appliance IP/Cloud Proxy IP] to any port 30000:32767 proto tcp
sudo ufw allow from [Workstation IP] to any port 2376
sudo ufw reload
sudo ufw enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment