I want to call ssh via GitLab and push changes, I already have a working structure but I want to add my server to VPN server and only accessible from VPN server IP Address
Do you have something to add?
I have added this
- which openvpn || (apt-get update -y -qq && apt-get install -y -qq openvpn)
- cat <<< $GITLAB_PUSH_OPENVPN > /etc/openvpn/client.conf
- cat <<< "log /etc/openvpn/client.log" >> /etc/openvpn/client.conf
- echo "I'm going to start OPENVPN connection. Please wait. Timeout 30s."
- openvpn --config /etc/openvpn/client.conf --daemon
- sleep 30s
- echo "Giving some info after daemon is getting started."
- cat /etc/openvpn/client.log
- ping -c 1 1.1.1.1
- echo "Importing VPN has been successful."
I have the $GITLAB_PUSH_OPENVPN (openvpn client .opvn config) variable with enabled gateway redirect for allowing to connect to the internet
I got a successful connection, but then no access to the internet, and can't access my server. I have tried the same file for my windows OpenVPN connect client, I don't have any issues.
Regards