URL filtering HTTPS proxy

Indeed, it might be worth adding both http_proxy and https_proxy too.

I’ll see if it’s possible to add a local firewall rule to redirect all http/https traffic to the proxy port. (this would be useful if you want to proxy everything).

1 Like

Too complicated, im(h)o. Just set all env variables (http_proxy, https_proxy, and all_proxy) to http://127.0.0.1:3128

Yes, but all programs support using a http(s) proxy unfortunately :frowning:

I was just thinking that a systemd unit could monitor the domain list and automatically reload squid upon change :ok_hand: Let’s work on it

1 Like

Podman uses HTTPS_PROXY :woman_facepalming:t3:

1 Like

Hi have not set this up yet. Are you referring to the case sensitivity in this message? If so and you wanted to use this proxy with a container running inside a qube would you alter the environment settings like so to pass the “host” network to the container?

mkdir -p /home/user/.config/environment.d/
cat <<EOF >/home/user/.config/environment.d/proxy.conf
HTTPS_PROXY=http://127.0.0.1:3128/

I’d test it out real quick myself but it sounds like you have experience with it already which might save me some troubleshooting.

Thank you!

Yes

I’m the container, the host’s localhost address is containers.internal from memory. The address would be http://containers.internal:3128/

1 Like

So instead of using podman config files and setting the container settings to host.containers.internal:3128 you would instead set it in proxy.conf file (not podman) to the case sensitive version and use containers.internal:3128 instead of host.containers.internal

Just to clarify, in the scenario I am referring to the container is using the same proxy that the VM uses. The contianer doesn’t need it’s own right? Is that even possible?
Also, I’m assuming you are referring to rootless podman in this scenario as well.

This is what you use within the container to use the proxy. I did not remember the hostname correctly in my post.

This is different than podman configuration file or environment variable for podman operations external to the container runtime, like fetching a container image.