Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 3192  / 2 Years ago, thu, december 30, 2021, 12:58:24

I'm firewalling an Ubuntu Core 16.04 host: What port does snap package management require to be opened?



I spent ages Googling this: Snapcraft's docs don't detail the port nor did any other forums. Couldn't use tcpdump to derive the required port as snap find tcpdump gave no joy.



In the end, I had to packetsniff on the router. I'll provide the answer to hopefully save others firewalling Ubuntu Core hosts the same exercise in frustration...


More From » snap

 Answers
0

In addition to allowing DNS of course, Ubuntu Core requires TCP/443 connectivity for snap package management to check for updates & install packages. The Ubuntu Core host on 192.168.1.26 is using a port from the Dynamic/Private port range, TCP/35234



Packet Sniff Capture



Doing a host lookup of host 91.189.92.20 reports the remote IP as Snapcraft's:



20.92.189.91.in-addr.arpa domain name pointer api.snapcraft.io.


Anyhoo, hope this saves others some time-


[#5590] Friday, December 31, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
scusaper

Total Points: 335
Total Questions: 111
Total Answers: 119

Location: Belize
Member since Mon, Jun 20, 2022
2 Years ago
;