Mikrotik+Squid parent proxy

I want to do the below configuration (attached)
Sqid proxy to serve like parent proxy for mikrotik web proxy.
Pls, I need help doing that. Any presentation or tutorial regarding this config will help me to much.

Thank you in advance.
Topology.jpg

check the wiki it should guide you

Funny, I also wanted to do this same config… Just finished a few days ago. Here’s what I learned:

Mikrotik:

/ip proxy
set always-from-cache=no cache-administrator="" cache-hit-dscp=4 \
    cache-on-disk=no enabled=yes max-cache-size=none max-client-connections=\
    600 max-fresh-time=3d max-server-connections=600 parent-proxy=10.1.0.100 \
    parent-proxy-port=3128 port=8080 serialize-connections=no src-address=\
    0.0.0.0

/ip firewall nat
add action=accept chain=dstnat comment="" disabled=no dst-address=\
    !10.1.0.100 protocol=tcp src-address=10.1.0.100
add action=redirect chain=dstnat comment="" disabled=no dst-port=80 \
    protocol=tcp to-ports=8080

10.1.0.100 is the ip of my Squid Server, change it for your needs.

Linux:
I used Debian/Ubuntu ( http://www.debian.org or http://www.ubuntu.com ) and Webmin to help me configure Squid ( http://www.webmin.com )

Hope this helps, still learning Mikrotik and Linux myself.

Pls, may you help me with some other informations regarding that config?
Like:
-the ip of squid is the same range, physical port with other clients?
-route to/from squid.

thank you for your help.

Best regards!

I’ll try

-the ip of squid is the same range, physical port with other clients?

My network is 10.0.0.0/8 ,so (I think) yes it is in the same range as all clients on my network.
At the moment the squid server is on its own port on my RB450G, but could be on any port as I set it up on a port connected to a switch with other devices. The server has one gigabit adapter in it and is configured as a dhcp client, with the router giving it a static IP.


-route to/from squid.

I’m not sure what you mean here. Routes on the router are just defaults needed for WAN/LAN. Physical route is just one ethernet cabe to/from server and router. This is why I chose gigabit, I figured it would be fast enough as my internet connection is only 20 megabit.

Hope this helps.

OK. Thank you. I resolved it.

Best regards

So this config worked for you? Did you use same/similar setup config? Any tweeks you found helpful? As I said I’m still learning RouterOS and Linux myself so I’m curious.

Hello.

No, in RouterOS no. Only some changes on Squid config and on file system of linuxOS for best performance.
If you need them I will list them.

BR

Hello, thanks to the contributions made in this thread I could configure squid as webproxy mikrotik parents. Sarg for Squid also configured but reports only show me the data traffic generated by the Mikrotik. Anyone know I have to modify in squid.conf to show me the IP addresses of computers that browse through the proxy?
thank you very much

it will show the Mikrotik ip as that is what pushes traffic to the squid, it is the mikrotik that is making the request and not the computers

Hi gmidia, thanks for your answer, there is the possibility to store the original ip Sarg with this scenario?

Thanks

Hello gmidia, I understand what you say, but when I access whatismyip.com ip shows me the source along with the two proxies. Is there any way that I store the Squid source IP to view the records on Sarg?