Hi,
I’m trying to connect to a VPN (due to IP whitelisting requirements of our test server). I couldn’t see a way to get the certificates required for the Bitrise VPN workflow step so instead I’ve modified the bash script for that step to accept the details I do have and used them in a “Script” workflow step.
However, when the step executes the Bitrise bot hangs/loses connection when it’s connecting to the VPN (I suspect it’s possibly successful in connecting to the VPN but that this action breaks the bot somehow?).
The Script step I’m using is:
`
sudo openvpn --client --dev tun --config test.ovpn --auth-user-pass password.txt --resolv-retry infinite --nobind --persist-key --persist-tun --comp-lzo --verb 3 > /dev/null 2>&1 &
sleep 5
if ifconfig -l | grep utun0 > /dev/null
then
echo “VPN connection succeeded”
else
echo “VPN connection failed!”
exit 1
fi
`
If I run the openvpn command locally it successfully connects to the VPN.
Any ideas what I’m doing wrong?