Date: Mon, 12 Dec 2016 15:01:13 +0000 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@freebsd.org Subject: Re: FreeBSD-11 : What TCP/UDP ports does pkg update use? Message-ID: <31d3cf21-fc6d-91d2-04c7-a19ba95a5a74@FreeBSD.org> In-Reply-To: <0d2e1d2e82cba11788a5472afaf7a777.squirrel@webmail.harte-lyne.ca> References: <0d2e1d2e82cba11788a5472afaf7a777.squirrel@webmail.harte-lyne.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --rsKqTWPkW8oM1tbnAQrDQhCedlTUlxV0U Content-Type: multipart/mixed; boundary="RsXEx8heR0klvoVVLC7waMfHCx7GDWD3u"; protected-headers="v1" From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@freebsd.org Message-ID: <31d3cf21-fc6d-91d2-04c7-a19ba95a5a74@FreeBSD.org> Subject: Re: FreeBSD-11 : What TCP/UDP ports does pkg update use? References: <0d2e1d2e82cba11788a5472afaf7a777.squirrel@webmail.harte-lyne.ca> In-Reply-To: <0d2e1d2e82cba11788a5472afaf7a777.squirrel@webmail.harte-lyne.ca> --RsXEx8heR0klvoVVLC7waMfHCx7GDWD3u Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2016/12/12 14:26, James B. Byrne via freebsd-questions wrote: > Experimenting with PF I discover that the pkg utility is being > blocked. However, I cannot seem to find any documentation on what > port(s) pkg is trying to use. Can someone provide me with a > reference, please? >=20 > I know I could install wireshark and just scan for it/them but that > seems a bit excessive just to obtain the default values. pkg will communicate with a repository over a network using one or more of a number of different protocols, depending on how it is configured. Those protocols include: HTTPS HTTP FTP FTPS SSH NFS Each of these have well-known port numbers, but, again, depending on configuration some of these can be overridden to arbitrary port numbers if required. Hint: use 'pkg -vv' and look for the 'url' field in the repo.conf If the URL scheme is 'pkg+something' that indicates a SRV-style lookup, which can override the normal port numbers, as can an explicitly given port in a http://example.com:8080/ style URL. However, if you're using the default /etc/pkg/FreeBSD.conf, then the communication protocol is HTTP over port 80. Cheers, Matthew --RsXEx8heR0klvoVVLC7waMfHCx7GDWD3u-- --rsKqTWPkW8oM1tbnAQrDQhCedlTUlxV0U Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQJ8BAEBCgBmBQJYTrvAXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnIygQAIwErf0VVDYs8Xi/PQHCuHj9 bQx5QeuTh7ZMlOZu1oX5UbXYUMtIimvBo69BcLWaXUn0KAZDTZoZ86PaO7CkQKsg mPjWwUQomyObAPig2SfPa5t3Xugxc/3ekEUSvDXSLy5rtorCF+d1ve2DoWYW6Bu6 rCmAHjCJTnFIe49y1o+42Wg7rYyprvZNENS0x9BmH47CzYhX5tlzvKohTep8IcaM bmh1jMof6IYlGHQZnTz7eyv0UVQ+Da3SQTRawmloYUzuhqUAGdp7g+zSHnE/H1wu YT1Es7UIETrB9JtICr/cyKnB3QEJt5TC5Ww6EWXmFZUI/Zylw6hCQX3dP0qNXGI7 kpofHtqtC7UqyUUynMAj4LvCKMpSuwwnPI6xEethn83SJz97ruXJbB68lHmFQlvH 6Joa0FS9izfyIosV1PDZbBlxd0sYcGGDf5d4O4MvTqmzezh2FoyyjLynI0APeBh1 5BplM6E0+GGCruiOuwwYB9n7OED/qveC4MHrf9cFwJdRLCdo6uVSXC3ba3EpiStt ulrV32iXwEtL9LgbMi4uH/ci+JVGjrexDRpws8znhKP1oOiEHO9jktI04GarNWhY +k0UC7UAGD2Ddf5FyqFtH+DVQUiqRAXelpcJdSTi9iNmfcLQQ3x+ojJPqkOH0Dj3 l6kGZF6zAdyRpl2U6Q3H =CTYt -----END PGP SIGNATURE----- --rsKqTWPkW8oM1tbnAQrDQhCedlTUlxV0U--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?31d3cf21-fc6d-91d2-04c7-a19ba95a5a74>