Page 1 of 1

Squid Cache server with MikroTik

Posted: Fri Jun 01, 2007 1:30 am
by RedHat
What is the configuration in mikrotik if i using Squid cache server in saperated box in RedHat and connected to MikroTik in DHCP server , what is the right config in squid.conf ?

please i need an urgent help .

thanx all

Re: Squid Cache server with MikroTik

Posted: Fri Jun 01, 2007 2:29 am
by GuJack20
please search the forum

Re: Squid Cache server with MikroTik

Posted: Fri Jun 01, 2007 2:35 am
by RedHat
please search the forum

i read the forum topics .. but all topics not speak about the configuration of squid.conf or mikrotik .. thanks

Re: Squid Cache server with MikroTik

Posted: Fri Jun 01, 2007 2:42 am
by GuJack20
if you are talking about configuring the squid.conf in MT this isn't possible. I have asked for this before and the Latvian guys has said that it isn't possible. :(
To configure squid.conf in the red hat box i think you are familiar, but if you don't, howtoforge.com has some nice how tos.. :)

Re: Squid Cache server with MikroTik

Posted: Fri Jun 01, 2007 2:55 am
by RedHat
Latvian guys are not recognize sqiud as a independes cache frankly !!

so what is the MikroTik Configuration or best Network design for ?

Re: Squid Cache server with MikroTik

Posted: Fri Jun 01, 2007 3:39 am
by RedHat
if you are talking about configuring the squid.conf in MT this isn't possible. I have asked for this before and the Latvian guys has said that it isn't possible. :(
To configure squid.conf in the red hat box i think you are familiar, but if you don't, howtoforge.com has some nice how tos.. :)
:(

in not talk about squid.conf in MT , im talking about squid.conf in RedHat Squid which is contain SQUID , i have tow problims which is the best squid.conf configuration in state that i use RdeHat squid with MT :( :( , second the best MT Configuration to work with squid in RedHat. :(

i am sure there is solution to my problim .. i am waiting for the man who have the SOLVED subject as replay to this topic :lol:

Re: Squid Cache server with MikroTik

Posted: Fri Jun 01, 2007 12:39 pm
by GuJack20
i'm having problems understanding the question..

Re: Squid Cache server with MikroTik

Posted: Fri Jun 01, 2007 5:27 pm
by miahac
I do not know the answer
but he has a separate cache servers, he wants to know the best way to redirect traffic from his mt router to the squid box, and the configuration of how to configure the squid box for use with his mt router.

For someone (not me) to answer this you need to provide more information. Do you have nat? What is you uplink speed? Your customer size and speeds you are offering?

Re: Squid Cache server with MikroTik

Posted: Fri Jun 01, 2007 8:03 pm
by RedHat
I do not know the answer
but he has a separate cache servers, he wants to know the best way to redirect traffic from his mt router to the squid box, and the configuration of how to configure the squid box for use with his mt router.

For someone (not me) to answer this you need to provide more information. Do you have nat? What is you uplink speed? Your customer size and speeds you are offering?
My problim exactlly is when i connect the squid server with mikrotik the browsing is stop !!in spite Yahoo messnger is work and i can ping any page e.g. ping http://www.yahoo.com i recive a replay but i cant open page in brwoser , well i dont know where is my err.

Thanx

Re: Squid Cache server with MikroTik

Posted: Thu Jun 07, 2007 7:20 pm
by Seccour
Knowing a little bit more about your current configuration for your network and for squid. Off the top of my head it sounds like Squid isn't listening on the correct port. You're going to need to make sure you have squid listening on the same port you have the MT redirecting your port 80 traffic to. Yahoo messenger works because it doesn't use port 80 for its use. You can use squid on a transparent bridge type configuration but I've read that its not compliant with several standards and can break certain web applications. Squid isn't designed anyways to proxy all types of traffic.

Also, while I've not tested it, I think you might also be in a loop. If you have a single MT router (your edge or border gateway) and your clients and proxy are behind it and it is doing the traffic redirect, you're going to need additional rules to have the MT ignore port 80 requests from the squid otherwise it will try and use itself and you end up with traffic just going in circles. My head says yes but I'm sure someone else can confirm this behavior.

Please post your network topo , your MT Conf and your squid.conf

:D

Re: Squid Cache server with MikroTik

Posted: Tue Jun 12, 2007 11:55 pm
by ahmedramze
Dear this is the squid.conf
just put the ip for mikrotk box on ACL safe
note this config with cache Accelerator Mode http://www.deckle.co.za/squid-users-gui ... rator_Mode(( Speed up Hotspot )) you need to install Apatche web server with full Cgi or php code

also this configuration for 10G HDD space with RAM 128


Regard
http_port 3128
icp_port 0
cache_mem 32 MB
maximum_object_size 16386 KB
maximum_object_size_in_memory 32 KB
memory_replacement_policy lru
cache_dir aufs /usr/local/squid/cache 10000 32 512
reference_age 1 month
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80		# http
acl Safe_ports port 21		# ftp
acl Safe_ports port 443 563	# https, snews
acl Safe_ports port 70		# gopher
acl Safe_ports port 210		# wais
acl Safe_ports port 1025-65535	# unregistered ports
acl Safe_ports port 280		# http-mgmt
acl Safe_ports port 488		# gss-http
acl Safe_ports port 591		# filemaker
acl Safe_ports port 777		# multiling http
acl CONNECT method CONNECT
acl subnet-1	src	<network-address>/<netmask>
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow subnet-1
http_access deny all
icp_access allow all
cache_mgr you@net.net
cache_effective_user nobody
cache_effective_group nobody
visible_hostname proxy.net
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
dns_testnames netscape.com internic.net nlanr.net microsoft.com
logfile_rotate 10
append_domain .net.net
forwarded_for off
ie_refresh on