---
title: Install nftables-pk on elementary OS using the Snap Store | Snapcraft
description: Get the latest version of nftables-pk for on elementary OS - nftables
  is the new packet classification framework that replaces iptables
url: https://snapcraft.io/install/nftables-pk/elementary
---

[Canonical Snapcraft](https://snapcraft.io/)

# Install nftables-pk on **elementary OS**

# nftables-pk

[Paweł Krawczyk (pawel-krawczyk)](https://snapcraft.io/publisher/pawel-krawczyk "View all snaps from Paweł Krawczyk (pawel-krawczyk)")

* [Paweł Krawczyk (pawel-krawczyk)](https://snapcraft.io/publisher/pawel-krawczyk "View all snaps from Paweł Krawczyk (pawel-krawczyk)")
* [Security](https://snapcraft.io/search?categories=security)
* [Server and Cloud](https://snapcraft.io/search?categories=server-and-cloud)

[Install](https://snapcraft.io/install/nftables-pk/elementary#install)

#### nftables is the new packet classification framework that replaces iptables

Provides the latest version of nft command-line utility with the intention
of replacing outdated and buggy packages provided by mainline Linux distributions.
For documentation on how to use nftables see <https://wiki.nftables.org/>

You may want to create a system-wide alias:

```
 snap alias nftables-pk.nft nft
```

Quick example (simple packet counter, not hooked to real traffic):

```
 nft add table inet main
 nft add chain inet main input
 nft add rule inet main input counter accept
 nft list ruleset
```

If you use snapd older than 2.41 you will need the following after installation:

```
 snap connect nftables-pk:network-control
```

Remember to update your nftables scripts to point to /snap/bin/nft and move
your scripts from /etc/nftables to /var/snap/nftables-pk/common.

Since this snap is fully confined, configuration files must be placed
in /var/snap/nftables-pk/common.

More documentation can be found at <https://git.sr.ht/~kravietz/snap-nftables>
Report issues <https://todo.sr.ht/~kravietz/snap-nftables>

### Package name

* nftables-pk

---

### License

* GPL-3.0+

---

### Last updated

* 14 October 2021 - latest/stable
* 14 October 2021 - latest/beta

This snap hasn't been updated in a while. It might be unmaintained and have stability or security issues.

---

### Websites

* [git.sr.ht](https://git.sr.ht/~kravietz/snap-nftables "https://git.sr.ht/~kravietz/snap-nftables")

---

### Contact

* [todo.sr.ht](https://todo.sr.ht/~kravietz/snap-nftables "https://todo.sr.ht/~kravietz/snap-nftables")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/install/nftables-pk/elementary#report-snap-modal)

---

## Enable snaps on elementary OS and install nftables-pk

Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.

Snaps are discoverable and installable from the [Snap Store](https://snapcraft.io/store), an app store with an audience of millions.

### Enable snapd

Snap can be installed on elementary OS from the command line. Open *Terminal* from the Applications launcher and type the following:

```
sudo apt update
sudo apt install snapd
```

Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.

### Install nftables-pk

To install nftables-pk, simply use the following command:

```
sudo snap install nftables-pk
```

### Other popular snaps…

[See more...](https://snapcraft.io/search?categories=featured)

[See more in Featured](https://snapcraft.io/search?categories=featured)

### More things to do…

#### [Get the snap store](https://snapcraft.io/snap-store)

Browse and find snaps from the convenience of your desktop using the snap store snap.

#### [Learn more about snaps](https://snapcraft.io/docs)

Interested to find out more about snaps? Want to publish your own application? Visit [snapcraft.io](https://snapcraft.io/) now.

[Back to top](https://snapcraft.io/install/nftables-pk/elementary)

© 2026 Canonical Ltd.
Ubuntu and Canonical are registered trademarks of Canonical Ltd.

Powered by [Charmed Kubernetes](https://www.ubuntu.com/kubernetes)

[Join the forum](https://forum.snapcraft.io/), contribute to or report problems with,
[snapd](https://bugs.launchpad.net/snapd),
[Snapcraft](https://bugs.launchpad.net/snapcraft),
or [this site](https://github.com/canonical/snapcraft.io/issues/new).

* [Share on Twitter](https://twitter.com/snapcraftio)
* [Share on Facebook](https://www.facebook.com/snapcraftio)
* [Share on YouTube](https://www.youtube.com/snapcraftio)

* [Terms of Service](https://ubuntu.com/legal/terms-and-policies/snap-store-terms)
* [Data privacy](https://www.ubuntu.com/legal/data-privacy)
* [Manage your tracker settings](https://snapcraft.io/install/nftables-pk/elementary)
* [Service status](https://status.snapcraft.io/)
* [Other functions](https://dashboard.snapcraft.io/)
* [Contact us](https://snapcraft.io/about/contact-us)
