diff --git a/config/cfgroot/header.pl b/config/cfgroot/header.pl index 3fd3a523e..3cabb1f19 100644 --- a/config/cfgroot/header.pl +++ b/config/cfgroot/header.pl @@ -32,6 +32,7 @@ $Header::colourorange = '#FF9933'; $Header::colouryellow = '#FFFF00'; $Header::colourgreen = '#339933'; $Header::colourblue = '#333399'; +$Header::colourovpn = '#339999'; $Header::colourfw = '#000000'; $Header::colourvpn = '#990099'; $Header::colourerr = '#FF0000'; @@ -117,53 +118,41 @@ sub genmenu { my $subsystem = \%subsystemhash; $subsystem->{'01.home'} = { - 'caption' => $tr{'alt home'}, - 'uri' => '/cgi-bin/index.cgi', - 'title' => "$tr{'alt home'}", - 'enabled' => 1, - }; - $subsystem->{'02.netwizard'} = { - 'caption' => $tr{'network configuration'}, - 'uri' => '/cgi-bin/netwizard.cgi', - 'title' => "$tr{'network configuration'}", - 'enabled' => 1, - }; - $subsystem->{'03.passwords'} = { - 'caption' => $tr{'sspasswords'}, - 'uri' => '/cgi-bin/changepw.cgi', - 'title' => "$tr{'sspasswords'}", - 'enabled' => 1, - }; - $subsystem->{'04.ssh'} = { - 'caption' => $tr{'ssh access'}, - 'uri' => '/cgi-bin/remote.cgi', - 'title' => "$tr{'ssh access'}", - 'enabled' => 1, - }; - $subsystem->{'05.gui'} = { - 'caption' => $tr{'gui settings'}, - 'uri' => '/cgi-bin/gui.cgi', - 'title' => "$tr{'gui settings'}", - 'enabled' => 1, - }; - $subsystem->{'06.backup'} = { - 'caption' => $tr{'backup'}, - 'uri' => '/cgi-bin/backup.cgi', - 'title' => "$tr{'backup'} / $tr{'restore'}", - 'enabled' => 0, + 'caption' => $tr{'alt home'}, + 'uri' => '/cgi-bin/index.cgi', + 'title' => "$tr{'alt home'}", + 'enabled' => 1, + }; + $subsystem->{'02.passwords'} = { + 'caption' => $tr{'sspasswords'}, + 'uri' => '/cgi-bin/changepw.cgi', + 'title' => "$tr{'sspasswords'}", + 'enabled' => 1, + }; + $subsystem->{'03.ssh'} = { + 'caption' => $tr{'ssh access'}, + 'uri' => '/cgi-bin/remote.cgi', + 'title' => "$tr{'ssh access'}", + 'enabled' => 1, + }; + $subsystem->{'04.gui'} = { + 'caption' => $tr{'gui settings'}, + 'uri' => '/cgi-bin/gui.cgi', + 'title' => "$tr{'gui settings'}", + 'enabled' => 1, + }; + $subsystem->{'05.shutdown'} = { + 'caption' => $tr{'shutdown'}, + 'uri' => '/cgi-bin/shutdown.cgi', + 'title' => "$tr{'shutdown'} / $tr{'reboot'}", + 'enabled' => 1, + }; + $subsystem->{'99.credits'} = { + 'caption' => $tr{'credits'}, + 'uri' => '/cgi-bin/credits.cgi', + 'title' => "$tr{'credits'}", + 'enabled' => 1, }; - $subsystem->{'07.shutdown'} = { - 'caption' => $tr{'shutdown'}, - 'uri' => '/cgi-bin/shutdown.cgi', - 'title' => "$tr{'shutdown'} / $tr{'reboot'}", - 'enabled' => 1, - }; - $subsystem->{'08.credits'} = { - 'caption' => $tr{'credits'}, - 'uri' => '/cgi-bin/credits.cgi', - 'title' => "$tr{'credits'}", - 'enabled' => 1, - }; my %substatushash = (); my $substatus = \%substatushash; @@ -174,43 +163,43 @@ sub genmenu { 'enabled' => 1, }; $substatus->{'02.networkstatus'} = { - 'caption' => $tr{'ssnetwork status'}, - 'uri' => '/cgi-bin/netstatus.cgi', - 'title' => "$tr{'network status information'}", - 'enabled' => 1, - }; + 'caption' => $tr{'ssnetwork status'}, + 'uri' => '/cgi-bin/netstatus.cgi', + 'title' => "$tr{'network status information'}", + 'enabled' => 1, + }; $substatus->{'03.systemgraphs'} = { - 'caption' => $tr{'system graphs'}, - 'uri' => '/cgi-bin/graphs.cgi', - 'novars' => 1, - 'title' => "$tr{'system graphs'}", - 'enabled' => 1, - }; + 'caption' => $tr{'system graphs'}, + 'uri' => '/cgi-bin/graphs.cgi', + 'novars' => 1, + 'title' => "$tr{'system graphs'}", + 'enabled' => 1, + }; $substatus->{'04.trafficgraphs'} = { - 'caption' => $tr{'sstraffic graphs'}, - 'uri' => '/cgi-bin/graphs.cgi', - 'vars' => 'graph=network', - 'title' => "$tr{'network traffic graphs'}", - 'enabled' => 1, - }; + 'caption' => $tr{'sstraffic graphs'}, + 'uri' => '/cgi-bin/graphs.cgi', + 'vars' => 'graph=network', + 'title' => "$tr{'network traffic graphs'}", + 'enabled' => 1, + }; $substatus->{'05.proxygraphs'} = { - 'caption' => $tr{'ssproxy graphs'}, - 'uri' => '/cgi-bin/proxygraphs.cgi', - 'title' => "$tr{'proxy access graphs'}", - 'enabled' => 1, - }; + 'caption' => $tr{'ssproxy graphs'}, + 'uri' => '/cgi-bin/proxygraphs.cgi', + 'title' => "$tr{'proxy access graphs'}", + 'enabled' => 1, + }; $substatus->{'06.connections'} = { - 'caption' => $tr{'connections'}, - 'uri' => '/cgi-bin/connections.cgi', - 'title' => "$tr{'connections'}", - 'enabled' => 1, - }; + 'caption' => $tr{'connections'}, + 'uri' => '/cgi-bin/connections.cgi', + 'title' => "$tr{'connections'}", + 'enabled' => 1, + }; $substatus->{'99.iptfilters'} = { - 'caption' => $tr{'iptfilters iptable rules'}, - 'uri' => '/cgi-bin/iptfilters.cgi', - 'title' => "$tr{'iptfilters iptable rules'}", - 'enabled' => 1, - }; + 'caption' => $tr{'iptfilters iptable rules'}, + 'uri' => '/cgi-bin/iptfilters.cgi', + 'title' => "$tr{'iptfilters iptable rules'}", + 'enabled' => 1, + }; my %subnetworkhash = (); my $subnetwork = \%subnetworkhash; @@ -219,7 +208,7 @@ sub genmenu { 'caption' => $tr{'alt dialup'}, 'uri' => '/cgi-bin/pppsetup.cgi', 'title' => "$tr{'dialup settings'}", - 'enabled' => 0, + 'enabled' => 1, }; $subnetwork->{'02.hosts'} = { 'caption' => $tr{'edit hosts'}, @@ -268,36 +257,31 @@ sub genmenu { my %subserviceshash = (); my $subservices = \%subserviceshash; - $subservices->{'01.proxy'} = { - 'caption' => $tr{'proxy'}, + $subservices->{'01.proxy'} = {'caption' => $tr{'proxy'}, 'uri' => '/cgi-bin/proxy.cgi', 'title' => "HTTP: $tr{'web proxy configuration'}", 'enabled' => 1, }; - $subservices->{'02.dhcp'} = { - 'caption' => $tr{'dhcp server'}, + $subservices->{'02.dhcp'} = {'caption' => $tr{'dhcp server'}, 'uri' => '/cgi-bin/dhcp.cgi', 'title' => "$tr{'dhcp configuration'}", 'enabled' => 1, }; - $subservices->{'03.dyndns'} = { - 'caption' => $tr{'dynamic dns'}, - 'uri' => '/cgi-bin/ddns.cgi', - 'title' => "$tr{'dynamic dns client'}", - 'enabled' => 1, - }; - $subservices->{'04.time'} = { - 'caption' => $tr{'time server'}, - 'uri' => '/cgi-bin/time.cgi', - 'title' => "$tr{'time server'}", - 'enabled' => 1, - }; - $subservices->{'05.qos'} = { - 'caption' => 'Quality of Service', - 'uri' => '/cgi-bin/qos.cgi', - 'title' => "$tr{'traffic shaping settings'}", - 'enabled' => 1, - }; + $subservices->{'03.dyndns'} = {'caption' => $tr{'dynamic dns'}, + 'uri' => '/cgi-bin/ddns.cgi', + 'title' => "$tr{'dynamic dns client'}", + 'enabled' => 1, + }; + $subservices->{'04.time'} = {'caption' => $tr{'time server'}, + 'uri' => '/cgi-bin/time.cgi', + 'title' => "$tr{'time server'}", + 'enabled' => 1, + }; + $subservices->{'05.qos'} = {'caption' => 'Quality of Service', + 'uri' => '/cgi-bin/qos.cgi', + 'title' => "$tr{'traffic shaping settings'}", + 'enabled' => 1, + }; $subservices->{'06.ids'} = {'caption' => $tr{'intrusion detection'}, 'enabled' => 1, 'uri' => '/cgi-bin/ids.cgi', @@ -328,13 +312,12 @@ sub genmenu { 'enabled' => 1, }; $subfirewall->{'04.outgoing'} = { - 'caption' => $tr{'outgoing firewall'}, - 'uri' => '/cgi-bin/outgoingfw.cgi', - 'title' => "$tr{'outgoing firewall'}", - 'enabled' => 1, - }; + 'caption' => $tr{'outgoing firewall'}, + 'uri' => '/cgi-bin/outgoingfw.cgi', + 'title' => "$tr{'outgoing firewall'}", + 'enabled' => 1, + }; - my %sublogshash = (); my $sublogs = \%sublogshash; @@ -359,36 +342,31 @@ sub genmenu { 'enabled' => 1 }; $sublogs->{'05.ids'} = {'caption' => $tr{'ids logs'}, - 'uri' => '/cgi-bin/logs.cgi/ids.dat', - 'title' => "$tr{'intrusion detection system log viewer'}", - 'enabled' => 1 - }; - $sublogs->{'06.contentfilter'} = {'caption' => $tr{'content filter logs'}, - 'uri' => '/cgi-bin/logs.cgi/dansguardian.dat', - 'title' => "$tr{'content filter log viewer'}", - 'enabled' => 1 - }; + 'uri' => '/cgi-bin/logs.cgi/ids.dat', + 'title' => "$tr{'intrusion detection system log viewer'}", + 'enabled' => 1 + }; $sublogs->{'07.urlfilter'} = { - 'caption' => $tr{'urlfilter log'}, - 'uri' => '/cgi-bin/logs.cgi/urlfilter.dat', - 'title' => "$tr{'urlfilter log'}", - 'enabled' => 1, - }; + 'caption' => $tr{'urlfilter log'}, + 'uri' => '/cgi-bin/logs.cgi/urlfilter.dat', + 'title' => "$tr{'urlfilter log'}", + 'enabled' => 1, + }; $sublogs->{'08.openvpn'} = {'caption' => $tr{'openvpn log'}, - 'uri' => '/cgi-bin/logs.cgi/openvpn.dat', - 'title' => "$tr{'openvpn log'}", - 'enabled' => 1 - }; + 'uri' => '/cgi-bin/logs.cgi/openvpn.dat', + 'title' => "$tr{'openvpn log'}", + 'enabled' => 1 + }; $sublogs->{'09.system'} = {'caption' => $tr{'system logs'}, - 'uri' => '/cgi-bin/logs.cgi/log.dat', - 'title' => "$tr{'system log viewer'}", - 'enabled' => 1 - }; + 'uri' => '/cgi-bin/logs.cgi/log.dat', + 'title' => "$tr{'system log viewer'}", + 'enabled' => 1 + }; $sublogs->{'10.userlog'} = {'caption' => $tr{'user proxy logs'}, - 'uri' => '/cgi-bin/logs.cgi/userlog.dat', - 'title' => "$tr{'user log viewer'}", - 'enabled' => 1 - }; + 'uri' => '/cgi-bin/logs.cgi/userlog.dat', + 'title' => "$tr{'user log viewer'}", + 'enabled' => 1 + }; my %subipfirehash = (); my $subipfire = \%subipfirehash; @@ -416,46 +394,41 @@ sub genmenu { $menu->{'01.system'} = {'caption' => $tr{'alt system'}, - 'enabled' => 1, - 'subMenu' => $subsystem - }; + 'enabled' => 1, + 'subMenu' => $subsystem + }; $menu->{'02.status'} = {'caption' => $tr{'status'}, - 'enabled' => 1, - 'subMenu' => $substatus - }; + 'enabled' => 1, + 'subMenu' => $substatus + }; $menu->{'03.network'} = {'caption' => $tr{'network'}, - 'enabled' => 1, - 'subMenu' => $subnetwork - }; + 'enabled' => 1, + 'subMenu' => $subnetwork + }; $menu->{'04.services'} = {'caption' => $tr{'alt services'}, - 'enabled' => 1, - 'subMenu' => $subservices - }; + 'enabled' => 1, + 'subMenu' => $subservices + }; $menu->{'05.firewall'} = {'caption' => $tr{'firewall'}, - 'enabled' => 1, - 'subMenu' => $subfirewall - }; + 'enabled' => 1, + 'subMenu' => $subfirewall + }; $menu->{'06.proxy'} = {'caption' => $tr{'alt proxy'}, - 'enabled' => 1, - 'subMenu' => $subproxy - }; + 'enabled' => 1, + 'subMenu' => $subproxy + }; $menu->{'07.ipfire'} = {'caption' => 'IPFire', - 'enabled' => 1, - 'subMenu' => $subvpn - }; + 'enabled' => 1, + 'subMenu' => $subipfire + }; $menu->{'08.logs'} = {'caption' => $tr{'alt logs'}, - 'enabled' => 1, - 'subMenu' => $sublogs - }; + 'enabled' => 1, + 'subMenu' => $sublogs + }; if (! blue_used() && ! orange_used()) { $menu->{'05.firewall'}{'subMenu'}->{'03.dmz'}{'enabled'} = 0; } - if (-e '/etc/FLASH') { - $menu{'06.proxy'}{'subMenu'}->{'01.http'}{'subMenu'}->{'01.proxy'}{'enabled'} = 0; #disable squid - $menu{'04.services'}{'subMenu'}->{'05.ids'}{'enabled'} = 0; #disable ids - $menu{'08.logs'}{'subMenu'}->{'05.ids'}{'enabled'} = 0; #disable ids - } } sub showhttpheaders diff --git a/doc/packages-list.txt b/doc/packages-list.txt index 1e2e3c2aa..c9799f6e3 100644 --- a/doc/packages-list.txt +++ b/doc/packages-list.txt @@ -172,7 +172,6 @@ * popt-1.7 * portmap_5beta * postfix-2.2.10 - * postfix-2.2.9 * ppp-2.4.2 * pptp-1.6.0 * procinfo-18 @@ -196,7 +195,6 @@ * spandsp-0.0.2pre25 * speedtouch-1.2 * squid-2.5.STABLE13 - * squid-2.5.STABLE13_1st * squid-graph-3.1 * startscripts * stund_0.96_Aug13 diff --git a/html/cgi-bin/connections.cgi b/html/cgi-bin/connections.cgi index ed1d117ae..9a0f2ac98 100644 --- a/html/cgi-bin/connections.cgi +++ b/html/cgi-bin/connections.cgi @@ -84,8 +84,6 @@ if (-e "${General::swroot}/ovpn/settings") { push(@network, $tempovpnsubnet[0]); push(@masklen, $tempovpnsubnet[1]); push(@colour, ${Header::colourovpn} ); - push(@ports, '0' ); - push(@protocols, '' ); if ( ($ovpnsettings{'ENABLED'} eq 'on') && open(IP, "${General::swroot}/red/local-ipaddress") ) { # add RED:port / proto @@ -95,24 +93,18 @@ if (-e "${General::swroot}/ovpn/settings") { push(@network, $redip ); push(@masklen, '255.255.255.255' ); push(@colour, ${Header::colourovpn} ); - push(@ports, $ovpnsettings{'DDEST_PORT'} ); - push(@protocols, $ovpnsettings{'DPROTOCOL'} ); } if ( ($ovpnsettings{'ENABLED_BLUE'} eq 'on') && $netsettings{'BLUE_DEV'} ) { # add BLUE:port / proto push(@network, $netsettings{'BLUE_ADDRESS'} ); push(@masklen, '255.255.255.255' ); push(@colour, ${Header::colourovpn} ); - push(@ports, $ovpnsettings{'DDEST_PORT'} ); - push(@protocols, $ovpnsettings{'DPROTOCOL'} ); } if ( ($ovpnsettings{'ENABLED_ORANGE'} eq 'on') && $netsettings{'ORANGE_DEV'} ) { # add ORANGE:port / proto push(@network, $netsettings{'ORANGE_ADDRESS'} ); push(@masklen, '255.255.255.255' ); push(@colour, ${Header::colourovpn} ); - push(@ports, $ovpnsettings{'DDEST_PORT'} ); - push(@protocols, $ovpnsettings{'DPROTOCOL'} ); } } diff --git a/html/cgi-bin/proxy.cgi b/html/cgi-bin/proxy.cgi index 73fbc392b..81b6ad12e 100644 --- a/html/cgi-bin/proxy.cgi +++ b/html/cgi-bin/proxy.cgi @@ -803,18 +803,6 @@ if ($errormessage) { &Header::closebox(); } -if (($advproxyversion lt $latest) && (-e $sysupdflagfile)) { unlink($sysupdflagfile); } - -if (!-e $sysupdflagfile) { - &Header::openbox('100%', 'left', $Lang::tr{'advproxy update notification'}); - print "
| $Lang::tr{'advproxy update information'} | "; - print "