From: Florian Westphal <fw@strlen.de>
To: Tom Isaacson <thomas.isaacson@motorolasolutions.com>
Cc: netfilter@vger.kernel.org
Subject: Re: Unknown option "--to-ports"
Date: Thu, 25 Jul 2024 04:19:04 +0200 [thread overview]
Message-ID: <20240725021904.GA13051@breakpoint.cc> (raw)
In-Reply-To: <CAMp_5Ha4HGLqkWAA=syC3+U0M3xxq3OuN9b_WvYNc9dV=CvzDg@mail.gmail.com>
Tom Isaacson <thomas.isaacson@motorolasolutions.com> wrote:
> > Sharing Internet using method: nat
> > iptables v1.8.7 (legacy): unknown option "--to-ports"
> > Try `iptables -h' or 'iptables --help' for more information.
> > Doing cleanup.. done
Broken iptables installation.
> > The offending iptables commands are:
> > iptables -w -t nat -D PREROUTING -s ${GATEWAY%.*}.0/24 -d
> > ${GATEWAY} \
> > -p tcp -m tcp --dport 53 -j REDIRECT --to-ports $DNS_PORT
> > iptables -w -t nat -D PREROUTING -s ${GATEWAY%.*}.0/24 -d
> > ${GATEWAY} \
> > -p udp -m udp --dport 53 -j REDIRECT --to-ports $DNS_PORT
> >
> > I searched around for a solution and found
> > https://community.unix.com/t/iptables-v1-8-7-nf-tables-unknown-option-to-ports/385377/3
This has all diagnostic commands that you'll need to figure out whats
happening.
> > but this command also fails:
> > # iptables -A OUTPUT -m owner --uid 0
> > iptables v1.8.7 (legacy): Couldn't load match `owner':No such file
> > or directory
> >
> > iptables links to xtables-legacy-multi but it seems to have all of the
> > necessary files present.
iptables says it can't load match 'owner' (libxt_owner.so).
So its either missing or iptables is searching the wrong location.
strace should tell which directory iptables is searching to fetch
extensions.
Some embedded distros split packages into subpackages to save space,
so it might be missing package too.
next prev parent reply other threads:[~2024-07-25 2:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-25 0:10 Tom Isaacson
2024-07-25 0:34 ` Unknown option "--to-ports" Tom Isaacson
2024-07-25 2:19 ` Florian Westphal [this message]
2024-07-25 2:29 ` Tom Isaacson
2024-07-28 16:58 ` Reindl Harald
2024-07-29 5:44 ` Tom Isaacson
2024-07-29 7:23 ` Reindl Harald
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240725021904.GA13051@breakpoint.cc \
--to=fw@strlen.de \
--cc=netfilter@vger.kernel.org \
--cc=thomas.isaacson@motorolasolutions.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.