X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Findex.cgi;h=0ef95ba8ca26c83d6f203736793b3ee7c3b17af5;hp=eec3f9bf361f6a1d463c4e616e16e504c05b3f0a;hb=44f8687ba29b06b012a01c36abe51ffdba27287d;hpb=57ba1e9023b0f1f3499cc888f66827a81574bb41 diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi index eec3f9bf3..0ef95ba8c 100644 --- a/html/cgi-bin/index.cgi +++ b/html/cgi-bin/index.cgi @@ -370,7 +370,7 @@ END } else { foreach my $line (@status) { if (($line =~ /\"$confighash{$key}[1]\".*IPsec SA established/) || - ($line =~/ $confighash{$key}[1]\{.*INSTALLED/ )) + ($line =~/$confighash{$key}[1]\{.*INSTALLED/ )) { $active = "
$Lang::tr{'capsopen'}
"; } @@ -390,6 +390,25 @@ END END } +### +# m.a.d n2n +### + +if ( -d "${General::swroot}/ovpn/n2nconf") { +my %confighash=(); +&General::readhasharray("${General::swroot}/ovpn/ovpnconfig", \%confighash); +foreach my $dkey (keys %confighash) { +if ($confighash{$dkey}[0] eq 'on' && $confighash{$dkey}[3] eq 'net') { +my @n2novpnet = split(/\//,$confighash{$dkey}[27]); + print <OpenVPN n2n
+ $n2novpnet[0] + $confighash{$dkey}[6] +END +} +} + } + # Fireinfo if ( ! -e "/var/ipfire/main/send_profile") { $warnmessage .= "
  • $Lang::tr{'fireinfo please enable'}
  • ";