X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Fconnections.cgi;h=7b53c009ec7e189161969a2b9a3bed24e5cc86e2;hp=9cf4f68520fd8742b1aaeb1bb9ef1c1de4c0bfbc;hb=f370c68ce3e5b4abf3efaa0a3a3d48269c28ed61;hpb=f65b2fb8b654fa0d5369a11a980b01bdc6aeed56 diff --git a/html/cgi-bin/connections.cgi b/html/cgi-bin/connections.cgi index 9cf4f68520..7b53c009ec 100644 --- a/html/cgi-bin/connections.cgi +++ b/html/cgi-bin/connections.cgi @@ -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 = `/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);