Michael Tremer [Sat, 1 Mar 2014 18:54:14 +0000 (19:54 +0100)]
firewall: rules.pl: Cleanup rule generation.
Various perl coding errors that have been suppressed by "no warnings uninitialized"
have been fixed and lots of helper variables have been introduced to make
it much more clearer what the code is actually doing.
Michael Tremer [Sat, 1 Mar 2014 14:02:42 +0000 (15:02 +0100)]
firewall: Sort order in which chains are initialized.
This has been some real trouble because multiple rules could
not be properly inserted into the rule chains in the kernel
because the chains did not exist, yet.
Alf Høgemark [Sat, 22 Feb 2014 07:03:59 +0000 (08:03 +0100)]
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.
Alf Høgemark [Mon, 17 Feb 2014 19:05:00 +0000 (20:05 +0100)]
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.
Alf Høgemark [Wed, 12 Feb 2014 17:09:53 +0000 (18:09 +0100)]
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.
Alf Høgemark [Sat, 1 Mar 2014 13:51:17 +0000 (14:51 +0100)]
vnstat: Update to 1.11
Update vnstat to version 1.11, which also contains
the vnstati binary, for making graphs.
Remove the separate vnstati package.
This commit does not contain anything for doing
backups before upgrading, since I do not know
how that works.
The source for vnstat-1.11 has been downloaded from :
http://humdi.net/vnstat/vnstat-1.11.tar.gz
The changelog for vnstat-11 is here :
http://humdi.net/vnstat/CHANGES
Alf Høgemark [Sat, 1 Mar 2014 13:32:52 +0000 (14:32 +0100)]
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.
Michael Tremer [Thu, 27 Feb 2014 12:32:13 +0000 (13:32 +0100)]
openvpn: Provide a basic set of configuration settings.
These are the defaults as in the CGI script, but when you don't
set up the roadwarrior server, the configuration file remains
empty and the openvpnctrl binary will end itself because it cannot
read a proper configuration.
Erik Kapfer [Thu, 27 Feb 2014 09:01:57 +0000 (10:01 +0100)]
OpenVPN: Added auth and cipher menu, changed design, fixed bugs.
Added --auth directive with a flip menu for N2N and RW.
Added cipher menu for N2N.
Added new cipher and digest algorithm.
Adapted OpenVPN WUI design to IPSec design.
Changed key lenght for certificates with factor 2.
Added DH menu to WUI, with DH upload possibility and separated DH generation possibility.
Several Bugfixes, reference can be found under Bug #10463.
Also Fixes for #10317 and #10149.
Alf Høgemark [Sat, 22 Feb 2014 17:05:26 +0000 (18:05 +0100)]
qos and process graphs: avoid random colors
For the graphs for qos classes, and for process
count and memory usage, the colors change on
each page reload, since the colors are currently
totally random.
This change uses defined color indexes, 15 different
ones, that should be enough for qos at least, and is
enough for processes on my setup. This makes
the colors consistent between page loads, so it makes
it easier to monitor changes.
Perhaps one should define 30 different colors meant
to be used for graphing, then one could avoid random
colors also for the sensor graphs, and make it less
likely to get color collision for the process graphs
as well. Defining 30 such colors is not part of this
change.
Stefan Schantl [Sun, 23 Feb 2014 21:05:57 +0000 (22:05 +0100)]
Add missing default values for firewall options of the new firewall.
The new firewall uses some new options which can be configured on the optionsfw page in the WUI.
In the past these settings where missing on updated systems.
Alf Høgemark [Sat, 22 Feb 2014 14:23:39 +0000 (15:23 +0100)]
index.cgi: Make html valid, and improve dialup and vpn display
Make the html validate. One part of the changes is to
move style from using deprecated attributes to using
style attribute on tag.
The other part is to make sure that tables, rows and cells
are properly closed and nested.
Use a table for showing output from the dialctrl script.
Alf Høgemark [Sat, 22 Feb 2014 11:14:41 +0000 (12:14 +0100)]
ipfire theme: Fix align on div, and fix javascript tag
Remove align attribute on div for openbox, rather use
style attribute with text-align, since align attribute
causes html validation warnings, since it is deprecated.
Remove deprecated and useless attribute on javascript tag.