The other day I needed to download my script to automount a USB drive on a ESXi server from my GitHub repository. To do this I opened the Http Client port for the ESXi server and then executed
wget https://raw.githubusercontent.com/FentonTom/AutoMountUSB/main/AutoMountUSB.bash
in vSphere Client I selected the host > Configure > System > Firewall. Under Connection: outgoing I selected HttpClient
.