Change source of ipsec setting of connections.cgi.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 13 Jun 2010 13:31:14 +0000 (15:31 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 13 Jun 2010 13:31:14 +0000 (15:31 +0200)
fixes bug #0000637

html/cgi-bin/connections.cgi

index b370d12..7b53c00 100644 (file)
@@ -57,7 +57,7 @@ if (open(IP, "${General::swroot}/red/local-ipaddress")) {
         push(@colour, ${Header::colourfw} );
 }
 
-my @vpn = `grep "rightsubnet=" /etc/ipsec.conf | cut -f2 -d"=" | sed "s|/| |g"`;
+my @vpn = `/usr/local/bin/ipsecctrl I|grep erouted|cut -d"]" -f3|cut -d"=" -f4|cut -d";" -f1| sed "s|/| |g"`;
   foreach my $route (@vpn) {
                 chomp($route);
                 my @temp = split(/[\t ]+/, $route);