Iptables Replaced With Nftables

Linode Staff

I recently upgraded my server to Debian 10 and I see that iptables is replaced with nftables. How can I retain the iptables rules I previously setup?

1 Reply

I tried looking this up and it looks like you can switch between iptables-nft and iptables-legacy using "update-alternatives". There's also an option where you can disable nftables for your server. I'm basing this off the following two links that I came across:

https://wiki.debian.org/iptables
https://wiki.debian.org/nftables

You also should be able to use "iptables-persistent" to save the iptables rules that you've previously setup. We also have a guide that covers this option:

Using Iptables-persistent

I actually wasn't aware of this change myself, so this is something that I'll also need to do for my personal server.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct