If I run command -v ipset as root, It returns nothing:
root@mail:/home/user# command -v ipset
root@mail:/home/user#
apt info ipset returns:
root@mail:/home/user# apt info ipset
Package: ipset
Version: 7.22-1+b1
Priority: optional
Section: net
Source: ipset (7.22-1)
Maintainer: Debian Netfilter Packaging Team <pkg-netfilter-team@lists.alioth.de>
Installed-Size: 143 kB
Provides: ipset-7.22
Depends: libc6 (>= 2.34), libipset13t64 (>= 7.15-1~)
Recommends: iptables
Breaks: xtables-addons-common (<< 1.41~)
Homepage: https://ipset.netfilter.org/
Tag: implemented-in::c, role::program
Download-Size: 46.6 kB
APT-Manual-Installed: yes
APT-Sources: http://deb.debian.org/debian trixie/main amd64 Packages
Description: administration tool for kernel IP sets
IP sets are a framework inside the Linux 2.4.x and 2.6.x kernel which can be
administered by the ipset(8) utility. Depending on the type, currently an
IP set may store IP addresses, (TCP/UDP) port numbers or IP addresses with
MAC addresses in a way which ensures lightning speed when matching an
entry against a set.
.
From what I can tell, ipset is installed but it is not in my PATH, it resides in: /usr/sbin/
If I run:
root@mail:/home/user# /usr/sbin/ipset -v
ipset v7.22, protocol version: 7
Just so I’m on the same page, I installed ipset on my host that’s running docker, I didn’t install anything within docker.
And you’re correct - iptables is installed, it’s also in /usr/sbin
Thanks