To use the puppet module command behind a proxy, set the proxy's IP address and port by running the following two commands:
export http_proxy=http://<PROXY IP>:<PROXY PORT>
export https_proxy=http://<PROXY IP>:<PROXY PORT>
For instance, for an proxy at 192.168.0.10 on port 8080, run:
Alternatively, you can set these two proxy settings in the puppet.conf file, by setting http_proxy_host and http_proxy_port in the user section of puppet.conf.
For more information, see https://puppet.com/docs/puppet/6.7/modules_installing.html