Commit Graph

58 Commits

Author SHA1 Message Date
Michael Tremer
b66718b334 connections.cgi: Only evaluate value networks
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-07 15:14:14 +02:00
Michael Tremer
4d0a12624d connections.cgi: Remove country headline
This takes way more space than the actual flag and therefore makes the
table wider which we don't want.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-07 14:28:52 +02:00
Michael Tremer
0221bacb74 connections.cgi: Refactor reading networks
This is still a total nightmare because we are yet again writing
functions that read the same configuration files all over again.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-07 14:28:42 +02:00
Michael Tremer
81784657c9 connections.cgi: Remove the extra box
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-07 14:28:28 +02:00
Michael Tremer
aaa9c561c1 connections.cgi: Use &General::format_time()
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-07 14:28:19 +02:00
Michael Tremer
dd66b39d6b connections.cgi: Make it clearer which direction traffic is flowing
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-07 14:28:03 +02:00
Michael Tremer
69dcb9bd65 connections.cgi: Use &General::formatBytes() for format usage
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-07 14:27:12 +02:00
Michael Tremer
0e8bb539ce connections.cgi: Use the .tbl class for the main table
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-07 14:27:02 +02:00
Michael Tremer
60d9097511 connections.cgi: Parse conntrack table without loading it all first
We used to load the entire table into memory which is very unnecessary
because we can parse it one line at a time.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-07 14:26:53 +02:00
Michael Tremer
7f2fbf2767 connections.cgi: Remove sorting
This has first of all very little benefit and the code is too messy. Why
would anyone want to sort by port? I think we might want a search here.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-07 14:26:34 +02:00
Michael Tremer
8e59261446 connections.cgi: Define colours for WG address space
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-08-07 14:26:28 +02:00
Peter Müller
e7e1a3514e connections.cgi: Update file header
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2023-11-24 13:13:16 +00:00
Adolf Belka
58543d54c6 connections.cgi: Fix Expires time Heading in Connections cgi page
- The Expires time heading for the Connections WUI page has seconds listed. However the
   code is converting the seconds to hours:minutes:seconds.
- This patch is changing the heading to H:M:S in English and the equivalent in the other
   languages. I have basewd this on the initial letter for Hours, Minutes & Seconds in
   each of the languages.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2023-11-24 13:12:19 +00:00
Peter Müller
e90c62b2e3 connections.cgi: Update links to SANS ISC
Fixes: #12783

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-03-20 15:19:49 +00:00
Peter Müller
66c3619872 Early spring clean: Remove trailing whitespaces, and correct licence headers
Bumping across one of our scripts with very long trailing whitespaces, I
thought it might be a good idea to clean these up. Doing so, some
missing or inconsistent licence headers were fixed.

There is no need in shipping all these files en bloc, as their
functionality won't change.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-18 23:54:57 +00:00
Arne Fitzenreiter
d4df452e1b connections.cgi: fix connection list if green interface is not present
if green interface not exist the cgi adds empty addresses to the arrays and
display nothing.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-11-24 07:54:47 +00:00
Stefan Schantl
d39c7076ac connections.cgi: Use new system methods
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2021-06-10 14:30:54 +01:00
Stefan Schantl
07e42be978 Adjust CGI files to work with latest location-function.pl changes.
Fixes #12515.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-11-09 14:07:21 +00:00
Stefan Schantl
3d3fbe7dc4 connections.cgi: Use location-functions.pl
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2020-06-12 17:51:00 +02:00
Stefan Schantl
87bc6401bc connections.cgi: Use new location lookup method.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2019-12-06 14:22:01 +01:00
Arne Fitzenreiter
5653e55107 perl-scripts: suppress smartmatch experimental warning
smartmatch was introduced with perl 5.10 and was marked
as experimental in 5.14

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-08-16 12:21:26 +02:00
Peter Müller
ea4620fc4a display GeoIP information on active network connections
Display GeoIP information on active network connections in WebUI.
Use newly implemented function in /var/ipfire/geoip-functions.pl .

Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-12-02 12:24:29 +00:00
Michael Tremer
ffeaaef618 connections.cgi: Fix page crash with IPsec connections with one subnet only
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-12-12 09:50:19 +00:00
Michael Tremer
c6fba315ec connections.cgi: Support multiple subnets for IPsec
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-09-28 14:24:44 +01:00
Michael Tremer
ee299e2ecf connections.cgi: Fix broken NAT rules when there is an empty destination IP address
Bug introduced with e60cd3a404

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Reported-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
2015-06-16 11:33:43 +02:00
Dominik Hassler
e60cd3a404 use colour of destination network for DNAT 2015-03-13 14:33:47 +01:00
Dominik Hassler
c7220d6e5a - connections.cgi: static ip address pools colour 2014-07-09 23:55:31 +02:00
Alf Høgemark
429c1a3fc9 connections.cgi: Make the html pass html validation 2014-02-22 17:36:45 +01:00
Kay-Michael Köhler
9b37e91ef6 Make connection tracking list sortable. 2013-04-26 12:23:46 +02:00
Michael Tremer
c9e01c8cb8 connections.cgi: Show return paths (NAT endpoints). 2012-08-06 20:20:40 +02:00
Michael Tremer
5ac2ed4778 connections.cgi: Fix colour for orange firewall IP address. 2012-08-05 14:13:09 +02:00
Michael Tremer
c8a8778f89 connections.cgi: Highlight multicast (former class D) connections. 2012-07-22 17:36:13 +02:00
Michael Tremer
03435d851b connections.cgi: Fix parsing of IPsec config file. 2012-07-22 17:35:41 +02:00
Michael Tremer
7d55ca0da4 connections.cgi: Show name for "unknown" protocols. 2012-07-19 13:14:52 +02:00
Michael Tremer
d9ac41d556 connections.cgi: Correctly colour OpenVPN n2n connections. 2012-07-19 12:42:35 +02:00
Michael Tremer
75bc929eb9 Update connections.cgi: Show byte counters.
The connections.cgi file has been rewritten to read
the needed information directly from the kernel.

Byte counters have been added which show how much data
has been transmitted over one connection in each
direction.
2012-07-18 12:21:23 +02:00
Arne Fitzenreiter
73c7eff80e Remove some httpd errorlog entries. 2011-01-19 17:47:56 +01:00
Arne Fitzenreiter
f370c68ce3 Change source of ipsec setting of connections.cgi.
fixes bug #0000637
2010-06-13 15:31:14 +02:00
Arne Fitzenreiter
5ba51b8204 Fix connection.cgi display for strongswan. 2010-03-27 22:17:04 +01:00
Arne Fitzenreiter
f65b2fb8b6 iptstate wrapper for connections.cgi 2008-05-26 17:35:47 +02:00
ms
2c42fe6ada A small number of buildfixes by Maniac.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@999 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-10-26 14:02:15 +00:00
ms
70df830214 Ein Paar Dateien fuer die GPLv3 angepasst.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@853 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-29 13:25:32 +00:00
maniacikarus
cb5e9c6c64 Debuginformationen aus den CGIs entfernt
Hoffentlich die letzten Config Types bereinigt
Samba und SSHd init Skripte angepasst
Pakfire CGI optisch angepasst


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@779 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-17 16:00:01 +00:00
maniacikarus
7dbf47dcc7 ipsecctrl gefixt und connections.cgi gefixt
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@645 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-06-22 13:24:43 +00:00
maniacikarus
18322edf27 Ajax Speedmeter ist ueber Guioptions deaktivierbar -> friss gut CPU
Connections CGI sollte die IPSec Verbindungen einfaerben
Hardwaregraphen sollten wieder funktionieren
QOS gefixt,viele kleine Fehler
Squid Initskript setzt die Squid und Squidguard logs auch owner squid


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@633 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-06-16 14:30:20 +00:00
maniacikarus
f2fdd0c1e9 Quasi fast alle cgis von den fixen header farben befreit
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@560 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-05-17 16:54:15 +00:00
ms
1465b12776 Connections.cgi neu geschrieben.
URL-Filter aktualisiert.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@495 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-04-12 16:28:06 +00:00
ms
4809e64e27 Neue Hardwareerkennung im Installer...
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@448 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-03-14 21:57:20 +00:00
ms
069680acc1 Netzwerkscript beinahe vollendet.
Setup bearbeitet. (Geht schon ganz gut.)
Sonstiges wie immer...


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@366 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-12-21 18:38:37 +00:00
delaco
f9aaffa60a Geaendert:
* connections.cgi gefixt.
  

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@236 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-08-02 12:24:44 +00:00