URL & port details for Rancher & Agent Installation

For installing Rancher in-house, we want to open internet only for specific URL’s & ports. Is it github.com @ port 443 ? If not, can someone update the list of URL’s and corresponding port number that are required for rancher master server installation and also rancher agent. Thanks.