We are trying to clone repository from VPN. For that we install and run openvpn. Connection is established and tunnel is open. After that we expect to access internal address but this fails. We expect the problem is with routing table but canāt access ārouteā on the build machine.
Environment:
Android & Docker, on Ubuntu 18.04
Script version 1.1.5
Reproducibility
_Does a āRebuildā help? NO
_Does a rebuild without caches help? NO
Does the issue happen sporadically, or every time? : Every time
Does upgrading the build Step to the latest version help? : NO
When did the issue start? : When we added vpn connection.
Local reproduction
Locally, we can open VPN and manipulate routing table.
Local reproduction: Linux / Android (docker based) stack builds
But still we canāt establish connection to repo.
Resolving gitlab..com (gitlab..com)... failed: Name or service not known.
wget: unable to resolve host address āgitlab..comā
From the openVPN logs I can see that
Thu Oct 11 07:47:34 2018 /sbin/ip link set dev tun0 up mtu 1500
Thu Oct 11 07:47:34 2018 /sbin/ip addr add dev tun0 local 10.0.201.158 peer 10.0.201.157
Thu Oct 11 07:47:34 2018 /sbin/ip route add 10.0.201.0/25 via 10.0.201.157
Thu Oct 11 07:47:34 2018 /sbin/ip route add 10.0.201.129/32 via 10.0.201.157
Thu Oct 11 07:47:34 2018 Initialization Sequence Completed
which means the tunnel is open.
I believe we need to use new network interface to establish the connection. Unfortunately, I cannot read/modify routing table.