Proxy Everything Except Internal Hosts
On this build machine, all traffic to the internet must go through the proxy at http://127.0.0.1:3128. Internal services (api.corp.test, git.corp.test, and anything else under corp.test), the machine itself and the internal range 10.0.0.0/8 must be reached directly: the proxy can't see them.
Start the test services with /srv/lab/bin/start-proxy-lab. The proxy answers every request it gets with via-proxy …; the internal services answer direct ….
Create /home/student/proxy.env, which the CI jobs load with set -a; . /home/student/proxy.env, so that:
http_proxy, https_proxy, HTTP_PROXY and HTTPS_PROXY all point to http://127.0.0.1:3128 (tools differ in which spelling they read),no_proxy and NO_PROXY hold the same list, covering localhost, 127.0.0.1, every host under corp.test and 10.0.0.0/8,corp.test.evil.test.About this machine
Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.
Teaching or writing about this? Embed this lab on your page
Your machine is ready to start
A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.
No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.