public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Strange behaviour of iptables
@ 2025-01-01 17:33 Matthias Hanft
  2025-01-02  4:34 ` Matt Connell
  0 siblings, 1 reply; 9+ messages in thread
From: Matthias Hanft @ 2025-01-01 17:33 UTC (permalink / raw
  To: gentoo-user

Hi,

when I call

/usr/bin/iptables -L COUNT -n -v -x -w

from bash, everything works well - as it did for years.

When I call the same command from PHP:

exec("/usr/bin/iptables -L COUNT -n -v -x -w", $iptables);

I get (since this month) the message

iptables v1.8.11 (legacy): Illegal option `--numeric' with this command
Try `iptables -h' or 'iptables --help' for more information.

I think it has to do with "xtables-legacy-multi" (which is the
only entry of "eselect iptables list" and the softlink target
for all iptables* commands).

When I remove '-n' from the command line, the error message
changes to

iptables v1.8.11 (legacy): Illegal option `--exact' with this command
Try `iptables -h' or 'iptables --help' for more information.

So it seems that I can't use any parameters at all any more -
from PHP.

What's the trick to get this working again?

Thanks,

-Matt


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-01-03 10:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-01 17:33 [gentoo-user] Strange behaviour of iptables Matthias Hanft
2025-01-02  4:34 ` Matt Connell
2025-01-02  8:13   ` Matthias Hanft
2025-01-02  9:33     ` Alexis
2025-01-03 10:30       ` Matthias Hanft
2025-01-02 19:25     ` Matt Connell
2025-01-02 23:00       ` Ro Bra
2025-01-02 23:03       ` Ro Bra
2025-01-03  1:15         ` Matt Connell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox