On Friday 14 February 2025 at 13:02:39, fraser via Dng wrote:
> Hello list,
>
> Can anyone tell me how I can 'restore' (as in iptables-restore <
> /etc/iptables/rules.v4) an iptables ruleset without iptables-restore?
> The package seems to be missing from the repos.
>
> ~$apt-cache policy iptables*
> N: Unable to locate package iptables.sh
> N: Couldn't find any package by glob 'iptables.sh'
> N: Couldn't find any package by regex 'iptables.sh'
In my experience this is not how "apt-cache policy" works.
You need to give it the precise name of a package you want information about.
If you don't know the name of a package you can use "aptitude search" to find
it.
In your case I believe you merely need the "iptables" package:
https://packages.debian.org/bookworm/amd64/iptables/filelist
It looks like the command has been renamed to
/usr/sbin/iptables-legacy-restore
Antony.
--
"The future is already here. It's just not evenly distributed yet."
- William Gibson
Please reply to the list;
please *don't* CC me.