BSD Ports

net/containernetworking-plugins 0.6_20 FreeBSD

Networking plugins for container networking support

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
d81b7ba3c3
License
APACHE20
Categories
net
Package size
2812.3 KiB, 22673.3 KiB installed

Description

CNI plugins for container networking support. This is used by container engines such as Podman and Buildah to setup and teardown network access for containers.

Install

Binary package:

pkg install containernetworking-plugins

From the ports tree:

cd /usr/ports/net/containernetworking-plugins/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	containernetworking-plugins>0:net/containernetworking-plugins

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.6_190.6_19-0.6_20.6_19
FreeBSD:14:quarterly0.6_190.6_19n/a0.60.6_19
FreeBSD:15:latest0.6_190.6_19n/a-0.6_2
FreeBSD:15:quarterly0.6_190.6_19n/an/an/a
FreeBSD:16:latest0.6_180.6_19n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

The full lists below include those, and their dependencies in turn.

Build dependencies 4

Configuration

No options to configure.

USES
go:no_targets
Service scripts
none

Message after installing

Container networking relies on NAT to allow container network packets
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 v4egress_if, v6egress_if to your network interface(s)
...
# sysrc pf_enable=YES
# service pf start

The sample PF configuration includes support for port redirections. These are
implemented as redirect rules in anchors nested under cni-rdr.

Support for redirecting connections from the container host to services running
inside a container is included for FreeBSD 13.3 and later. To enable this, first
load the pf kernel module, by adding pf_load="YES" to /boot/loader.conf and
enable PF support for these redirections using sysctl:

# kldload pf
# sysctl net.pf.filter_local=1
# service pf restart

Redirect rules will work if the destination address is localhost (e.g. 127.0.0.1
or ::1) - to enable this, the following line must be included in your
/etc/pf.conf:

nat-anchor "cni-rdr/*"

if upgrading from an older version, this needs to be added to /etc/pf.conf.

For example if host port 1234 is redirected to an http service running in a
container, you could connect to it using:

# fetch -o- http://$(hostname):1234

or

# fetch -o- http://localhost:1234

Files

pkg-plist 8
  • etc/containers/pf.conf.sample
  • libexec/cni/bridge
  • libexec/cni/firewall
  • libexec/cni/host-local
  • libexec/cni/loopback
  • libexec/cni/portmap
  • libexec/cni/static
  • libexec/cni/tuning
distinfo 2
FileSizeSHA256
dfr-plugins-freebsd-v0.6_GH0.tar.gz4.198697e+06ff18035ea945776d1c10d0ad2e712c476c03d1b1a1c2b1e8ee4b2c8d5d361dec
golang-sys-v0.6.0_GH0.tar.gz1.434234e+06b4f6d17c7a128f76169964b437cb66b3f2dbf9a33361928ec19dfecf7b03fc54

Commit history 6

DateCommitCreditsLog message
d81b7ba3c3 Dag-Erling Smørgrav various: Bump Go ports for Go 1.26.10 / 1.27.3
031fc6bfbf Dag-Erling Smørgrav various: Bump Go ports
dd0905142a Adam Weinberger many: Bump go ports for 1.26.8 and 1.27.1
4867821cd6 Dag-Erling Smørgrav various: Bump go ports for go-1.25.14 / 1.26.7
6d39dcf04e Dag-Erling Smørgrav various: Bump go ports for go-1.25.13 / 1.26.6

The latest 5 of 6 in the history this site was built from.