I have just setup Squid as a transparent proxy. I need to figure out how to configure my network to send all clients to it.
My mikrotik is being used as our core router for our ISP.
We accept our internet connection on eth2 and our network is on eth4. All of our servers and clients are on public ips and we have a /21 subnet. Ethernet 1 and 3 are reserved for expansion.
So we need all customers on our network to be redirected to our squid server which is located at 190.3.160.15 and is listening on port 8080. Our customer addresses start at 190.3.161.1 and end at 190.3.167.254.
We are running an RB1000 on 4.5
Any help would be appreciated. I just love Mikrotik!
This makes no sense…do I add the mac address or not? Where does it to forward the traffic to the listening port of 8080…I feel those statements are incomplete or inaccurate.
I dont think you are understanding me…I have squid installed and it is operating…I need to know the proper statement in the mikrotik to route to it. I also dont know whether I need to add the MAC address instead of the ip of the squid server, etc. Also, this doesnt mention anything about sending calls to 8080, which is the port that my squid box is listening on…
well, you can simply setup transparent proxy on RouterOS, and set Parent Proxy of your WebProxy to Squid’s address. but in that case all your users will have address of Squid for any website
The rules Chupaka gave you would route all traffic marked as traffic to be proxied (i.e. all traffic destined to port 80, but not traffic that carries the Squid proxies MAC address as source or destination so that routing loops are prevented) towards the Squid box. The T-Proxy feature on the Squid box would intercept that traffic automatically (you do not need to redirect to port 8080, it would simply inspect all traffic and automagically find it) and proxy it transparently.
what did you mean by this. And you say that there is an adjustment to be done on the squid server. It is currently operational with parent proxy and when i manually input the proxy address on the proxy. Another way is i have have been able to redirect traffic using the hotspot profile by inputting the http-proxy
as below (yyy.yyy.yyy.yyy:8080)
name=“hsprof1” hotspot-address=10.0.0.2 dns-name=“” html-directory=hotspot rate-limit=“”
http-proxy=yyy.yyy.yyy.yyy:8080 smtp-server=0.0.0.0 login-by=mac,cookie,http-chap,https mac-auth-password=“”
http-cookie-lifetime=3d ssl-certificate=none split-user-domain=no use-radius=yes radius-accounting=yes
radius-interim-update=5m nas-port-type=wireless-802.11 radius-default-domain=“” radius-location-id=“”
radius-location-name=“” radius-mac-format=XX:XX:XX:XX:XX:XX