From owner-freebsd-questions@freebsd.org Mon Dec 12 15:01:39 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 43320C7393B for ; Mon, 12 Dec 2016 15:01:39 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id CCDF4659 for ; Mon, 12 Dec 2016 15:01:38 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from host-4-75.office.adestra.com (unknown [85.199.232.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 2C57370AC for ; Mon, 12 Dec 2016 15:01:31 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/2C57370AC; dkim=none; dkim-atps=neutral Subject: Re: FreeBSD-11 : What TCP/UDP ports does pkg update use? To: freebsd-questions@freebsd.org References: <0d2e1d2e82cba11788a5472afaf7a777.squirrel@webmail.harte-lyne.ca> From: Matthew Seaman Message-ID: <31d3cf21-fc6d-91d2-04c7-a19ba95a5a74@FreeBSD.org> Date: Mon, 12 Dec 2016 15:01:13 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <0d2e1d2e82cba11788a5472afaf7a777.squirrel@webmail.harte-lyne.ca> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rsKqTWPkW8oM1tbnAQrDQhCedlTUlxV0U" X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2016 15:01:39 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --rsKqTWPkW8oM1tbnAQrDQhCedlTUlxV0U Content-Type: multipart/mixed; boundary="RsXEx8heR0klvoVVLC7waMfHCx7GDWD3u"; protected-headers="v1" From: Matthew Seaman 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--