Commit Graph

102 Commits

Author SHA1 Message Date
Matthias Fischer
e26a5c4885 Fix typo in 'html/cgi-bin/logs.cgi/log.dat'
Translation string uses capital letter: 'Captive' => 'Captive Portal',

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-06 07:02:54 +00:00
Stefan Schantl
f2f0d61fc1 logs.cgi/ids.dat: Rework linking to external rule documentation.
Check if the sid of a rule belongs to sourcefire and link to the
changed URL for gathering more details. If the sid of the rule belongs
to emergingthreads now link to the emergingthreads documentation.

Fixes #11806.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-08-14 11:48:03 +01:00
Matthias Fischer
1b18943b15 urlfilter.dat: Added Older/Newer links at top of page
Hi,

Triggered by:
https://forum.ipfire.org/viewtopic.php?f=4&t=19998#p112930

Added 'Older'/'Newer'-links for better page browsing.

Best,
Matthias

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-01-10 16:55:23 +00:00
Peter Müller
d894ef3615 fix GeoIP lookup in showrequestfromcountry.dat
This issue was caused by the rewrite of the perl GeoIP
library.

Fixes #11571.

Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Tested-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-01-07 19:17:11 +00:00
Peter Müller
5b4be0f18f show IDS rule names correctly in WebUI log
The WebUI IDS log did not display the rule name for alerts
where a signature with a five digit number was triggered
(some Emerging Threats signatures are using them).

Changing the regular expression so it will match on five
digit SIDs, too.

Fixes #11519.

Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-11-29 12:03:42 +00:00
Peter Müller
817af14fd2 allow changing remote syslog protocol to TCP
Add option to change remote syslog protocol to TCP, which
is more reliable than UDP, but might be unsupported  on
older syslog servers.

Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-11-28 17:46:01 +00: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
Alexander Marx
6d31cfdd58 Captive-Portal: add logging to syslog
Signed-off-by: Alexander Marx <alexander.marx@ipfire.org>
2017-09-22 18:54:44 +01:00
Stephan Feddersen
dec5269370 WIO: patch log.dat to show wio logs
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-08-15 11:45:51 +01:00
Matthias Fischer
d659de88cc Dropped 'dnsmasq' from System log
I think we don't need this anymore...

Best,
Matthias

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-06-14 15:52:33 +01:00
Matthias Fischer
415cbcecfa GUI: Some simple FW-Log cosmetics
I altered 'showrequestfromcountry.dat', 'showrequestfromip.dat' and 'showrequestfromport.dat'
in the same manner as the 'Loggraphs'-Pages in commit

Each 'Details'-page got a unique title.

Furthermore, I added a 'Back'-Button to go back to the previous page. For this, I used
'back.png' from 'wio' (thanks Stephan! ;-) ) since I found no other appropriate image.

'ipinfo.cgi' got a centered 'Back'-Button, too.

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-05-03 17:06:29 +01: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 Tremer
adb11e90df Always enable asynchronous logging
This patch always enables asynchronous logging which slows
down the system a lot on slow storage and some virtual environments.

It also removes the configuration options in the web
user interface, since this is not configurable any more.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-11-29 12:18:41 +00:00
Matthias Fischer
5e818d6afb log.dat: cosmetical upgrade
Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-10-25 12:15:07 +01:00
Michael Tremer
9625be6f24 webinterface: Replace dnsmasq with unbound
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-08-06 19:30:14 +01:00
Matthias Fischer
5cbfa0140c log.dat: Added entry for 'guardian'
Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2016-07-29 13:19:14 +02:00
Matthias Fischer
40ede5ecb0 log.dat: Fix identation for clamav
Fixes unneeded tabs in 'log.dat'.

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-06-01 22:48:28 +01:00
Matthias Fischer
9b39654d9e log.dat: Added 'squid' and 'snort' plus translations
Added 'squid' and 'snort' to section dropdown in LOGS / SYSTEM LOGS,
added translations.

Added translation string for 'web proxy' in '30-network.menu'.

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-06-01 22:16:12 +01:00
Matthias Fischer
9494c6112a log.dat: fix missing quotation marks for 'ddns'
Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-06-01 22:16:10 +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
1b5b6c91da Fixed detection of firewall chain when bridge is used for ipv6
Signed-off-by: Michael Eitelwein <michael@eitelwein.net>
2016-01-07 19:40:24 +01:00
Michael Eitelwein
a249e865bd Firewall chain was not extracted correctly when ipv6 uses bridge
Signed-off-by: Michael Eitelwein <michael@eitelwein.net>
2016-01-07 19:26:46 +01:00
Michael Eitelwein
f97c6774ef Fix regex to extract firewall chain for ipv6 in showrequestfrom*.dat
If bridged ipv6 is used, $iface is taken from PHYSIN
In the log line the order of fields is "... IN=XY OUT=XY PHYSIN=XY ..."

Signed-off-by: Michael Eitelwein <michael@eitelwein.net>
2016-01-07 15:24:13 +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
953ff6edb3 firewalllogcountry.dat: Do not show 'Details' button for unkonw location.
The CGI offers the posibility to get more details for a certain locations
by clicking on a button.

This feature cannot be used for the category "unknown". To prevent users
from beeing confused about non show-able details, I added some code to hide
this button for this category.

Fixes #10726.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-10-18 18:53:58 +01:00
Alexander Marx
1986cc88a1 dma: add loggingoption to weblog for mail
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-08-25 13:57:03 +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
Bernhard Bitsch
ea40188f66 BUG10502: Fix wrong interfaces in firewall.log
Fix from BeBiMa
2015-03-11 13:53:36 +01:00
Stefan Schantl
9cc46b56ad logs.cgi/ids.dat: Change url for snort sid details.
Fixes #10578.
2014-09-16 20:37:16 +02:00
Michael Tremer
fffc646e74 logs: Add dynamic DNS logging section. 2014-07-24 13:35:22 +02:00
Michael Tremer
4fca9c997d firewalllogcountry.dat: Fix chart for dial-in connections. 2014-07-10 12:45:11 +02:00
Michael Tremer
296a73a532 Merge remote-tracking branch 'alfh/feature_firewalllogcountry' into beyond-next
Conflicts:
	langs/de/cgi-bin/de.pl
2014-03-20 23:15:49 +01:00
Alf Høgemark
fff2be22a4 firewalllogcountry.dat: Fix filename for piechart image 2014-03-01 15:00:51 +01:00
Alf Høgemark
06f320318f firewalllogcountry.dat: Simplify code for table background color 2014-03-01 14:59:19 +01:00
Alf Høgemark
fde47f5aef firewalllogcountry.dat: Show green0,blue0, and orange0 as countries
It makes sense to see how many fire wall logs entries are dropped
from the interfaces green0, blue0, and orange0, so this is
displayed as a country. The showrequestfromcountry.dat also
supports filtering based on the interface.
2014-03-01 14:59:18 +01:00
Alf Høgemark
bde7a7d296 showrequestfromcountry.dat: Use language string, and fix links
Define language key for input field.
Fix links for older and newer links.
Indentation fixes.

The code is a copy from showrequestfromip.dat, ideally
we should have merged all three showrequestfrom*.dat files
into one file, but I do not do that now, because it would
really require a rewrite of most of the logic, and I understand
that one does not want to do such changes in 2.x.
2014-03-01 14:59:18 +01:00
Alf Høgemark
f424897557 firewalllogcountry.dat: Use language strings and add to menu
Add some language strings for the new firewalllogport.dat, and
include html fixes done in firewalllogip.dat, which this file
is based on.

Also try to add the menu item to the sub menu, but that is
currently not working.
2014-03-01 14:59:18 +01:00
Alf Høgemark
e4aac47370 logs.cgi: Add files for showing firewall blocks by country
Add similair functionality as firewalllogip.dat and
firewalllogport.dat, by listing the number of blocks
per country, and provide a details link to show only
the blocked ip addresses from the country.

This is a preliminary prototype.
2014-03-01 14:59:17 +01: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
Michael Tremer
6d3c8250fe Merge remote-tracking branch 'alfh/feature_langfixes' into next 2014-02-17 16:28:23 +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
57426d2d21 firewalllog.dat: Use language string keys already defined 2014-02-15 15:28:14 +01:00
Alf Høgemark
f702a98d69 firewalllogport.dat: Use language string keys already defined 2014-02-15 15:27:22 +01:00
Alf Høgemark
c42f809c90 firewalllogip.dat: Use language string keys already defined 2014-02-15 15:25:59 +01:00
Alf Høgemark
44bd254c67 firewalllog.dat: Use language string for First and Last text 2014-02-15 15:16:06 +01:00
Alf Høgemark
a1219d9600 firewalllog.dat: Use language string for First and Last links 2014-02-12 21:31:08 +01:00
Alf Høgemark
f69446d2fa firewalllog.dat: Add First and Last links, for fast navigation in log lines
Add two links for navigating in log pages, one for going to the
first page and one for goint to the last page.

Introduce variable which points to the first log line to
display on the last possible page.

The commit contains hardcoded text for Last and First, and I
am also uncertain how spaces between links should be handled.
So this should be improved based on feedback.
2014-02-12 21:30:58 +01:00
Alexander Marx
73ede29f00 Layout changes firewalllog.dat 2014-01-09 15:09:50 +01:00