From nobody Sun Dec 04 11:03:34 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NQ3h72Ncgz4hsmD; Sun, 4 Dec 2022 11:03:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NQ3h66s3Nz3p0r; Sun, 4 Dec 2022 11:03:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670151815; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nm9NqyFrHgC3WfbX87K57kCmkzZCbg27+rTBIrBympc=; b=UC35Mbk9cVNbmK/5GelZphFJVYla/mceRmXkqI9ZN+7j3cFTLKFdb47eTPS1R+IOycOSxK m7UkavigySWVNwNwwMqTNXg5PZYeUa34ZdppwYdVkkAIxBHAXUqA1hzI0NFIZvvrHVZc0N BLIysFSz929EKayXYjLFCHQp3iPJs7JD+sg8SF0sk6sMOr7UrUbOhlrK8d0YLTisqXLWh8 1bzDqmqnWthSpgywluD33I7+dl7HvWkGlbIygdrLOmP8y0CUt/UwJpxlYXzIrWghlA4WN0 kypKNMS0njmwVXz5Cr1iJDolLq5m9I0TKgF/n4akrDtFc90E2VPeKK5gWAZeIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670151815; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nm9NqyFrHgC3WfbX87K57kCmkzZCbg27+rTBIrBympc=; b=LAv1SfhlBd22lg3PAT8KG9U+cBdYtbM3VrQc95MYWkDRT8HIQP9n4x9/fjJeqAB6qJoiPJ vhXSi1Mz4h7PH9jM8qfxLE4ZM8UQcHZQsX+BvntrirbkQkyi4Y/92whsIj0kVDkmVVjMQz DIn8o1DHPlulqUxDj6RcFuIXHoTTROwFdCDG3amH+Q9ow7iT6mx2U8TaB2gu011uPLf07O l4+GTEG1aaPqJy3xXhlAKVqlCOytU7sGai7hEDw/LDmxEQNShjzuexPdXS7nnC7D1fAV5C qH09D8/DrWA69yhDMT0JEiICbSNVyGRs2SEmg2KxrfEBJLGMcHxn2IRez3thHw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670151815; a=rsa-sha256; cv=none; b=OJJtCRnv2Of5AMRpKw0aM9VQEKL29M+EaW2xvtxD79K10ZyO8iYokZR9CExRVABo8eeC/3 bzUx61hHDRFdHcFf1Lm1o4lshyUkuzWWtb3JacH32NxLqGhQhb2JwseaccIqY3s3gu9Fom 0iGlrL+v9TO4vdO98dpuXONtQJSkqQZwnTe8wq5c/pzcpJvRUkaH2FyIgGx6AbXB4s96Mm GWoJJP8ZaM+YeJa8SC3zD425Btwq/+72lzVqeaQ96nYsyZdLuOMLn9eAtM64RvD6do/8Nb xsdmcUOiEuV2XjAOlozaFaOrQc/9fvMs0tDJMRRXxdQPzjG+6Z73iNb3EB+7rw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NQ3h65mYgzGmP; Sun, 4 Dec 2022 11:03:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2B4B3Yxd027105; Sun, 4 Dec 2022 11:03:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B4B3Y4v027104; Sun, 4 Dec 2022 11:03:34 GMT (envelope-from git) Date: Sun, 4 Dec 2022 11:03:34 GMT Message-Id: <202212041103.2B4B3Y4v027104@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Doug Rabson Subject: git: 26861cc612d8 - main - net/containernetworking-plugins: update to 0.2 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dfr X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 26861cc612d83c067858fe1889f752708be0edd5 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dfr (src committer): URL: https://cgit.FreeBSD.org/ports/commit/?id=26861cc612d83c067858fe1889f752708be0edd5 commit 26861cc612d83c067858fe1889f752708be0edd5 Author: Doug Rabson AuthorDate: 2022-11-30 13:30:22 +0000 Commit: Doug Rabson CommitDate: 2022-12-04 10:56:53 +0000 net/containernetworking-plugins: update to 0.2 Approved by: dch --- net/containernetworking-plugins/Makefile | 4 ++-- net/containernetworking-plugins/distinfo | 6 +++--- net/containernetworking-plugins/files/pf.conf.sample | 9 +++++---- net/containernetworking-plugins/pkg-message | 4 +++- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/net/containernetworking-plugins/Makefile b/net/containernetworking-plugins/Makefile index f0e11c9ead4f..d5285b81baa3 100644 --- a/net/containernetworking-plugins/Makefile +++ b/net/containernetworking-plugins/Makefile @@ -1,5 +1,5 @@ PORTNAME= containernetworking-plugins -DISTVERSION= 0.1 +DISTVERSION= 0.2.1 CATEGORIES= net MAINTAINER= dfr@FreeBSD.org @@ -14,7 +14,7 @@ BUILD_DEPENDS= bash:shells/bash USE_GITHUB= yes GH_ACCOUNT= dfr GH_PROJECT= plugins -GH_TAGNAME= 60b0a2b +GH_TAGNAME= freebsd-v0.2.1 do-build: cd ${WRKSRC} && ${SETENV} XDG_CACHE_HOME=${WRKDIR}/.cache GO=${GO_CMD} ./build_freebsd.sh diff --git a/net/containernetworking-plugins/distinfo b/net/containernetworking-plugins/distinfo index 2e328f4fd663..2906a5ac54c3 100644 --- a/net/containernetworking-plugins/distinfo +++ b/net/containernetworking-plugins/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1667064085 -SHA256 (dfr-plugins-0.1-60b0a2b_GH0.tar.gz) = e2eb2a6ec6209b4cd08ebd53b104fe1d0edafb3d3473c8450e60a69e3c509399 -SIZE (dfr-plugins-0.1-60b0a2b_GH0.tar.gz) = 4197131 +TIMESTAMP = 1669909849 +SHA256 (dfr-plugins-0.2.1-freebsd-v0.2.1_GH0.tar.gz) = b915e4861e311797ab266badca84977a9daf1618c7b08c694f1402fbaa7ece66 +SIZE (dfr-plugins-0.2.1-freebsd-v0.2.1_GH0.tar.gz) = 4197418 diff --git a/net/containernetworking-plugins/files/pf.conf.sample b/net/containernetworking-plugins/files/pf.conf.sample index 9d4ec5e2b414..c2d99f2a3bbf 100644 --- a/net/containernetworking-plugins/files/pf.conf.sample +++ b/net/containernetworking-plugins/files/pf.conf.sample @@ -1,8 +1,9 @@ -# Change this to the interface with the default route -egress_if = "ix0" +# Change these to the interface(s) with the default route +v4egress_if = "ix0" +v6egress_if = "ix0" -nat on $egress_if inet from to any -> ($egress_if) -nat on $egress_if inet6 from to !ff00::/8 -> ($egress_if) +nat on $v4egress_if inet from to any -> ($v4egress_if) +nat on $v6egress_if inet6 from to !ff00::/8 -> ($v6egress_if) rdr-anchor "cni-rdr/*" table diff --git a/net/containernetworking-plugins/pkg-message b/net/containernetworking-plugins/pkg-message index 55be0dfff490..32b0f5b9dde1 100644 --- a/net/containernetworking-plugins/pkg-message +++ b/net/containernetworking-plugins/pkg-message @@ -3,6 +3,8 @@ out to the host's network. This requires a PF firewall to perform the translation. A simple example is included - to use it: # cp /usr/local/etc/containers/pf.conf.sample /etc/pf.conf -... edit /etc/pf.conf and set egress_if to your network interface ... +... +Edit /etc/pf.conf and set v4egress_if, v6egress_if to your network interface(s)s +... # sysrc pf_enable=YES # service pf start