# Ipset not working

**URL:** <https://community.ipfire.org/t/ipset-not-working/9477>\
**Category:** Firewall Rules\
**Created:** [17 March 2023 01:58 UTC](https://community.ipfire.org/t/ipset-not-working/9477 "2023-03-17T01:58:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stinga](https://community.ipfire.org/user_avatar/community.ipfire.org/stinga/32/9596_2.png) [@stinga](https://community.ipfire.org/u/stinga)\
**Post date:** [17 March 2023 01:58 UTC](https://community.ipfire.org/t/ipset-not-working/9477/1 "2023-03-17T01:58:38Z")

</div>

G’day,

```auto
[root@wr-fw ~]# ipset -L
ipset v7.15: Kernel error received: Invalid argument

```

According to [wiki.ipfire.org - IPset](https://wiki.ipfire.org/configuration/firewall/ipset)

```auto
[root@wr-fw ~]# lsmod|grep set
[root@wr-fw ~]#

```

I would need to do

```auto
modprobe ip_set

```

On older kernels, does not state what is old.

```auto
[root@wr-fw ~]# cat /etc/os-release /etc/system-release
NAME="IPFire"
VERSION="2.27"
ID=ipfire
VERSION_ID=2
PRETTY_NAME="IPFire 2.27 (x86_64) - core172"
ANSI_COLOR="0:31"
IPFire 2.27 (x86_64) - core172

```

Should `ipset` just work, or do I need the `modprobe`

---

<div class="post-metadata">

**Author:** ![jon](https://community.ipfire.org/user_avatar/community.ipfire.org/jon/32/15363_2.png) [@jon](https://community.ipfire.org/u/jon)\
**Post date:** [17 March 2023 02:53 UTC](https://community.ipfire.org/t/ipset-not-working/9477/2 "2023-03-17T02:53:25Z")

</div>

The `lsmod` command is a little different: The last item in the line is `ip_set`:

```auto
[root@ipfire ~] # lsmod | grep ip_set
ip_set_hash_net 53248 19
ip_set 61440 2 xt_set,ip_set_hash_net
[root@ipfire ~] # 

```

for what it is worth, `ipset` was updated in cu173. this is what I have:

```auto
[root@ipfire ~] # ipset version
ipset v7.17, protocol version: 7
[root@ipfire ~] # 

```

you may want to try rebooting first - maybe that might help. and then maybe try updating to cu173.

* * *

**EDIT** :

> [@stinga](#):
>
> Should `ipset` just work, or do I need the `modprobe`

it should just work. `modprobe` is not needed.

---

<div class="post-metadata">

**Author:** ![stinga](https://community.ipfire.org/user_avatar/community.ipfire.org/stinga/32/9596_2.png) [@stinga](https://community.ipfire.org/u/stinga)\
**Post date:** [17 March 2023 04:11 UTC](https://community.ipfire.org/t/ipset-not-working/9477/3 "2023-03-17T04:11:34Z")

</div>

I will update! it is pending anyway.
