| $Lang::tr{'lan'}:
| $netsettings{'GREEN_ADDRESS'}
|
END
@@ -154,7 +147,7 @@ END
} else { print "Proxy aus"; }
}
if ( $netsettings{'BLUE_DEV'} ) { print <$Lang::tr{'wireless'}:
+ | $Lang::tr{'wireless'}:
| $netsettings{'BLUE_ADDRESS'}
|
END
@@ -164,7 +157,7 @@ END
} else { print "Proxy aus"; }
}
if ( $netsettings{'ORANGE_DEV'} ) { print <$Lang::tr{'dmz'}:
+ | $Lang::tr{'dmz'}:
| $netsettings{'ORANGE_ADDRESS'}
| Online
END
@@ -172,18 +165,44 @@ END
if ( `cat /var/ipfire/vpn/settings | grep ^ENABLED=on` ||
`cat /var/ipfire/vpn/settings | grep ^ENABLED_BLUE=on` ) {
my $ipsecip = `cat /var/ipfire/vpn/settings | grep ^VPN_IP= | cut -c 8-`;
+ my @status = `/usr/sbin/ipsec auto --status`;
+ my %confighash = ();
+ &General::readhasharray("${General::swroot}/vpn/config", \%confighash);
print <$Lang::tr{'vpn'}:
+ | $Lang::tr{'vpn'}:
| $ipsecip
| Online
END
+ my $id = 0;
+ my $gif;
+ foreach my $key (keys %confighash) {
+ if ($confighash{$key}[0] eq 'on') { $gif = 'on.gif'; } else { $gif = 'off.gif'; }
+
+ if ($id % 2) {
+ print " | \n";
+ } else {
+ print " \n";
+ }
+ print "| | $confighash{$key}[1] / " . $Lang::tr{"$confighash{$key}[3]"} . " (" . $Lang::tr{"$confighash{$key}[4]"} . ") | ";
+ my $active = "";
+ if ($confighash{$key}[0] eq 'off') {
+ $active = "";
+ } else {
+ foreach my $line (@status) {
+ if ($line =~ /\"$confighash{$key}[1]\".*IPsec SA established/) {
+ $active = "";
+ }
+ }
+ }
+ print "$active | ";
+ }
}
if ( `cat /var/ipfire/ovpn/settings | grep ^ENABLED=on` ||
`cat /var/ipfire/ovpn/settings | grep ^ENABLED_BLUE=on` ||
`cat /var/ipfire/ovpn/settings | grep ^ENABLED_ORANGE=on`) {
my $ovpnip = `cat /var/ipfire/ovpn/settings | grep ^DOVPN_SUBNET= | cut -c 14- | sed -e 's\/\\/255.255.255.0\/\/'`;
print <OpenVPN:
+ | OpenVPN:
| $ovpnip
| Online
END
diff --git a/html/cgi-bin/netstatus.cgi b/html/cgi-bin/netstatus.cgi
index bde5bf2a7..670a14dd7 100644
--- a/html/cgi-bin/netstatus.cgi
+++ b/html/cgi-bin/netstatus.cgi
@@ -6,8 +6,6 @@
#
# (c) The SmoothWall Team
#
-# $Id: netstatus.cgi,v 1.9.2.20 2005/11/05 15:46:25 gespinasse Exp $
-#
use strict;
@@ -33,23 +31,6 @@ my $output='';
&Header::openbigbox('100%', 'left');
-print "\n";
-
-print "\n";
&Header::openbox('100%', 'left', $Lang::tr{'interfaces'});
$output = `/sbin/ifconfig`;
$output = &Header::cleanhtml($output,"y");
@@ -203,14 +184,12 @@ if ($pppsettings{'TYPE'} eq 'eagleusbadsl') {
}
-print "\n";
&Header::openbox('100%', 'left', $Lang::tr{'routing table entries'});
$output = `/sbin/route -n`;
$output = &Header::cleanhtml($output,"y");
print "$output \n";
&Header::closebox();
-print "\n";
&Header::openbox('100%', 'left', $Lang::tr{'arp table entries'});
$output = `/sbin/arp -n`;
$output = &Header::cleanhtml($output,"y");
diff --git a/html/cgi-bin/status.cgi b/html/cgi-bin/status.cgi
index 45e16a4d6..b25f6f8df 100644
--- a/html/cgi-bin/status.cgi
+++ b/html/cgi-bin/status.cgi
@@ -68,20 +68,6 @@ if ($netsettings{'BLUE_DEV'} ne '') {
&Header::openbigbox('100%', 'left');
-print <
-|
- $Lang::tr{'services'} |
- $Lang::tr{'memory'} |
- $Lang::tr{'disk usage'} |
- $Lang::tr{'uptime and users'} |
- $Lang::tr{'loaded modules'} |
- $Lang::tr{'kernel version'}
- |
-END
-;
-
-print "\n";
&Header::openbox('100%', 'left', $Lang::tr{'services'});
print <\n";
&Header::closebox();
-print "\n";
&Header::openbox('100%', 'left', $Lang::tr{'memory'});
print "";
my $ram=0;
@@ -194,7 +179,6 @@ END
;
&Header::closebox();
-print "\n";
&Header::openbox('100%', 'left', $Lang::tr{'disk usage'});
print "\n";
open(DF,'/bin/df -B M -x rootfs|');
@@ -240,21 +224,18 @@ close DF;
print " \n";
&Header::closebox();
-print "\n";
&Header::openbox('100%', 'left', $Lang::tr{'uptime and users'});
my $output = `/usr/bin/w`;
$output = &Header::cleanhtml($output,"y");
print "$output \n";
&Header::closebox();
-print "\n";
&Header::openbox('100%', 'left', $Lang::tr{'loaded modules'});
$output = qx+/bin/lsmod+;
($output = &Header::cleanhtml($output,"y")) =~ s/\[.*\]//g;
print "\n$output\n \n";
&Header::closebox();
-print "\n";
&Header::openbox('100%', 'left', $Lang::tr{'kernel version'});
print "\n";
print `/bin/uname -a`;
diff --git a/html/cgi-bin/wakeonlan.cgi b/html/cgi-bin/wakeonlan.cgi
index 9f9c31655..da6bfe3bc 100644
--- a/html/cgi-bin/wakeonlan.cgi
+++ b/html/cgi-bin/wakeonlan.cgi
@@ -155,7 +155,7 @@ if ( $cgiparams{'ACTION'} eq 'wakeup' )
undef %cgiparams;
- system("/usr/local/sbin/launch-ether-wake $mac $iface");
+ system("/usr/local/bin/launch-ether-wake $mac $iface");
# make a box with info, 'refresh' to normal screen after 5 seconds
if ( $refresh eq 'yes' )
diff --git a/html/html/themes/ipfire/include/functions.pl b/html/html/themes/ipfire/include/functions.pl
index 3feaba07c..8a9b5d1ac 100644
--- a/html/html/themes/ipfire/include/functions.pl
+++ b/html/html/themes/ipfire/include/functions.pl
@@ -174,7 +174,7 @@ END
;
&showmenu();
-print <
@@ -284,7 +284,8 @@ END
Status: $status Uptime:$uptime Version: $FIREBUILD
- |
| | | |