Commit Graph

83 Commits

Author SHA1 Message Date
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
Alexander Marx
c8ee899dbc Layout changes firewalllogport.dat 2014-01-09 15:08:41 +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
Michael Tremer
5ba9e6606e proxylog.dat: Escape usernames.
Bug #10406.
2013-08-20 11:06:36 +02:00
Michael Tremer
3ef99ad95a Add links to sarg reports on the proxy reports page. 2012-11-26 12:18:54 +01:00
Michael Tremer
d46bec5299 calamaris: Fix viewing reports.
Fixes that only the last created report could be viewed (#10259).
2012-11-26 10:55:32 +01:00
Alfred Haas
0f0db884a9 log.dat: add n2n to openvpn log. 2011-09-13 14:06:58 +02:00
Arne Fitzenreiter
0e14ef8a3b logs.cgi: fix charon string for ipsec log. 2011-07-02 20:22:25 +02:00
Arne Fitzenreiter
32c21db1c4 logs.cgi: add "charon" to ipsec section. 2011-05-21 20:57:57 +02:00
Christian Schmidt
24614d7dfb Fixed a typo in firewalllog.dat. 2011-01-26 08:06:26 +01:00
Christian Schmidt
e7d2f07094 There are more than 20 and 27 parsings for local interface in the firwall log. 2011-01-23 09:59:37 +01:00
Christian Schmidt
5b7f487baa Fixed firewall log display 20 for local interface. 2011-01-20 21:09:14 +01:00
Christian Schmidt
0d08de33a6 Some Fixes for the CGIs not spamming apache logfile. 2010-12-12 20:40:56 +01:00
Christian Schmidt
27b6a4693f Fixed the log settings and added translation. 2010-03-16 21:23:09 +01:00
Christian Schmidt
6945083ea5 Added ability to change syslog to async logging. 2010-03-16 21:09:44 +01:00
Stefan Schantl
fed6d789e8 Webif: Fix link to external snort SID page. 2010-01-20 19:59:30 +01:00
Maniacikarus
0eafc0ef13 Well git doesn t lile commiting and furhter editing 2008-07-29 22:54:12 +02:00
Maniacikarus
af714e3cc0 Added syslog filter for hostap messages 2008-07-29 22:49:16 +02:00
Christian Schmidt
c506cad0de Changed pakfire logging facility to syslog and added to core12 2008-04-18 15:07:45 +02:00