Auteur: Olaf Meeuwissen Datum: Aan: lfs.mailing CC: dng Oude Onderwerpen: [DNG] iptables Onderwerp: [DNG] Quoting search patterns (was Re: iptables)
Hi,
fraser via Dng <dng@???> writes:
> Hello list,
>
> Can anyone tell me how I can 'restore' (as in iptables-restore <
> /etc/iptables/rules.v4) an iptables ruleset without iptables-restore?
Others already answered that question but the following caught my
attention
> 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'
>
> [...]
It looks like you ran that apt-cache invocation from a directory with an
iptables.sh file. Your shell interpreter expanded the "iptables*" to
the file name and passed that to apt-cache.
Best to quote your search patterns on the command-line.
--
Olaf Meeuwissen