I need the IP addresses and port numbers of the Ubuntu update sites to be able to perform updates on my systems as we can only open specific ports to specific IP addresses. Can anyone help?
Thanks in advance!
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityI use the US archive mirrors at us.archive.ubuntu.com
, the security updates at security.ubuntu.com
, and also pull in extras (extras.ubuntu.com
) and PPAs (ppa.launchpad.net
).
Unless you specifically state which mirrors you are on, it's impossible to figure out what IP(s) you'll use. However, if you are restricting outbound connectivity, then you'll have to open the outgoing ports depending on what exactly you use as the apt
transfer method. (HTTP (TCP 80)
, HTTPS (TCP 443)
, FTP (TCP 21)
, or others.) If you use a proxy, there's additional configurations you'll need to run as well.
Below is my /etc/hosts
entries for the US archive mirrors, the extras site, the security repos, and the PPAs site, which was last updated a couple months ago (and still works here). (They're in my /etc/hosts site to try and mitigate DNS poisoning potentiality). Note that I do not have outbound rule restrictions, but these IP addresses work on my locked-down VLAN and have "ALLOW" rules in place on my network border firewall to allow outbound from the Ubuntu systems I need updating from my locked-down area.
NOTE: These may be out of date! ALWAYS do the DNS lookup yourself to get the updated IP lists!
91.189.91.13 us.archive.ubuntu.com
91.189.91.14 us.archive.ubuntu.com
91.189.91.15 us.archive.ubuntu.com
91.189.91.14 security.ubuntu.com
91.189.91.15 security.ubuntu.com
91.189.92.181 security.ubuntu.com
91.189.92.184 security.ubuntu.com
91.189.92.190 security.ubuntu.com
91.189.92.200 security.ubuntu.com
91.189.92.201 security.ubuntu.com
91.189.92.202 security.ubuntu.com
91.189.91.13 security.ubuntu.com
91.189.95.83 ppa.launchpad.net
91.189.92.152 extras.ubuntu.com
If you want to use a different archive mirror, I can go hunting, but it'd be dependent on the region you're in. (I pulled these IPs from Google's DNS servers, so they're not likely to be poisoned DNS entries)
squid
or a transparent proxy to control that kind of thing)