]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/connections.cgi
Fix connection.cgi display for strongswan.
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / connections.cgi
index 9cf4f68520fd8742b1aaeb1bb9ef1c1de4c0bfbc..b370d12881ef8bec2bf208c0d64efc013d66e8bb 100644 (file)
@@ -57,7 +57,7 @@ if (open(IP, "${General::swroot}/red/local-ipaddress")) {
         push(@colour, ${Header::colourfw} );
 }
 
-my @vpn = ` route -n | grep ipsec | awk '{ print \$1" "\$3}'`;
+my @vpn = `grep "rightsubnet=" /etc/ipsec.conf | cut -f2 -d"=" | sed "s|/| |g"`;
   foreach my $route (@vpn) {
                 chomp($route);
                 my @temp = split(/[\t ]+/, $route);