[gentoo-user] Strange behaviour of iptables

2025-01-01 Thread Matthias Hanft
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 `--n

Re: [gentoo-user] Strange behaviour of iptables

2025-01-01 Thread Matt Connell
On Wed, 2025-01-01 at 18:33 +0100, Matthias Hanft wrote: > > 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? Hmm. I can't replicate this failure. Using both `php -a` and foo.php, I get expected results. (I'm using the IN