From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0586F15812D for ; Wed, 01 Jan 2025 17:35:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 705CBE077D; Wed, 01 Jan 2025 17:35:17 +0000 (UTC) Received: from n.hanft.de (n.hanft.de [IPv6:2001:780:125:1::e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 30F97E0536 for ; Wed, 01 Jan 2025 17:35:15 +0000 (UTC) Received: from home01.hanft.de (home01.hanft.de [IPv6:2003:a:1137:e000:a:f:5:15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by n.hanft.de (Postfix) with ESMTPS id 46D19966BE4; Wed, 01 Jan 2025 18:35:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hanft.de; s=231024; t=1735752913; bh=4JNPv5VRoMlNt0MB3wPRz1YhSxnpjnPg6KicPHN8MLQ=; h=To:From:Subject:Date:From; b=4LXwTfijE0Wdg7PXrmTN5pysRlQ1gPeYu1n0caK7Cn5KuJ6UYDGtZ026Qv27ZHZWV la7YDPirRSRDyOfbwIIDP5RnMAre5LqERiHftXuprxtg0WcxdKDpsBT+u32gOgad6g mzK+uaMGOrGTk3dnXFEc+SXPehWO8oOPQF2ziWbWkEeqe6mTnLCjzlsGgnh2qWRHl9 Fq3LjHFLM+o8irURU1ftC1aW2e19CoS+1XSLK6d0/Xn3OhdZrElnwa1y7fddr6+VD9 gPGro8kG9qNP9i6uZ/0u6R/5QZayZu3CaNdU2jb3ezQfKtKNcBCdYHWAA41Nujgl+d TpoIVzSqcDH6g== To: gentoo-user@lists.gentoo.org From: Matthias Hanft Subject: [gentoo-user] Strange behaviour of iptables Message-ID: Date: Wed, 1 Jan 2025 18:33:51 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.19 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 593273af-4dbb-44ac-900b-96685d7bd978 X-Archives-Hash: ae4bc66435ec52c73707a12234f60dfb 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