Interview Prep/Linux/Networking, SSH and remote access

You need a quick internal HTTP proxy so isolated hosts can download packages. What would you set up?

IntermediateScenarioNetworking, SSH and remote access
Answer

Situation read → Forward proxy with an allowlist.

What I'd do →

  1. Install Squid on a host with internet; in squid.conf:
acl internal src 10.0.0.0/8
acl repos dstdomain .ubuntu.com .rockylinux.org .docker.io
http_access allow internal repos
http_access deny all
http_port 3128
  1. On clients: proxy=http://proxy.internal:3128 in /etc/dnf/dnf.conf or Acquire::http::Proxy "http://proxy.internal:3128"; in apt config.

Why → You control and log egress without giving hosts full internet.

Interview tip → For scale, a local mirror or Artifactory/Nexus proxy repo is better than a generic proxy.

All Linux questions Roadmap: Linux

More on Networking, SSH and remote access