How can I make my clients (host) use my Squid proxy inside Docker container?

I’ve been search in this forum, there isn’t any topic like this… So I decide to create a new topic. So here’s my question.

Example, I have 1 client (IP: and 1 host (IP: If client want to connect to the internet, then in host will be created container which contains squid proxy (I pull form the sameersbn/squid:latest`)

And my syntax to create the container is:

docker run -d -net None --name SQUID_192.168.0.200 -p 9001:3128 -v /home/administrator/container-data:/var/log/squid3

And configuration IP in my client like this:

auto enp0s3
iface enp0s3 inet static

Then I use iptables to forward packet from to the container

iptables -t nat -A PREROUTING -p tcp -i wlp3s0 -s --dport 9001

Here’s my problem:

  1. I don’t know better use -net None or -net Host or something else

  2. I do not know if my way is right or not, to direct the packet form to container name SQUID_192.168.0.200 (I’m tried using port 9001:3128)

  3. I have tried to access internet from the client, I opened and, but it’s not recorded in access.log\

Someone please help me.. this made me go crazy. I've been looking for answers on the internet but no answer