eole-redis/diagnose/70_stunnel

23 lines
685 B
Bash

#!/bin/bash
if [ $(CreoleGet activer_stunnel) = "oui" ];then
if [ $(CreoleGet stunnel_add_tunnels non ) = "oui" ];then
. /usr/lib/eole/diagnose.sh
EchoGras "*** Service Stunnel"
name=($(CreoleGet stunnel_name))
acc_ip=($(CreoleGet stunnel_accept_ip))
acc_port=($(CreoleGet stunnel_accept_port))
conn_ip=($(CreoleGet stunnel_connect_ip))
conn_port=($(CreoleGet stunnel_connect_port))
len=${#name[@]}
for (( i=0; i<$len; i++ ))
do
TestService "Tunnel ${name[$i]}: ${acc_ip}:${acc_port} => ${conn_ip}:${conn_port}" ${acc_ip}:${acc_port}
done
echo
fi
fi
exit 0