From patchwork Sat Mar 7 18:46:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Peter_M=C3=BCller?= X-Patchwork-Id: 2820 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 48ZYP469sjz3yBZ for ; Sat, 7 Mar 2020 18:46:48 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 48ZYP336Dszg2; Sat, 7 Mar 2020 18:46:47 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 48ZYP31BG5z2yX5; Sat, 7 Mar 2020 18:46:47 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 48ZYP1063Zz2yCb for ; Sat, 7 Mar 2020 18:46:45 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 48ZYNz4WJszg2 for ; Sat, 7 Mar 2020 18:46:43 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909ed25519; t=1583606804; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aQywWCeIJb3DvF2//6xlnAPsERCEWiELxrwt7b/X/xQ=; b=gHm9YwpiL58vcgRE9FY2112Hcbm4nUf/XD11dKNKABHbxVAYRgyDuvNryosHr8mqkKfJK+ 2wttdCubzpc2+QDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909rsa; t=1583606804; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aQywWCeIJb3DvF2//6xlnAPsERCEWiELxrwt7b/X/xQ=; b=mPJUgWfD24fuGfv38qG1OCOnyXfmhU8PEfzBAx911SOB8RnpbaH+YIwmjzpwFqWYLdh55b QzXDt0jsaZxvAyDxPUtiigB3qdibJWZGwBsB76VuegKn+UMPT1nBkJkLqsBSUNA0HTuUiR Kr4qfgE/F9oJQH4EDbpHJJn1oGu8n/KZ4Fv4BrlVwwqD2pTHfNa+wOilinbCQi2GMZZ4Gh sdiWUgOGKhPevXHXReOj25LnM0PF2A+nkS7KY10z06gitPkQZjAEZmF6O5sS+cb9HSur3a idxYL5UHeYdudEsIdyjptGUlbYO0WEgz9Mq2xV2KjPWGmoUPV+JappedJrz6Ew== To: "IPFire: Development-List" From: =?utf-8?q?Peter_M=C3=BCller?= Subject: [PATCH] netother.cgi: show content of routing table 220 Message-ID: <45750d21-4ee6-4269-c2b5-56ef4e75c259@ipfire.org> Date: Sat, 07 Mar 2020 18:46:00 +0000 MIME-Version: 1.0 Content-Language: en-US Authentication-Results: mail01.ipfire.org; auth=pass smtp.mailfrom=peter.mueller@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Since IPsec routing information do not show up in the normal routing table, also displaying the contents of table 220 on netother.cgi might be useful for debugging purposes. Signed-off-by: Peter Müller --- html/cgi-bin/netother.cgi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/html/cgi-bin/netother.cgi b/html/cgi-bin/netother.cgi index dde1b603a..ac02b8148 100644 --- a/html/cgi-bin/netother.cgi +++ b/html/cgi-bin/netother.cgi @@ -79,6 +79,12 @@ if ( $querry[0] =~ "fwhits"){ print "
$output
\n"; &Header::closebox(); + &Header::openbox('100%', 'left', "$Lang::tr{'routing table entries'} 220"); + $output = `/sbin/ip route list table 220`; + $output = &Header::cleanhtml($output,"y"); + print "
$output
\n"; + &Header::closebox() + &Header::openbox('100%', 'left', $Lang::tr{'arp table entries'}); $output = `/sbin/ip neigh show`; $output = &Header::cleanhtml($output,"y");