28 Commits

Author SHA1 Message Date
Vincent Li
575b5b2535 firewalllogip.dat: Fixes bug 13881
commit 82ad6e9bc3287577b0b72af71ea7651ba416b97b
Author: Michael Tremer <michael.tremer@ipfire.org>
Date:   Thu Sep 25 17:10:56 2025 +0200

    firewalllogip.dat: Escape pienumber in the right place

    Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>

commit 3e198e43a67421fa21b94b0c6dbb5ceb9314f293
Author: Adolf Belka <adolf.belka@ipfire.org>
Date:   Thu Sep 25 13:12:41 2025 +0200

    firewalllogip.dat: Fixes bug 13881

    Fixes: bug 13881 - firewalllogip.dat pienumber Stored Cross-Site Scripting
    Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
    Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org>
    Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2025-10-03 22:34:19 +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
Jonatan Schlag
8186b37230 Hardcode theme to ipfire
This disables the theme support and makes it impossible to use any other
themes than the ipfire default theme.

The only intention of this patch is to hardcode the theme to ipfire.
To change any cgi we have is an ugly way, but the only way to do this
fast. The colour handling needs certainly to be improved as well, but
this will and should be done in other patches.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-04-08 10:11:34 +00: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
43970d7cfc logs.cgi/firewalllogip.dat: Use location-functions.pl
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2020-06-12 18:42:23 +02:00
Stefan Schantl
50494dfd6e logs.cgi/*: Use new location lookup method.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2019-12-06 14:30:39 +01:00
Michael Tremer
00793c27c9 GeoIP: Add lookup function for convenience
Instead of opening the database again for each lookup,
we will read it into memory on first use and every lookup
after that will be coming from cache.

Reviewed-by: Peter Müller <peter.mueller@link38.eu>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-11-13 22:37:19 +00:00
Matthias Fischer
1bea8be2ce GUI: Some simple FW-Log cosmetics
Fixed the 'details'-Button in 'firewalllogcountry.dat' by adding missing
translation string.

Each 'Loggraphs'-Page got a unique title and a new heading for the corresponding
diagram.

Just cosmetics...

Best,
Matthias

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-04-24 10:53:25 +01:00
Michael Eitelwein
43638be58b No code changes, fixed formatting by replacing spaces with tabs 2016-01-09 20:09:58 +01:00
Michael Eitelwein
9877d28d9e Enable correct display of ipv6 entries in Firewall log pages of web UI.
3 main changes:
 - Fill $iface and $out from PHYSIN and PHYSOUT when looking at bridged packets, othwerwise fill from IN and OUT
 - Recognize ipv4 and ipv6 address style for $srcaddr and $dstaddr
 - Match color coding of tables to pie charts (see seperate patch sent earlier)

I am using the bridged ipv6 setup as proposed in the wiki. I do not think this breaks anything when not using ipv6. So it would be nice to include this even if ipv6 is not officially supported yet. It is quite useful when using the ipv6 setup.

Signed-off-by: Michael Eitelwein <michael@eitelwein.net>
---
2016-01-07 14:00:01 +01:00
Stefan Schantl
3ea01fe042 Multiple CGI's: Use &GeoIP::get_flag_icon for getting country flags. 2015-05-02 13:45:50 +02:00
Alf Høgemark
326a764de6 firewalllog*.cgi and country.cgi: Use language strings, and align graphs
Put the piechart for firewalllog* in the center of the page horisontally,
this looks visually better. Add language string for count and details
submit button.

Add language strings for country.cgi.
Make html validate for country.cgi.
2014-03-01 14:32:52 +01:00
Alf Høgemark
c101827318 firewalllogs*.dat: Reduce amount of code to set row bgcolor
Replace 10 if statements with duplicated code for print
and setting background color by using a variable and
one if statement.
2014-02-25 22:03:40 +01:00
Michael Tremer
5ee7500e59 Merge remote-tracking branch 'alfh/feature_htmlcleanup' into next
Conflicts:
	html/cgi-bin/logs.cgi/firewalllogip.dat
	html/cgi-bin/logs.cgi/firewalllogport.dat
	html/cgi-bin/media.cgi
2014-02-17 16:33:38 +01:00
Alf Høgemark
b740cdd7bf logs.cgi: htmlcleanup, change html tags from uppercase to lowercase 2014-02-15 16:08:49 +01:00
Alf Høgemark
c42f809c90 firewalllogip.dat: Use language string keys already defined 2014-02-15 15:25:59 +01:00
Alexander Marx
5b579ad60c Layout changes firewalllogip.dat 2014-01-09 15:08:00 +01:00
Alexander Marx
fda1f52ff3 fifteen-theme: made all log tables themeable
With this commit it is possible to make css designs to all tables in the
logs.
2014-01-07 09:23:37 +01:00
maniacikarus
8c384f979d CGIs angepasst damit das httpd log sauberer bleibt
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@938 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-10-03 11:10:43 +00:00
maniacikarus
cf29614f54 Korrekturen im IDS System
Division by 0 in den grafischen Firewallogs unterbunden
Backup Loesung fuer IPFire angefangen
fehlende Perl Module ins MPFire Paket eingebunden
Writeipac auf neue Config Types angepasst


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@666 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-07-09 16:51:43 +00:00
maniacikarus
4b4aec3a3d neues Theme hinzugefuegt, geloeschtes icons wieder hinzugefuegt
makegraphs themeable gemacht, maktegraph swap diagramm gefixt


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@559 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-05-17 10:13:56 +00:00
maniacikarus
c94c9a327c Die Firewallgraphen zeigen die Farben jetzt richtig
und sind endlich auch vollstaendig themeabke


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@550 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-05-11 18:48:57 +00:00
ms
9fb25b1c17 "Update Booster" fertiggestellt und getestet.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@494 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-04-12 14:06:59 +00:00
maniacikarus
9c1009572a kleine fixes in den firewalllogs
neues feature in der dhcp.cgi


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@469 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-03-28 17:33:12 +00:00
maniacikarus
6bc302d118 kleiner Zwischenfix
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@464 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-03-26 19:16:19 +00:00
maniacikarus
32f77a0b3b colours.txt ins Theme Verzeichnis geschoben,
daher auch Anpassungen an den Firewall*.cgi
kleinere Fixes an der samba.cgi
default Config Dateien für Samba ins SVN gestellt


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@463 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-03-26 18:38:15 +00:00
ms
786f2c8a29 Firewallhitgraphs gefixt.
Colours.txt fehlt noch fuer unseren Style.
...und wieder einige Sprachfixes.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@457 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-03-25 04:05:41 +00:00
ms
76dd79d156 Firewall-Log-Analyzer by Christian Schmidt
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@447 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-03-11 20:34:32 +00:00