Re: Running squid in a network namespace

Robert 'Bobby' Zenz <[email protected]> Sun, 4 Jan 2026 16:21:31 +0100
Newsgroups gmane.comp.web.squid.general
Message-ID <20260104162131.78f82e33@Dagon>
> I'd like to run squid inside this network namespace.

Can you show the service file you're using for Squid?

> But if I do the same with the systemd unit of squid, it doesn't work.
> The proxy process still runs within the standard namespace (if I curl
> using the proxy, the IP is the one of the standard namespace)

Could it be that you're editing the wrong file (`etc/systemd/system`
versus `/usr/share/lib/systemd/system` (I think...))? Or not reloading
the systemd-daemon? What does `systemctl show squid` and `systemctl cat
squid` show as configuration?