+#!/usr/bin/perl
# Generate Graphs exported from Makegraphs to minimize system load an only generate the Graphs when displayed
# This is part of the IPFire Firewall
+
package Graphs;
use strict;
$ERROR = RRDs::error;
print("Error in RRD::graph for temp: $ERROR\n")if $ERROR;
}
+
+sub overviewgraph {
+
+ my $period = $_[0];
+ my $periodstring;
+ my $description;
+ my %qossettings = ();
+ &General::readhash("${General::swroot}/qos/settings", \%qossettings);
+ my $classentry = "";
+ my @classes = ();
+ my @classline = ();
+ my $classfile = "/var/ipfire/qos/classes";
+
+ $qossettings{'DEV'} = $_[1];
+ if ( $qossettings{'DEV'} eq $qossettings{'RED_DEV'} ) {
+ $qossettings{'CLASSPRFX'} = '1';
+ } else {
+ $qossettings{'CLASSPRFX'} = '2';
+ }
+
+ if ( $period ne '3240' ){ $periodstring = "-1$period";}else{ $periodstring = "-".$period;}
+ if ( $period ne '3240' ){ $description = "-t $Lang::tr{'Utilization on'} ($qossettings{'DEV'}) ($Lang::tr{'graph per'} $Lang::tr{$period})";}else{ $description = "-t $Lang::tr{'Utilization on'} ($qossettings{'DEV'})";}
+
+ my $ERROR="";
+ my $count="1";
+ my $color="#000000";
+ my @command=("/srv/web/ipfire/html/graphs/qos-graph-$qossettings{'DEV'}-$period.png",
+ "--start", $periodstring, "-aPNG", "-i", "-z",
+ "--alt-y-grid", "-w 600", "-h 150", "-r",
+ "--color", "SHADEA".$color{"color19"},
+ "--color", "SHADEB".$color{"color19"},
+ "--color", "BACK".$color{"color21"},
+ $description
+ );
+ open( FILE, "< $classfile" ) or die "Unable to read $classfile";
+ @classes = <FILE>;
+ close FILE;
+ foreach $classentry (sort @classes)
+ {
+ @classline = split( /\;/, $classentry );
+ if ( $classline[0] eq $qossettings{'DEV'} )
+ {
+ $color=random_hex_color(6);
+ push(@command, "DEF:$classline[1]=/var/log/rrd/class_$qossettings{'CLASSPRFX'}-$classline[1]_$qossettings{'DEV'}.rrd:bits:AVERAGE");
+
+ if ($count eq "1") {
+ push(@command, "AREA:$classline[1]$color:Klasse $classline[1] - $classline[8]\\j");
+ } else {
+ push(@command, "STACK:$classline[1]$color:Klasse $classline[1] - $classline[8]\\j");
+ }
+ $count++;
+ }
+ }
+ RRDs::graph (@command);
+ $ERROR = RRDs::error;
+ print "$ERROR";
+}
+
+sub random_hex_color {
+ my $size = shift;
+ $size = 6 if $size !~ /^3|6$/;
+ my @hex = ( 0 .. 9, 'a' .. 'f' );
+ my @color;
+ push @color, @hex[rand(@hex)] for 1 .. $size;
+ return join('', '#', @color);
+}
srv/web/ipfire/cgi-bin/proxy.cgi
srv/web/ipfire/cgi-bin/proxygraphs.cgi
srv/web/ipfire/cgi-bin/qos.cgi
+srv/web/ipfire/cgi-bin/qosgraph.cgi
srv/web/ipfire/cgi-bin/remote.cgi
srv/web/ipfire/cgi-bin/services.cgi
srv/web/ipfire/cgi-bin/speed.cgi
WARNING: translation string unused: display traffic at home
WARNING: translation string unused: dns server
WARNING: translation string unused: do not log this port list
-WARNING: translation string unused: downlink speed
WARNING: translation string unused: dynamic dns client
WARNING: translation string unused: eciadsl help
WARNING: translation string unused: eciadsl upload
WARNING: translation string unused: updates
WARNING: translation string unused: updates is old1
WARNING: translation string unused: updates is old2
-WARNING: translation string unused: uplink speed
WARNING: translation string unused: upload file
WARNING: translation string unused: upload static key
WARNING: translation string unused: upload successful
WARNING: translation string unused: dns server
WARNING: translation string unused: do not log this port list
WARNING: translation string unused: done
-WARNING: translation string unused: downlink speed
WARNING: translation string unused: dynamic dns client
WARNING: translation string unused: eciadsl help
WARNING: translation string unused: eciadsl upload
WARNING: translation string unused: updates
WARNING: translation string unused: updates is old1
WARNING: translation string unused: updates is old2
-WARNING: translation string unused: uplink speed
WARNING: translation string unused: upload fcdsl.o
WARNING: translation string unused: upload file
WARNING: translation string unused: upload static key
require '/var/ipfire/general-functions.pl';
require "${General::swroot}/lang.pl";
require "${General::swroot}/header.pl";
+require "${General::swroot}/graphs.pl";
my %qossettings = ();
my %checked = ();
}
}
close FILE;
- $message = "Klasse $qossettings{'CLASS'} wurde mit eventuell vorhandenen Unterklassen geloescht.";
+ $message = "$Lang::tr{'Class'} $qossettings{'CLASS'} $Lang::tr{'Class was deleted'}";
}
############################################################################################################################
}
}
close FILE;
- $message = "Unterklasse $qossettings{'CLASS'} wurde geloescht.";
+ $message = "$Lang::tr{'Subclass'} $qossettings{'CLASS'} $Lang::tr{'was deleted'}.";
}
############################################################################################################################
}
}
close FILE;
- $message = "Port-Regel ($qossettings{'CLASS'} - $qossettings{'PPROT'}) wurde geloescht.";
+ $message = "$Lang::tr{'Port Rule'} ($qossettings{'CLASS'} - $qossettings{'PPROT'}) $Lang::tr{'was deleted'}.";
} elsif ($qossettings{'DOPORT'} eq 'Bearbeiten')
{
open( FILE, "< $portfile" ) or die "Unable to read $portfile";
}
}
close FILE;
- $message = "TOS-Regel ($qossettings{'CLASS'} - $qossettings{'TOS'}) wurde geloescht.";
+ $message = "$Lang::tr{'TOS Rule'} ($qossettings{'CLASS'} - $qossettings{'TOS'}) $Lang::tr{'was deleted'}.";
} elsif ($qossettings{'DOTOS'} eq 'Bearbeiten')
{
open( FILE, "< $tosfile" ) or die "Unable to read $tosfile";
$output = `/usr/local/bin/qosctrl status`;
$output = &Header::cleanhtml($output,"y");
print "<pre>$output</pre>\n";
- } else { print "QoS ist nicht aktiviert!"; }
+ } else { print "$Lang::tr{'QoS not enabled'}"; }
&Header::closebox();
&Header::closebigbox();
&Header::closepage();
}
elsif ($qossettings{'ACTION'} eq 'Regel hinzufuegen')
{
- &Header::openbox('100%', 'center', 'Regel hinzufuegen');
+ &Header::openbox('100%', 'center', $Lang::tr{'Add Rule'});
print <<END
<table>
- <tr><td align='center'>Waehlen sie <u>eine</u> der untenstehenden Regeln aus.
+ <tr><td align='center'>$Lang::tr{'Choose Rule'}
<tr><td align='center'>
<input type="button" onClick="swapVisibility('l7rule')" value='Level7-Regel' />
<input type="button" onClick="swapVisibility('portrule')" value='Port-Regel' />
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
<table width='66%'>
<tr><td colspan='3'>
- <tr><td width='40%' align='right'>Downloadgeschwindigkeit: <td width='40%' align='left'>$qossettings{'INC_SPD'} kbps
+ <tr><td width='40%' align='right'>$Lang::tr{'downlink speed'}: <td width='40%' align='left'>$qossettings{'INC_SPD'} kbps
<td width='20%' rowspan='2' align='center' valign='middle'><input type='submit' name='ACTIONBW' value='Andern' />
- <tr><td width='40%' align='right'>Uploadgeschwindigkeit: <td width='40%' align='left'>$qossettings{'OUT_SPD'} kbps
+ <tr><td width='40%' align='right'>$Lang::tr{'uplink speed'}: <td width='40%' align='left'>$qossettings{'OUT_SPD'} kbps
</table></form>
END
;
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
<table width='66%'>
<tr><td colspan='3'><hr />
- <tr><td width='40%' align='right'>Downloadstandardklasse: <td width='40%' align='left'>$qossettings{'DEFCLASS_INC'}
+ <tr><td width='40%' align='right'>$Lang::tr{'downlink std class'}: <td width='40%' align='left'>$qossettings{'DEFCLASS_INC'}
<td width='20%' rowspan='3' align='center' valign='middle'><input type='submit' name='ACTIONDEF' value='Andern' />
- <tr><td width='40%' align='right'>Uploadstandardklasse: <td width='40%' align='left'>$qossettings{'DEFCLASS_OUT'}
+ <tr><td width='40%' align='right'>$Lang::tr{'uplink std class'}: <td width='40%' align='left'>$qossettings{'DEFCLASS_OUT'}
<tr><td width='40%' align='right'>ACKs: <td width='40%' align='left'>$qossettings{'ACK'}
<tr><td colspan='3' width='100%'><hr />
<tr><td colspan='3' width='100%' align='center'>
}
&Header::openbox('100%', 'center', $Lang::tr{'info'});
-&overviewgraph($qossettings{'RED_DEV'});
-&overviewgraph($qossettings{'IMQ_DEV'});
+&Graphs::overviewgraph("3240",$qossettings{'RED_DEV'});
+&Graphs::overviewgraph("3240",$qossettings{'IMQ_DEV'});
print <<END
<table>
- <tr><td colspan='9' align='center' valign='middle'><img alt="" src='/images/addblue.gif' /> Unterklasse hinzufuegen | <img alt="" src='/images/addgreen.gif' /> Regel hinzufuegen | <img alt="" src='/images/edit.gif' /> Bearbeiten | <img alt="" src='/images/delete.gif' /> Loeschen
- <tr><td colspan='9' align='right' valign='middle'><b>TOS-Bits:</b> <b>0</b> - Deaktiviert | <b>8</b> - Minimale Verzoegerung | <b>4</b> - Maximaler Durchsatz | <b>2</b> - Maximale Zuverlaessigkeit | <b>1</b> - Minimale Kosten
+ <tr><td colspan='9' align='center' valign='middle'><img alt="" src='/images/addblue.gif' /> $Lang::tr{'add subclass'} | <img alt="" src='/images/addgreen.gif' /> $Lang::tr{'Add Rule'} | <img alt="" src='/images/edit.gif' /> $Lang::tr{'edit'} | <img alt="" src='/images/delete.gif' /> $Lang::tr{'delete'}
+ <tr><td colspan='9' align='right' valign='middle'><b>$Lang::tr{'TOS Bits'}:</b> <b>0</b> - $Lang::tr{'disabled'} | <b>8</b> - $Lang::tr{'min delay'} | <b>4</b> - $Lang::tr{'max throughput'} | <b>2</b> - $Lang::tr{'max reliability'} | <b>1</b> - $Lang::tr{'min costs'}
END
;
-if (( -e "/srv/web/ipfire/html/graphs/qos-graph-$qossettings{'RED_DEV'}.png") && ( -e "/srv/web/ipfire/html/graphs/qos-graph-$qossettings{'IMQ_DEV'}.png")) {
+if (( -e "/srv/web/ipfire/html/graphs/qos-graph-$qossettings{'RED_DEV'}-3240.png") && ( -e "/srv/web/ipfire/html/graphs/qos-graph-$qossettings{'IMQ_DEV'}-3240.png")) {
print <<END
- <tr><td colspan='9' align='center'><img alt="" src="/graphs/qos-graph-$qossettings{'RED_DEV'}.png" />
- <tr><td colspan='9' align='center'><img alt="" src="/graphs/qos-graph-$qossettings{'IMQ_DEV'}.png" />
+ <tr><td colspan='9' align='center'><a href='/cgi-bin/qosgraph.cgi?graph=$qossettings{'RED_DEV'}'><img alt="" src="/graphs/qos-graph-$qossettings{'RED_DEV'}-3240.png" border='0' /></a></td></tr>
+ <tr><td colspan='9' align='center'><a href='/cgi-bin/qosgraph.cgi?graph=$qossettings{'IMQ_DEV'}'><img alt="" src="/graphs/qos-graph-$qossettings{'IMQ_DEV'}-3240.png" border='0' /></a></td></tr>
END
;}
+else
+{
+print $Lang::tr{'no information available'};
+}
print "\t</table>";
&Header::closebox();
############################################################################################################################
sub changedefclasses {
- &Header::openbox('100%', 'center', 'Standardklassen:');
+ &Header::openbox('100%', 'center', $Lang::tr{'std classes'});
print <<END
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
<table width='66%'>
- <tr><td width='100%' colspan='3'>Legen sie hier die Standardklassen fest durch die nicht-gefilterte Pakete gehen.
+ <tr><td width='100%' colspan='3'>$Lang::tr{'no filter pass'}
<tr><td width='33%' align='right'>Download:<td width='33%' align='left'><select name='DEFCLASS_INC'>
END
;
</table>
<hr />
<table width='66%'>
- <tr><td width='100%' colspan='3'>Legen sie hier die ACK-Klasse fest <br /> und klicken Sie danach auf <i>Speichern</i>.
+ <tr><td width='100%' colspan='3'>$Lang::tr{'enter ack class'}
<tr><td width='33%' align='right'>ACKs:<td width='33%' align='left'><select name='ACK'>
END
;
}
sub changebandwidth {
- &Header::openbox('100%', 'center', 'Bandbreiteneinstellungen');
+ &Header::openbox('100%', 'center', $Lang::tr{'bandwithsettings'});
if ($qossettings{'ENABLED'} eq 'on') {
- print "Sie koennen die Bandbreiteneinstellungen nicht bearbeiten, wenn QoS eingeschaltet ist. Schalten sie es zuerst dazu aus.<p>";
- print "<a href='/cgi-bin/qos.cgi'>Zurueck</a>";
+ print "$Lang::tr{'bandwitherror'}";
+ print "<a href='/cgi-bin/qos.cgi'>$Lang::tr{'back'}</a>";
} else {
print <<END
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
<input type='hidden' name='DEF_OUT_SPD' value='' /><input type='hidden' name='DEF_INC_SPD' value='' />
<table width='66%'>
- <tr><td width='100%' colspan='3'>Geben Sie bitte hier ihre Download- bzw. Upload-Geschwindigkeit ein <br /> und klicken Sie danach auf <i>Speichern</i>.
- <tr><td width='33%' align='right'>Download-Geschwindigkeit:
+ <tr><td width='100%' colspan='3'>$Lang::tr{'down and up speed'}
+ <tr><td width='33%' align='right'>$Lang::tr{'downlink speed'}:
<td width='33%' align='left'><input type='text' name='INC_SPD' maxlength='8' value="$qossettings{'INC_SPD'}" /> kbps
<td width='33%' align='center'>
- <tr><td width='33%' align='right'>Upload-Geschwindigkeit:
+ <tr><td width='33%' align='right'>$Lang::tr{'uplink speed'}:
<td width='33%' align='left'><input type='text' name='OUT_SPD' maxlength='8' value="$qossettings{'OUT_SPD'}" /> kbps
<td width='33%' align='center'><input type='submit' name='ACTION' value="$Lang::tr{'save'}" /> <input type='reset' name='ACTION' value="$Lang::tr{'reset'}" />
</table>
}
sub parentclass {
- &Header::openbox('100%', 'center', 'Parentklasse');
+ &Header::openbox('100%', 'center', $Lang::tr{'parentclass'});
print <<END
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
<table width='66%'>
print "<input type='hidden' name='DEVICE' value='$qossettings{'DEVICE'}' />";
}
print <<END
- <tr><td width='100%' colspan='3'>Geben sie die Daten ein <br /> und klicken Sie danach auf <i>Speichern</i>.
- <tr><td width='33%' align='right'>Interface:
+ <tr><td width='100%' colspan='3'>$Lang::tr{'enter data'}
+ <tr><td width='33%' align='right'>$Lang::tr{'interface'}:
<td width='33%' align='left'>
END
;
<option value='$qossettings{'RED_DEV'}' $qossettings{'RED_DEV_SEL'}>$qossettings{'RED_DEV'}</option>
<option value='$qossettings{'IMQ_DEV'}' $qossettings{'IMQ_DEV_SEL'}>$qossettings{'IMQ_DEV'}</option></select>
<td width='33%' align='center'>
- <tr><td width='33%' align='right'>Klasse:<td width='33%' align='left'>
+ <tr><td width='33%' align='right'>$Lang::tr{'Class'}:<td width='33%' align='left'>
END
;
if ( $qossettings{'EDIT'} eq 'yes' ) {
print <<END
</select>
<td width='33%' align='center'>
- <tr><td width='33%' align='right'>Prioritaet:<td width='33%' align='left'><select name='PRIO'>
+ <tr><td width='33%' align='right'>$Lang::tr{'priority'}:<td width='33%' align='left'><select name='PRIO'>
END
;
for ( $c = 1 ; $c <= 7 ; $c++ )
print <<END
</select>
<td width='33%' align='center'>
- <tr><td width='33%' align='right'>Garantierte Bandbreite:
+ <tr><td width='33%' align='right'>$Lang::tr{'guaranteed bandwith'}:
<td width='33%' align='left'><input type='text' size='20' name='MINBWDTH' maxlength='8' required='1' value="$qossettings{'MINBWDTH'}" />
<td width='33%' align='center'>
- <tr><td width='33%' align='right'>Maximale Bandbreite:
+ <tr><td width='33%' align='right'>$Lang::tr{'max bandwith'}:
<td width='33%' align='left'><input type='text' size='20' name='MAXBWDTH' maxlength='8' required='1' value="$qossettings{'MAXBWDTH'}" />
<td width='33%' align='center'>
<tr><td width='33%' align='right'>Burst:
<td width='33%' align='center'>
<tr><td width='33%' align='right'>TOS-Bit:
<td width='33%' align='left'><select name='TOS'>
- <option value='0'>Ausgeschaltet (0)</option>
- <option value='8'>Minimale Verzoegerung (8)</option>
- <option value='4'>Maximaler Durchsatz (4)</option>
- <option value='2'>Maximale Zuverlaessigkeit (2)</option>
- <option value='1'>Minimale Kosten (1)</option></select>
+ <option value='0'>$Lang::tr{'disabled'} (0)</option>
+ <option value='8'>$Lang::tr{'min delay'} (8)</option>
+ <option value='4'>$Lang::tr{'max throughput'} (4)</option>
+ <option value='2'>$Lang::tr{'max reliability'} (2)</option>
+ <option value='1'>$Lang::tr{'min costs'} (1)</option></select>
<td width='33%' align='center'>
<tr><td width='33%' align='right'>$Lang::tr{'remark'}:
<td width='66%' colspan='2' align='left'><input type='text' name='REMARK' size='40' maxlength='40' value="$qossettings{'REMARK'}" /> <img alt="" alt='blob' src='/blob.gif' />
}
sub subclass {
- &Header::openbox('100%', 'center', 'Unterklasse');
+ &Header::openbox('100%', 'center', $Lang::tr{'Subclass'});
print <<END
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
<table width='66%'>
print "<tr><td colspan='3' align='center'>$message";
}
print <<END
- <tr><td colspan='3' width='100%'>Aktuelle Klasse: $qossettings{'CLASS'}
- <tr><td width='100%' colspan='3'>Geben sie die Daten ein <br /> und klicken Sie danach auf <i>Speichern</i>.
- <tr><td width='33%' align='right'>Unterklasse:<td width='33%' align='left'><select name='SCLASS'>
+ <tr><td colspan='3' width='100%'>$Lang::tr{'current class'}: $qossettings{'CLASS'}
+ <tr><td width='100%' colspan='3'>$Lang::tr{'enter data'}
+ <tr><td width='33%' align='right'>$Lang::tr{'Subclass'}:<td width='33%' align='left'><select name='SCLASS'>
END
;
if ($qossettings{'CLASS'} >= 100 && $qossettings{'CLASS'} < 121) {
print <<END
</select>
<td width='33%' align='center'>
- <tr><td width='33%' align='right'>Prioritaet:<td width='33%' align='left'><select name='PRIO'>
+ <tr><td width='33%' align='right'>$Lang::tr{'priority'}:<td width='33%' align='left'><select name='PRIO'>
END
;
for ( $c = 1 ; $c <= 7 ; $c++ )
}
print <<END
<td width='33%' align='center'>
- <tr><td width='33%' align='right'>Garantierte Bandbreite:
+ <tr><td width='33%' align='right'>$Lang::tr{'guaranteed bandwith'}:
<td width='33%' align='left'><input type='text' name='MINBWDTH' maxlength='8' required='1' value="$qossettings{'MINBWDTH'}" />
<td width='33%' align='center'>
- <tr><td width='33%' align='right'>Maximale Bandbreite:
+ <tr><td width='33%' align='right'>$Lang::tr{'max bandwith'}:
<td width='33%' align='left'><input type='text' name='MAXBWDTH' maxlength='8' required='1' value="$qossettings{'MAXBWDTH'}" />
<td width='33%' align='center'>
<tr><td width='33%' align='right'>Burst:
<td width='33%' align='center'>
<tr><td width='33%' align='right'>TOS-Bit:
<td width='33%' align='left'><select name='TOS'>
- <option value='0'>Ausgeschaltet (0)</option>
- <option value='8'>Minimale Verzoegerung (8)</option>
- <option value='4'>Maximaler Durchsatz (4)</option>
- <option value='2'>Maximale Zuverlaessigkeit (2)</option>
- <option value='1'>Minimale Kosten (1)</option></select>
+ <option value='0'>$Lang::tr{'disabled'} (0)</option>
+ <option value='8'>$Lang::tr{'min delay'} (8)</option>
+ <option value='4'>$Lang::tr{'max throughput'} (4)</option>
+ <option value='2'>$Lang::tr{'max reliability'} (2)</option>
+ <option value='1'>$Lang::tr{'min costs'} (1)</option></select>
<td width='33%' align='center'><input type='hidden' name='CLASS' value="$qossettings{'CLASS'}" />
<input type='hidden' name='DEVICE' value="$qossettings{'DEVICE'}" />
<input type='submit' name='DOSCLASS' value='$Lang::tr{'save'}' /> <input type='reset' value='$Lang::tr{'reset'}' />
}
sub level7rule {
- &Header::openbox('100%', 'center', 'Level7-Regel');
+ &Header::openbox('100%', 'center', $Lang::tr{'Level7 Rule'});
print <<END
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
<table width='66%'>
print "<tr><td colspan='3' align='center'><font color='red'>$message</font>";
}
print <<END
- <tr><td colspan='3' width='100%'>Aktuelle Klasse: $qossettings{'CLASS'}
- <tr><td width='100%' colspan='3'>Geben sie die Daten ein <br /> und klicken Sie danach auf <i>Speichern</i>.
- <tr><td width='33%' align='right'>Protokoll:
+ <tr><td colspan='3' width='100%'>$Lang::tr{'current class'}: $qossettings{'CLASS'}
+ <tr><td width='100%' colspan='3'>$Lang::tr{'enter data'}
+ <tr><td width='33%' align='right'>$Lang::tr{'protocol'}:
<td width='33%' align='left'><select name='L7PROT'>
END
;
closedir DIR;
print <<END
</select><td width='33%' align='center'>
- <tr><td width='33%' align='right'>Quell-IP-Adresse:
+ <tr><td width='33%' align='right'>$Lang::tr{'source ip'}:
<td width='33%' align='left'><input type='text' name='QIP' maxlength='15' value='$qossettings{'QIP'}' />
<td width='33%' align='center'>
- <tr><td width='33%' align='right'>Ziel-IP-Adresse:
+ <tr><td width='33%' align='right'>$Lang::tr{'destination ip'}:
<td width='33%' align='left'><input type='text' name='DIP' maxlength='15' value='$qossettings{'DIP'}' />
<td width='33%' align='center'><input type='hidden' name='CLASS' value='$qossettings{'CLASS'}' /><input type='submit' name='DOLEVEL7' value='$Lang::tr{'save'}' />
</table></form>
}
sub portrule {
- &Header::openbox('100%', 'center', 'Port-Regel hinzufuegen');
+ &Header::openbox('100%', 'center', $Lang::tr{'Add Port Rule'});
print <<END
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
<table width='66%'>
- <tr><td width='100%' colspan='3'>Geben sie die Daten ein <br /> und klicken Sie danach auf <i>Speichern</i>.
- <tr><td width='33%' align='right'>Protokoll:
+ <tr><td width='100%' colspan='3'>$Lang::tr{'enter data'}
+ <tr><td width='33%' align='right'>$Lang::tr{'protocol'}:
<td width='33%' align='left'><select name='PPROT'>
END
;
}
print <<END
</select><td width='33%' align='center'>
- <tr><td width='33%' align='right'>Quell-Port:
+ <tr><td width='33%' align='right'>$Lang::tr{'source port'}:
<td width='33%' align='left'><input type='text' name='QPORT' maxlength='5' value='$qossettings{'QPORT'}' />
<td width='33%' align='center'>
- <tr><td width='33%' align='right'>Ziel-Port:
+ <tr><td width='33%' align='right'>$Lang::tr{'destination port'}:
<td width='33%' align='left'><input type='text' name='DPORT' maxlength='5' value='$qossettings{'DPORT'}' />
<td width='33%' align='center'>
- <tr><td width='33%' align='right'>Quell-IP-Adresse:
+ <tr><td width='33%' align='right'>$Lang::tr{'source ip'}:
<td width='33%' align='left'><input type='text' name='QIP' maxlength='15' value='$qossettings{'QIP'}' />
<td width='33%' align='center'>
- <tr><td width='33%' align='right'>Ziel-IP-Adresse:
+ <tr><td width='33%' align='right'>$Lang::tr{'destination ip'}:
<td width='33%' align='left'><input type='text' name='DIP' maxlength='15' value='$qossettings{'DIP'}' />
<td width='33%' align='center'><input type='hidden' name='CLASS' value='$qossettings{'CLASS'}' /><input type='submit' name='DOPORT' value='$Lang::tr{'save'}' />
</table></form>
}
sub tosrule {
- &Header::openbox('100%', 'center', 'TOS-Regel');
+ &Header::openbox('100%', 'center', $Lang::tr{'TOS Rule'});
if ($qossettings{'TOS'}) {
- $checked[$qossettings{'TOS'}] = "checked";
+ $checked{$qossettings{'TOS'}} = "checked";
}
print <<END
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
print "<tr><td colspan='3' align='center'><font color='red'>$message</font>";
}
print <<END
- <tr><td colspan='2' width='100%'>Aktuelle Klasse: $qossettings{'CLASS'}
- <tr><td width='100%' colspan='2'>Aktivieren oder deaktivieren sie die TOS-Bits <br /> und klicken Sie danach auf <i>Speichern</i>.
- <tr><td width='50%' align='left'>Minimale Verzoegerung (8) <td width='50%'><input type="radio" name="TOS" value="8" $checked[8] />
- <tr><td width='50%' align='left'>Maximaler Durchsatz (4) <td width='50%'><input type="radio" name="TOS" value="4" $checked[4] />
- <tr><td width='50%' align='left'>Maximale Zuverlaessigkeit (2) <td width='50%'><input type="radio" name="TOS" value="2" $checked[2] />
- <tr><td width='50%' align='left'>Minimale Kosten (1) <td width='50%'><input type="radio" name="TOS" value="1" $checked[1] />
+ <tr><td colspan='2' width='100%'>$Lang::tr{'current class'}: $qossettings{'CLASS'}
+ <tr><td width='100%' colspan='2'>$Lang::tr{'Enter TOS'}
+ <tr><td width='50%' align='left'>$Lang::tr{'min delay'} (8) <td width='50%'><input type="radio" name="TOS" value="8" $checked[8] />
+ <tr><td width='50%' align='left'>$Lang::tr{'max throughput'} (4) <td width='50%'><input type="radio" name="TOS" value="4" $checked[4] />
+ <tr><td width='50%' align='left'>$Lang::tr{'max reliability'} (2) <td width='50%'><input type="radio" name="TOS" value="2" $checked[2] />
+ <tr><td width='50%' align='left'$Lang::tr{'min costs'} (1) <td width='50%'><input type="radio" name="TOS" value="1" $checked[1] />
<tr><td width='100%' align='right' colspan='2'><input type='hidden' name='CLASS' value='$qossettings{'CLASS'}' /><input type='submit' name='DOTOS' value='$Lang::tr{'save'}' />
</table></form>
END
print <<END
<table border='0' width='100%' cellspacing='0'>
<tr><td bgcolor='$color{'color20'}' width='10%' align='center'><b>$Lang::tr{'interface'}</b>
- <td bgcolor='$color{'color20'}' width='10%' align='center'><b>Klasse</b>
- <td bgcolor='$color{'color20'}' width='10%' align='center'>Prioritaet
- <td bgcolor='$color{'color20'}' width='10%' align='center'>Garantierte Bandbreite
- <td bgcolor='$color{'color20'}' width='10%' align='center'>Maximale Bandbreite
+ <td bgcolor='$color{'color20'}' width='10%' align='center'><b>$Lang::tr{'Class'}</b>
+ <td bgcolor='$color{'color20'}' width='10%' align='center'>$Lang::tr{'priority'}
+ <td bgcolor='$color{'color20'}' width='10%' align='center'>$Lang::tr{'guaranteed bandwith'}
+ <td bgcolor='$color{'color20'}' width='10%' align='center'>$Lang::tr{'max bandwith'}
<td bgcolor='$color{'color20'}' width='10%' align='center'>Burst
<td bgcolor='$color{'color20'}' width='10%' align='center'>Ceil Burst
<td bgcolor='$color{'color20'}' width='10%' align='center'>TOS
- <td bgcolor='$color{'color20'}' width='20%' align='center'>Aktionen
+ <td bgcolor='$color{'color20'}' width='20%' align='center'>$Lang::tr{'action'}
<tr><td align='center' bgcolor='$color{'color22'}'>$classline[0]</td>
<td align='center' bgcolor='$color{'color22'}'>$classline[1]</td>
<td align='center' bgcolor='$color{'color22'}'>$classline[2]</td>
<td><form method='post' action='$ENV{'SCRIPT_NAME'}'>
<input type='hidden' name='CLASS' value='$classline[1]' />
<input type='hidden' name='ACTION' value='Unterklasse hinzufuegen' />
- <input type='image' alt='Unterklasse hinzufuegen' src='/images/addblue.gif' />
+ <input type='image' alt='$Lang::tr{'add subclass'}' src='/images/addblue.gif' />
</form>
<td><form method='post' action='$ENV{'SCRIPT_NAME'}'>
<input type='hidden' name='CLASS' value='$classline[1]' />
<input type='hidden' name='ACTION' value='Regel hinzufuegen' />
- <input type='image' alt='Regel hinzufuegen' src='/images/addgreen.gif' />
+ <input type='image' alt='$Lang::tr{'Add Rule'}' src='/images/addgreen.gif' />
</form>
<td><form method='post' action='$ENV{'SCRIPT_NAME'}'>
<input type='hidden' name='CLASS' value='$classline[1]' />
<input type='hidden' name='DOCLASS' value='Bearbeiten' />
- <input type='image' alt='Bearbeiten' src='/images/edit.gif' />
+ <input type='image' alt='$Lang::tr{'edit'}' src='/images/edit.gif' />
</form>
<td><form method='post' action='$ENV{'SCRIPT_NAME'}'>
<input type='hidden' name='CLASS' value='$classline[1]' />
<input type='hidden' name='DOCLASS' value='Loeschen' />
- <input type='image' alt='Loeschen' src='/images/delete.gif' />
+ <input type='image' alt='$Lang::tr{'delete'}' src='/images/delete.gif' />
</form>
</table>
</td>
if ( $l7ruleline[0] eq $classline[1] )
{
print <<END
- <tr><td align='right' colspan='2'><b>Level7-Protokoll:</b>
+ <tr><td align='right' colspan='2'><b>$Lang::tr{'Level7 Protocol'}:</b>
<td align='center' colspan='6'>$l7ruleline[2]
<td align='right' >
<table border='0'><tr>
if (($l7ruleline[3] ne "") || ($l7ruleline[4] ne "")){
print <<END
<tr><td align='center'>
- <td align='right' colspan='3'><b>Quell-IP:</b> $l7ruleline[3]
- <td align='right' colspan='3'><b>Ziel-IP:</b> $l7ruleline[4]
+ <td align='right' colspan='3'><b>$Lang::tr{'source ip'}:</b> $l7ruleline[3]
+ <td align='right' colspan='3'><b>$Lang::tr{'destination ip'}:</b> $l7ruleline[4]
END
;
}
if ( $portruleline[0] eq $classline[1] )
{
print <<END
- <tr><td align='right' colspan='2'><b>Port-Regel:</b>
+ <tr><td align='right' colspan='2'><b>$Lang::tr{'Port Rule'}:</b>
<td align='center'>($portruleline[2])
<td align='center' colspan='2'>
END
<input type='hidden' name='DIP' value='$portruleline[5]' />
<input type='hidden' name='DPORT' value='$portruleline[6]' />
<input type='hidden' name='DOPORT' value='Bearbeiten' />
- <input type='image' alt='Bearbeiten' src='/images/edit.gif' />
+ <input type='image' alt='$Lang::tr{'edit'}' src='/images/edit.gif' />
</form>
<td><form method='post' action='$ENV{'SCRIPT_NAME'}'>
<input type='hidden' name='CLASS' value='$portruleline[0]' />
<input type='hidden' name='DIP' value='$portruleline[5]' />
<input type='hidden' name='DPORT' value='$portruleline[6]' />
<input type='hidden' name='DOPORT' value='Loeschen' />
- <input type='image' alt='Loeschen' src='/images/delete.gif' />
+ <input type='image' alt='$Lang::tr{'delete'}' src='/images/delete.gif' />
</form>
</table>
END
if (($portruleline[3] ne "") || ($portruleline[5] ne "")){
print <<END
<tr><td align='center'>
- <td align='right' colspan='3'><b>Quell-IP:</b> $portruleline[3]
- <td align='right' colspan='3'><b>Ziel-IP:</b> $portruleline[5]
+ <td align='right' colspan='3'><b>$Lang::tr{'source ip'}:</b> $portruleline[3]
+ <td align='right' colspan='3'><b>$Lang::tr{'destination ip'}:</b> $portruleline[5]
END
;
}
END
;
if ( $tosruleline[2] eq "8") {
- print "Minimale Verzoegerung\n";
+ print "$Lang::tr{'min delay'}\n";
} elsif ( $tosruleline[2] eq "4") {
- print "Maximaler Durchsatz\n";
+ print "$Lang::tr{'max throughput'}\n";
} elsif ( $tosruleline[2] eq "2") {
- print "Maximaler Durchsatz\n";
+ print "$Lang::tr{'max reliability'}\n";
} elsif ( $tosruleline[2] eq "1") {
- print "Minimale Kosten\n";
+ print "$Lang::tr{'min costs'}\n";
} else { print " \n"; }
print <<END
<input type='hidden' name='DEV' value='$tosruleline[1]' />
<input type='hidden' name='TOS' value='$tosruleline[2]' />
<input type='hidden' name='DOTOS' value='Bearbeiten' />
- <input type='image' alt='Bearbeiten' src='/images/edit.gif' />
+ <input type='image' alt='$Lang::tr{'edit'}' src='/images/edit.gif' />
</form>
<td><form method='post' action='$ENV{'SCRIPT_NAME'}'>
<input type='hidden' name='CLASS' value='$tosruleline[0]' />
<input type='hidden' name='DEV' value='$tosruleline[1]' />
<input type='hidden' name='TOS' value='$tosruleline[2]' />
<input type='hidden' name='DOTOS' value='Loeschen' />
- <input type='image' alt='Loeschen' src='/images/delete.gif' />
+ <input type='image' alt='$Lang::tr{'delete'}' src='/images/delete.gif' />
</form>
</table>
END
@subclassline = split( /\;/, $subclassentry );
if ( $subclassline[1] eq $classline[1] ) {
print <<END
- <tr><td align='center' bgcolor='#FAFAFA'>Subklasse:
+ <tr><td align='center' bgcolor='#FAFAFA'>$Lang::tr{'Subclass'}:
<td align='center' bgcolor='#FAFAFA'>$subclassline[2]
<td align='center' bgcolor='#FAFAFA'>$subclassline[3]
<td align='center' bgcolor='#FAFAFA'>$subclassline[4]
<td><form method='post' action='$ENV{'SCRIPT_NAME'}'>
<input type='hidden' name='CLASS' value='$subclassline[2]' />
<input type='hidden' name='ACTION' value='Regel hinzufuegen' />
- <input type='image' alt='Regel hinzufuegen' src='/images/addgreen.gif' />
+ <input type='image' alt='$Lang::tr{'Add Rule'}' src='/images/addgreen.gif' />
</form>
<td><form method='post' action='$ENV{'SCRIPT_NAME'}'>
<input type='hidden' name='CLASS' value='$subclassline[2]' />
<input type='hidden' name='DOSCLASS' value='Bearbeiten' />
- <input type='image' alt='Bearbeiten' src='/images/edit.gif' />
+ <input type='image' alt='$Lang::tr{'edit'}' src='/images/edit.gif' />
</form>
<td><form method='post' action='$ENV{'SCRIPT_NAME'}'>
<input type='hidden' name='CLASS' value='$subclassline[2]' />
<input type='hidden' name='DOSCLASS' value='Loeschen' />
- <input type='image' alt='Loeschen' src='/images/delete.gif' />
+ <input type='image' alt='$Lang::tr{'delete'}' src='/images/delete.gif' />
</form>
</table>
END
sub expert
{
- &Header::openbox('100%', 'center', 'Expertenoptionen:');
+ &Header::openbox('100%', 'center', $Lang::tr{'expertoptions'});
print <<END
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
<table width='66%'>
<tr><td width='33%' align='right'>MTU:<td width='33%' align='left'>
<input type='text' name='MTU' maxlength='8' required='4' value='$qossettings{'MTU'}' />
- <td width='33%' align='center'>Diese Einstellung aendert die MTU nicht global sondern nur fuer das QoS.
- <tr><td width='33%' align='right'>Queue Laenge:<td width='33%' align='left'>
+ <td width='33%' align='center'>$Lang::tr{'mtu QoS'}
+ <tr><td width='33%' align='right'>$Lang::tr{'Queuelenght'}:<td width='33%' align='left'>
<input type='text' name='QLENGTH' maxlength='8' required='2' value='$qossettings{'QLENGTH'}' />
<td width='33%' align='center'>
<tr><td width='33%' align='right'>SFQ Perturb:<td width='33%' align='left'>
}
unless ( ( $qossettings{'MINBWDTH'} >= 1 ) && ( $qossettings{'MINBWDTH'} <= $qossettings{'SPD'} ) ) {
$qossettings{'VALID'} = 'no';
- $message = "Mindestbandbreite ist ungueltig.";
+ $message = "$Lang::tr{'false min bandwith'}";
}
$qossettings{'SPD'} = '';
}
}
unless ( ( $qossettings{'MAXBDWTH'} >= 0 ) && ($qossettings{'MAXBDWTH'} >= $qossettings{'MINBDWTH'}) &&( $qossettings{'MAXBDWTH'} <= $qossettings{'SPD'} ) ) {
$qossettings{'VALID'} = 'no';
- $message = "Mamimalbandbreite ist ungueltig.";
+ $message = "$Lang::tr{'false max bandwith'}";
}
$qossettings{'SPD'} = '';
}
if ( $qossettings{'DEVICE'} eq $qossettings{'RED_DEV'} ) {
if ($qossettings{'CLASS'} lt 100 || $qossettings{'CLASS'} ge 121) {
$qossettings{'VALID'} = 'no';
- $message = "Die Klassennummer passt nicht zum angegebenen Interface.";
+ $message = "$Lang::tr{'false classnumber'}";
}
} elsif ( $qossettings{'DEVICE'} eq $qossettings{'IMQ_DEV'} ) {
if ($qossettings{'CLASS'} lt 200 || $qossettings{'CLASS'} ge 221) {
if ( $tmpline[1] eq $qossettings{'CLASS'} )
{
$qossettings{'VALID'} = 'no';
- $message = "Die aktuelle Klasse wird bereits verwendet.";
+ $message = "$Lang::tr{'false classnumber'}";
last
}
}
if ( $tmpline[2] eq $qossettings{'SCLASS'} )
{
$qossettings{'VALID'} = 'no';
- $message = "Die aktuelle Klasse wird bereits verwendet.";
+ $message = "$Lang::tr{'class in use'}";
last
}
}
}
}
-
-sub overviewgraph {
- $qossettings{'DEV'} = shift;
- if ( $qossettings{'DEV'} eq $qossettings{'RED_DEV'} ) {
- $qossettings{'CLASSPRFX'} = '1';
- } else {
- $qossettings{'CLASSPRFX'} = '2';
- }
- my $ERROR="";
- my $count="1";
- my $color="#000000";
- my @command=("/srv/web/ipfire/html/graphs/qos-graph-$qossettings{'DEV'}.png",
- "--start", "-3240", "-aPNG", "-i", "-z",
- "--alt-y-grid", "-w 600", "-h 150", "-r",
- "--color", "SHADEA#EAE9EE",
- "--color", "SHADEB#EAE9EE",
- "--color", "BACK#FFFFFF",
- "-t Auslastung auf ($qossettings{'DEV'})"
- );
- open( FILE, "< $classfile" ) or die "Unable to read $classfile";
- @classes = <FILE>;
- close FILE;
- foreach $classentry (sort @classes)
- {
- @classline = split( /\;/, $classentry );
- if ( $classline[0] eq $qossettings{'DEV'} )
- {
- $color=random_hex_color(6);
- push(@command, "DEF:$classline[1]=/var/log/rrd/class_$qossettings{'CLASSPRFX'}-$classline[1]_$qossettings{'DEV'}.rrd:bits:AVERAGE");
-
- if ($count eq "1") {
- push(@command, "AREA:$classline[1]$color:Klasse $classline[1] - $classline[8]\\j");
- } else {
- push(@command, "STACK:$classline[1]$color:Klasse $classline[1] - $classline[8]\\j");
- }
- $count++;
- }
- }
- RRDs::graph (@command);
- $ERROR = RRDs::error;
- print "$ERROR";
-}
-
-sub random_hex_color {
- my $size = shift;
- $size = 6 if $size !~ /^3|6$/;
- my @hex = ( 0 .. 9, 'a' .. 'f' );
- my @color;
- push @color, @hex[rand(@hex)] for 1 .. $size;
- return join('', '#', @color);
-}
--- /dev/null
+#!/usr/bin/perl
+#
+# SmoothWall CGIs
+#
+# This code is distributed under the terms of the GPL
+#
+# (c) The SmoothWall Team
+#
+#
+
+use strict;
+
+# enable only the following on debugging purpose
+use warnings;
+use CGI::Carp 'fatalsToBrowser';
+
+require '/var/ipfire/general-functions.pl';
+require "${General::swroot}/lang.pl";
+require "${General::swroot}/header.pl";
+require "${General::swroot}/graphs.pl";
+
+my @cgigraph=();
+my $errormessage = "";
+
+&Header::showhttpheaders();
+
+$ENV{'QUERY_STRING'} =~ s/&//g;
+@cgigraph = split(/graph=/,$ENV{'QUERY_STRING'});
+$cgigraph[1] = '' unless defined $cgigraph[1];
+
+&Graphs::overviewgraph("day",$cgigraph[1]);
+&Graphs::overviewgraph("week",$cgigraph[1]);
+&Graphs::overviewgraph("month",$cgigraph[1]);
+&Graphs::overviewgraph("year",$cgigraph[1]);
+
+&Header::openpage('QoS', 1, '');
+&Header::openbigbox('100%', 'left', '', $errormessage);
+&Header::openbox('100%', 'left', $cgigraph[1]);
+
+ if (-e "/srv/web/ipfire/html/graphs/qos-graph-$cgigraph[1]-day.png") {
+ my $ftime = localtime((stat("/srv/web/ipfire/html/graphs/qos-graph-$cgigraph[1]-day.png"))[9]);
+ print "<center>";
+ print "<b>$Lang::tr{'the statistics were last updated at'}: $ftime</b></center><br />\n";
+ print "<img alt='' src='/graphs/qos-graph-$cgigraph[1]-day.png' border='0' /><hr />";
+ } else {
+ print $Lang::tr{'no information available'};
+ }
+
+ if (-e "/srv/web/ipfire/html/graphs/qos-graph-$cgigraph[1]-week.png") {
+ my $ftime = localtime((stat("/srv/web/ipfire/html/graphs/qos-graph-$cgigraph[1]-week.png"))[9]);
+ print "<center>";
+ print "<b>$Lang::tr{'the statistics were last updated at'}: $ftime</b></center><br />\n";
+ print "<img alt='' src='/graphs/qos-graph-$cgigraph[1]-week.png' border='0' /><hr />";
+ } else {
+ print $Lang::tr{'no information available'};
+ }
+
+ if (-e "/srv/web/ipfire/html/graphs/qos-graph-$cgigraph[1]-month.png") {
+ my $ftime = localtime((stat("/srv/web/ipfire/html/graphs/qos-graph-$cgigraph[1]-month.png.png"))[9]);
+ print "<center>";
+ print "<b>$Lang::tr{'the statistics were last updated at'}: $ftime</b></center><br />\n";
+ print "<img alt='' src='/graphs/qos-graph-$cgigraph[1]-month.png' border='0' /><hr />";
+ } else {
+ print $Lang::tr{'no information available'};
+ }
+
+ if (-e "/srv/web/ipfire/html/graphs/qos-graph-$cgigraph[1]-year.png") {
+ my $ftime = localtime((stat("/srv/web/ipfire/html/graphs/qos-graph-$cgigraph[1]-year.png"))[9]);
+ print "<center>";
+ print "<b>$Lang::tr{'the statistics were last updated at'}: $ftime</b></center><br />\n";
+ print "<img alt='' src='/graphs/qos-graph-$cgigraph[1]-year.png' border='0' /><hr />";
+ } else {
+ print $Lang::tr{'no information available'};
+ }
+
+ print"<div align='center'><br/><a href='/cgi-bin/qos.cgi'>$Lang::tr{'back'}</a></div>";
+
+&Header::closebox();
+&Header::closebigbox();
+&Header::closepage();
%tr,
'Act as' => 'Konfiguriert als',
+'Add Port Rule' => 'Port Regel hinzufügen',
+'Add Rule' => 'Regel hinzufügen',
+'Choose Rule' => 'Waehlen sie <u>eine</u> der untenstehenden Regeln aus.',
+'Class' => 'Klasse',
+'Class was deleted' => 'wurde mit eventuell vorhandenen Unterklassen geloescht',
'Client status and controlc' => 'Client Status und Kontrolle',
'ConnSched action' => 'Aktion:',
'ConnSched add action' => 'Aktion hinzufügen',
'ConnSched time' => 'Zeit:',
'ConnSched up' => 'Hoch',
'ConnSched weekdays' => 'Wochentage:',
+'Enter TOS' => 'Aktivieren oder deaktivieren sie die TOS-Bits <br /> und klicken Sie danach auf <i>Speichern</i>.',
'Existing Files' => 'Dateien in der Datenbank',
'HDD temperature' => 'HDD-Temperatur',
+'Level7 Protocol' => 'Level7-Protokoll',
+'Level7 Rule' => 'Level7-Regel',
'Local VPN IP' => 'Internes Netzwerk (GREEN)',
'MTU' => 'MTU Size',
'Number of IPs for the pie chart' => 'Anzahl der angezeigten IPs im Diagramm',
'OpenVPN' => 'OpenVPN',
'Pages' => 'Seiten',
'Ping' => 'Ping ',
+'Port Rule' => 'Port-Regel',
+'QoS not enabled' => 'QoS ist nicht aktiviert!',
+'Queuelenght' => 'Warteschlangenlaenge',
'Remote IP' => 'Entfernte IP / Hostname (DynDNS)',
'Remote VPN IP' => 'VPN Subnetz (z.B. 10.0.10.0/255.255.255.0)',
'Resolv' => 'Resolv-Retry',
'Scan for Files' => 'Nach Dateien suchen',
'Scan from Directory' => 'Scan Verzeichnis',
+'Subclass' => 'Unterklasse',
+'TOS Bits' => 'TOS-Bits',
+'TOS Rule' => 'TOS-Regel',
+'Utilization on' => 'Auslastung auf',
'Verbose' => 'Verbose',
'WakeOnLan' => 'Wake On LAN',
'a ca certificate with this name already exists' => 'Ein CA-Zertifikat mit diesem Namen existiert bereits.',
'add printer' => 'Drucker hinzufügen',
'add service' => 'Dienst hinzufügen',
'add share' => 'Freigabe anlegen',
+'add subclass' => 'Unterklasse hinzufügen',
'add user' => 'Benutzer anlegen',
'add xtaccess' => 'Externen Zugang hinzugefügt',
'add-route' => 'Additional push route',
'bad return code' => 'Das Hilfsprogramm hat einen Fehlercode gemeldet',
'bad source range' => 'Der erste Wert des Quellportbereich ist größer oder gleich dem zweiten Wert.',
'bandwidth usage' => 'Bandbreitenauslastung (extern)',
+'bandwitherror' => 'Sie koennen die Bandbreiteneinstellungen nicht bearbeiten, wenn QoS eingeschaltet ist. Schalten sie es zuerst dazu aus.<p>',
+'bandwithsettings' => 'Bandbreiteneinstellungen',
'basic options' => 'Basisoptionen',
'beep when ppp connects or disconnects' => 'Piepen, wenn IPFire verbindet oder trennt',
'behind a proxy' => 'Hinter einem Proxy:',
'choose config' => 'Konfiguration auswaehlen',
'cipher' => 'Verschlüsselung',
'city' => 'Stadt',
+'class in use' => 'Die aktuelle Klasse wird bereits verwendet.',
'clear cache' => 'Zwischenspeicher löschen',
'clear playlist' => 'leere Playlist',
'clenabled' => 'Uhrzeit dem lokalen Netzwerk zur Verfügung stellen',
'cron server' => 'Cron-Server',
'current' => 'Aktuell',
'current aliases' => 'Aktuelle Alias-Adresse:',
+'current class' => 'Aktuelle Klasse',
'current devices' => 'Schnittstellen',
'current dhcp leases on blue' => 'Aktuelle DHCP Zuordnungen auf Blau',
'current dynamic leases' => 'Aktuelle dynamische Zuordnungen',
'dialup settings' => 'Einwahl-Einstellungen',
'directory mask' => 'UNIX Verzeichnis Rechte',
'directory writeable' => 'Verzeichnis schreibbar',
+'disabled' => 'deaktiviert',
'disconnect' => 'OVPN Stop / Trennen',
'disconnects' => 'Abbrüche',
'disk access per' => 'Plattenzugriff je',
'domain name' => 'Domainname',
'domain name suffix' => 'Domain-Name-Suffix:',
'domain not set' => 'Domain nicht eingegeben.',
+'down and up speed' => 'Geben Sie bitte hier ihre Download- bzw. Upload-Geschwindigkeit ein <br /> und klicken Sie danach auf <i>Speichern</i>.',
'downlink speed' => 'Downlink-Geschwindigkeit (kBit/sek)',
+'downlink std class' => 'Downloadstandardklasse',
'download' => 'herunterladen',
'download ca certificate' => 'CA Zertifikat herunterladen',
'download certificate' => 'Zertifikate herunterladen',
'encapsulation' => 'Encapsulation',
'encrypted' => 'Verschlüsselt',
'end address' => 'Endadresse:',
+'enter ack class' => 'Legen sie hier die ACK-Klasse fest <br /> und klicken Sie danach auf <i>Speichern</i>.',
+'enter data' => 'Geben sie die Daten ein <br /> und klicken Sie danach auf <i>Speichern</i>.',
'err bk 1' => 'Fehler beim Erzeugen des Archivs',
'err bk 10 password' => 'Fehler beim Datensicherungs-Passwort',
'err bk 2 key' => 'Fehler beim Erzeugen der Schlüsseldatei',
'exampel' => 'Beispiel',
'excluding buffers and cache' => '-/+ Puffer/Zwischenspeicher',
'expected' => 'Erwartet',
+'expertoptions' => 'Expertenoptionen',
'expires' => 'Ablaufdatum',
'export' => 'Export',
'exportkey' => 'PSK exportieren',
'external access rule changed' => 'External access Regel geaendert; Der access controller wird neu gestartet.',
'external access rule removed' => ' Regel für externen Zugang entfernt; Starte Zugangskontroller neu',
'external aliases configuration' => 'Externe Alias-Konfiguration',
+'false classnumber' => 'Die Klassennummer passt nicht zum angegebenen Interface.',
+'false max bandwith' => 'Maximalbandbreite ist ungueltig.',
+'false min bandwith' => 'Mindestbandbreite ist ungueltig.',
'february' => 'Februar',
'fetch ip from' => 'Schätze die echte öffentliche IP-Adresse mit Hilfe eines externen Servers',
'filename' => 'Dateiname',
'graph per' => 'Diagramm pro',
'green' => 'GRÜN',
'green interface' => 'Grünes Interface',
+'guaranteed bandwith' => 'Garantierte Bandbreite',
'guest ok' => 'Gastzugang gewähren',
'gui settings' => 'Benutzeroberfläche',
'gz with key' => 'Nur ein verschlüsseltes Archiv kann auf dieser Maschine wiederhergestellt werden.',
'map to guest' => 'Map to Guest',
'march' => 'März',
'marked' => 'Markiert',
+'max bandwith' => 'Maximale Bandbreite',
'max incoming size' => 'Max. eingehende Größe (kB):',
'max lease time' => 'Max. Haltezeit in min:',
'max outgoing size' => 'Max. abgehende Größe (kB):',
+'max reliability' => 'Maximale Zuverlaessigkeit',
'max renewal time' => 'Maximale Aktualisierungszeit',
'max retries not set' => 'Maximale Wiederholversuche nicht angegeben.',
'max size' => 'Max. Objektgröße (kB):',
+'max throughput' => 'Maximaler Durchsatz',
'maximal' => 'Maximal',
'maximum retries' => 'Maximale Wiederholversuche:',
'may' => 'Mai',
'memory information' => 'Speicherinformationen',
'memory usage per' => 'Speichernutzung pro',
'method' => 'Methode:',
+'min costs' => 'Minimale Kosten',
+'min delay' => 'Minimale Verzoegerung',
'min size' => 'Min. Objektgröße (kB):',
'minimal' => 'Minimal',
'minutes' => 'Minuten',
'mpfire scanning' => 'Nach neuen Dateien suchen',
'mpfire songs' => 'MPFire Songliste',
'mpfire webradio' => 'MPFire Webradio',
+'mtu QoS' => 'Diese Einstellung aendert die MTU nicht global sondern nur fuer das QoS.',
'my new share' => 'Meine neue Freigabe',
'name' => 'Name',
'name is invalid' => 'Name ist ungültig',
'no cfg upload' => 'Keine Daten wurden hochgeladen',
'no dhcp lease' => 'Eine DHCP-Zuordnung konnte nicht empfangen werden',
'no eciadsl synch.bin file' => 'Keine ECI ADSL Datei synch.bin vorhanden. Bitte hochladen.',
+'no filter pass' => 'Legen sie hier die Standardklassen fest durch die nicht-gefilterte Pakete gehen.',
'no fritzdsl driver' => 'Kein Fritz!DSL-Treiber vorhanden. Bitte hochladen.',
'no information available' => 'Keine Informationen verfügbar.',
'no log selected' => 'kein Log ausgewählt',
'pakfire updates' => 'Zur Verfügung stehende Updates:',
'pakfire working' => 'Pakfire führt gerade eine Aufgabe aus... Bitte warten sie, bis diese erfolgreich beendet wurde.',
'pap or chap' => 'PAP oder CHAP',
+'parentclass' => 'Parentklasse',
'password' => 'Passwort:',
'password contains illegal characters' => 'Passwort enthält ungültige(s) Zeichen.',
'password crypting key' => 'Schlüssel wird mit dem Passwort chiffriert',
'status' => 'Status',
'status information' => 'Statusinformationen',
'status ovpn' => 'OpenVPN',
+'std classes' => 'Standardklassen',
'stop' => 'Stop',
'stop ovpn server' => 'Stoppe OpenVPN Server',
'stopped' => 'ANGEHALTEN',
'updxlrtr year' => 'einem Jahr',
'upgrade' => 'upgrade',
'uplink speed' => 'Uplink-Geschwindigkeit (kBit/sek)',
+'uplink std class' => 'Uploadstandardklasse',
'upload' => 'Hochladen',
'upload a certificate' => 'Ein Zertifikat hochladen:',
'upload a certificate request' => 'Eine Zertifikatsanfrage hochladen:',
'waiting to synchronize clock' => 'Bitte warten, die Uhr wird synchronisiert',
'warn when traffic reaches' => 'Warnen wenn Traffic x % erreicht',
'warning messages' => 'Warnhinweise',
+'was deleted' => 'wurde gelöscht',
'web hits' => 'Gesamtanzahl der Websites zum ausgewählten Kriterium',
'web proxy' => 'Web-Proxy',
'web proxy configuration' => 'Web-Proxy-Konfiguration',
%tr,
'Act as' => 'Act as:',
+'Add Port Rule' => 'Add port rule',
+'Add Rule' => 'Add Rule',
+'Choose Rule' => 'Choose <u>one</u> of the following rules.',
+'Class' => 'Class',
+'Class was deleted' => 'with potential Subclasses was deleted',
'Client status and controlc' => 'Client status and control:',
'ConnSched action' => 'Action:',
'ConnSched add action' => 'Add action',
'ConnSched time' => 'Time:',
'ConnSched up' => 'Up',
'ConnSched weekdays' => 'Days of the week:',
+'Enter TOS' => 'Activate or Deactivate TOS-Bits <br /> and then press <i>Save</i>.',
'Existing Files' => 'Files in database',
'HDD temperature' => 'HDD temperature',
+'Level7 Protocol' => 'Level7-Protocol',
+'Level7 Rule' => 'Level7-Rule',
'Local VPN IP' => 'Internal Network (GREEN):',
'MTU' => 'MTU Size:',
'Number of IPs for the pie chart' => 'Number of IPs for the pie chart',
'OpenVPN' => 'OpenVPN',
'Pages' => 'Pages',
'Ping' => 'Ping :',
+'Port Rule' => 'Port-Rule',
+'QoS not enabled' => 'QoS is not enabled!',
+'Queuelenght' => 'Queuelenght',
'Remote IP' => 'Remote IP / Hostname (DynDNS):',
'Remote VPN IP' => 'VPN Subnet (e.g. 10.0.10.0/255.255.255.0):',
'Resolv' => 'Resolv-Retry:',
'Scan for Files' => 'Scan for files',
'Scan from Directory' => 'Scan from directory',
+'Subclass' => 'Subclass',
+'TOS Bits' => 'TOS-Bits',
+'TOS Rule' => 'TOS-Rule',
+'Utilization on' => 'Utilization on',
'Verbose' => 'Verbose:',
'WakeOnLan' => 'Wake On LAN',
'a ca certificate with this name already exists' => 'A CA Certificate with this name already exists.',
'add printer' => 'add printer',
'add service' => 'Add service',
'add share' => 'add share',
+'add subclass' => 'add subclass',
'add user' => 'add User',
'add xtaccess' => 'Add External Access',
'add-route' => 'Additional push route',
'bad return code' => 'Helper program returned error code',
'bad source range' => 'The Source port range has a first value that is greater than or equal to the second value.',
'bandwidth usage' => 'bandwidth usage (external)',
+'bandwitherror' => 'You cannot change the bandwithsettings, with Qos being enabled. First disable Qos.<p>',
+'bandwithsettings' => 'Bandwithsettings',
'basic options' => 'Basic Options',
'beep when ppp connects or disconnects' => 'Beep when IPFire connects or disconnects',
'behind a proxy' => 'Behind a proxy:',
'choose media' => 'Choose media',
'cipher' => 'Encryption:',
'city' => 'City',
+'class in use' => 'The class is already in use.',
'clear cache' => 'Clear Cache',
'clear playlist' => 'empty playlist',
'clenabled' => 'Provide time to local network',
'cron server' => 'CRON server',
'current' => 'Current',
'current aliases' => 'Current aliases:',
+'current class' => 'Current class',
'current devices' => 'Current devices',
'current dhcp leases on blue' => 'Current DHCP leases on Blue',
'current dynamic leases' => 'Current dynamic leases',
'dialup settings' => 'Dialup Settings',
'directory mask' => 'UNIX directory rights',
'directory writeable' => 'directory writeable',
+'disabled' => 'disabled',
'disconnect' => 'OVPN Stop / Disconnect',
'disconnects' => 'Disconnects',
'disk access per' => 'Disk Access per',
'domain name suffix' => 'Domain name suffix:',
'domain not set' => 'Domain not set.',
'done' => 'Do it',
+'down and up speed' => 'Enter your Down- and Uplink-Speed <br /> and then press <i>Save</i>.',
'downlink speed' => 'Downlink speed (kbit/sec)',
+'downlink std class' => 'downlink standard class',
'download' => 'download',
'download ca certificate' => 'Download CA Certificate',
'download certificate' => 'Download Certificate',
'encapsulation' => 'Encapsulation',
'encrypted' => 'Encrypted',
'end address' => 'End address:',
+'enter ack class' => 'Enter the ACK- Class <br /> and then press <i>Save</i>.',
+'enter data' => 'Enter your settings <br /> and then press <i>Save</i>.',
'err bk 1' => 'Error creating archive',
'err bk 10 password' => 'Error with Backup Password',
'err bk 2 key' => 'Error creating key file',
'exampel' => 'exampel',
'excluding buffers and cache' => '-/+ buffers/cache',
'expected' => 'Expected',
+'expertoptions' => 'Expert options',
'expires' => 'Expires',
'export' => 'Export',
'exportkey' => 'Export PSK',
'external access rule changed' => 'External access rule changed; restarting access controller',
'external access rule removed' => ' External access rule removed; restarting access controller',
'external aliases configuration' => 'External aliases configuration',
+'false classnumber' => 'The Class-Number does not match the interface.',
+'false max bandwith' => 'Maximum bandwith is false.',
+'false min bandwith' => 'Minimum bandwith is false.',
'february' => 'February',
'fetch ip from' => 'Guess the real public IP with help of an external server',
'filename' => 'Filename',
'graph per' => 'Graph per',
'green' => 'GREEN',
'green interface' => 'Green Interface',
+'guaranteed bandwith' => 'Guaranteed bandwith',
'guest ok' => 'allow guests to access',
'gui settings' => 'GUI Settings',
'gz with key' => 'Only an encrypted archive can be restored on this machine.',
'map to guest' => 'Map to Guest',
'march' => 'March',
'marked' => 'Marked',
+'max bandwith' => 'Maximum bandwith',
'max incoming size' => 'Max incoming size (KB):',
'max lease time' => 'Max lease time (mins):',
'max outgoing size' => 'Max outgoing size (KB):',
+'max reliability' => 'Maximum reliability',
'max renewal time' => 'Maximum Renewal Time',
'max retries not set' => 'Max retries not set.',
'max size' => 'Max object size (KB):',
+'max throughput' => 'Maximum throughput',
'maximal' => 'Maximal',
'maximum retries' => 'Maximum retries:',
'may' => 'May',
'memory information' => 'memory information',
'memory usage per' => 'Memory Usage per',
'method' => 'Method:',
+'min costs' => 'Minimum costs',
+'min delay' => 'Minimum delay',
'min size' => 'Min object size (KB):',
'minimal' => 'Minimal',
'minutes' => 'Minutes',
'mpfire scanning' => 'Scan for new files',
'mpfire songs' => 'MPFire songlist',
'mpfire webradio' => 'MPFire Webradio',
+'mtu QoS' => 'This does not change the global MTU, it only sets MTU for QoS.',
'my new share' => 'My new share',
'name' => 'Name',
'name is invalid' => 'Name is invalid',
'no cfg upload' => 'No data was uploaded',
'no dhcp lease' => 'No DHCP lease has been acquired',
'no eciadsl synch.bin file' => 'No ECI ADSL synch.bin file. Please upload.',
+'no filter pass' => 'Enter the standard class for non-filtered packets.',
'no fritzdsl driver' => 'No Fritz!DSL driver. Please upload.',
'no information available' => 'No information available.',
'no log selected' => 'no log selected',
'pakfire updates' => 'Available Update:',
'pakfire working' => 'Pakfire ist working ... Please wait until everything is done successfull.',
'pap or chap' => 'PAP or CHAP',
+'parentclass' => 'Parentclass',
'password' => 'Password:',
'password contains illegal characters' => 'Password contains illegal characters.',
'password crypting key' => 'Password crypting the key',
'status' => 'Status',
'status information' => 'Status information',
'status ovpn' => '4. OpenVPN Status / Configuration:',
+'std classes' => 'Standardclasses',
'stop' => 'stop',
'stop ovpn server' => 'Stop OpenVPN Server',
'stopped' => 'STOPPED',
'updxlrtr year' => 'one year',
'upgrade' => 'upgrade',
'uplink speed' => 'Uplink speed (kbit/sec)',
+'uplink std class' => 'uplink standard class',
'upload' => 'Upload',
'upload a certificate' => 'Upload a certificate:',
'upload a certificate request' => 'Upload a certificate request:',
'waiting to synchronize clock' => 'Waiting to synchronize clock',
'warn when traffic reaches' => 'Warn when traffic reaches x %',
'warning messages' => 'Warning messages',
+'was deleted' => 'was deleted',
'web hits' => 'Total number of websites matching selected criteria for',
'web proxy' => 'Web proxy',
'web proxy configuration' => 'Web proxy configuration',