Last active
August 27, 2020 16:24
-
-
Save sammcgeown/68259474dffb856a5af06c5c97e70a35 to your computer and use it in GitHub Desktop.
Allow Docker API Remote Access through Firewall
This file contains 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 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 |
This file contains 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 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