aboutsummaryrefslogtreecommitdiff
path: root/net/containernetworking-plugins
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>2022-11-30 13:30:22 +0000
committerDoug Rabson <dfr@FreeBSD.org>2022-12-04 10:56:53 +0000
commit26861cc612d83c067858fe1889f752708be0edd5 (patch)
tree12fcf2c27eb7b319bed5715a4d5caaa69552eba7 /net/containernetworking-plugins
parent512b99159aaf7beea3070242eae640d16cb607fa (diff)
Diffstat (limited to 'net/containernetworking-plugins')
-rw-r--r--net/containernetworking-plugins/Makefile4
-rw-r--r--net/containernetworking-plugins/distinfo6
-rw-r--r--net/containernetworking-plugins/files/pf.conf.sample9
-rw-r--r--net/containernetworking-plugins/pkg-message4
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 <cni-nat> to any -> ($egress_if)
-nat on $egress_if inet6 from <cni-nat> to !ff00::/8 -> ($egress_if)
+nat on $v4egress_if inet from <cni-nat> to any -> ($v4egress_if)
+nat on $v6egress_if inet6 from <cni-nat> to !ff00::/8 -> ($v6egress_if)
rdr-anchor "cni-rdr/*"
table <cni-nat>
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