Page 1 of 1

SQUID Configuration - in Public IP

Posted: Fri Jan 06, 2012 5:59 pm
by norigashi
Hi

Sorry maybe im adding a similar topic that here is , but im vey confused to do it .
Its a week that im reading and trying to do something with a squid server into my network .
I have installed linux and configured squid as a transparent proxy and it works .
but now im trying to connect them together .
i have some public ips and a lot of routerboards with mikrotik that i use with public ip
now i want to set up a squid server into my network and adding a public ip and connecting them like radius without adding it to local
is there a way to do it or what is the best way for me . please help . i would be very thankfull if someone can help me to solve this case

Image

Uploaded with ImageShack.us

what do u thing is the best way i ve attached my network configuration

Re: SQUID Configuration - in Public IP

Posted: Fri Jan 06, 2012 7:25 pm
by w0lt
Can you provide your route map on your RB750G?

/ip route print

-tp

Re: SQUID Configuration - in Public IP

Posted: Fri Jan 06, 2012 8:21 pm
by norigashi
[ipko@AlbiNet-Kijeve] > /ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m -
mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC
0 A S 0.0.0.0/0
1 ADC 80.80.171.16/28 80.80.171.17
2 ADC 80.80.171.128/25 80.80.171.243

Re: SQUID Configuration - in Public IP

Posted: Fri Jan 06, 2012 9:40 pm
by w0lt
[ipko@AlbiNet-Kijeve] > /ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m -
mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC
0 A S 0.0.0.0/0
1 ADC 80.80.171.16/28 80.80.171.17
2 ADC 80.80.171.128/25 80.80.171.243
Your route print out indicates an 80.80.171.xxx subnet, but your diagram shows 80.80.111.xxx

Re: SQUID Configuration - in Public IP

Posted: Fri Jan 06, 2012 9:54 pm
by norigashi
sorry all the 111 needs to change with 171.

80.80.171.18-30 is the range of ips

i hope that anybody can tell me what to do :S:$

Re: SQUID Configuration - in Public IP

Posted: Fri Jan 06, 2012 11:18 pm
by w0lt

I have installed linux and configured squid as a transparent proxy and it works .
1. How did you verify that it works?
2. From what machine (and IP) did you test it from?
3. Does your Squid box have a single NIC in it?

Sorry, Squid installations can be kind of confusing.. :-)

-tp

Re: SQUID Configuration - in Public IP

Posted: Sat Jan 07, 2012 6:26 pm
by norigashi
1. How did you verify that it works?
I've Installed properly squid into ubuntu and configured it to work in port 8080 transparent into ip : 80.80.171.29

now i've a computer in the ip : 80.80.171.27 i've added the proxy to IE or GOOGLE CHROME
and everything works fine

but now im trying to connect it to the mikrotik together ...

2. From what machine (and IP) did you test it from?
Computer on the same range ( not mikrotik ) IPL: 80.80.171.27 ( squid ip is .29 ) with google chrome

3. Does your Squid box have a single NIC in it?
yes at the moment it has just one and it is connect with the second main router that has the ip range :
80.80.171.17/28

Sorry, Squid installations can be kind of confusing..
yeah a lot , but it's the best thing that i've ever seen :)

how can i connect it to everymikrotik

i thing i've added the dstnat to the firewall to redirect all the trafic from 80 to ip 80.80.171.29 with port 8080 . but it doesnt work or i cant get full speed on the clients that are with ppoe with ip range 10.5.7.0/24

Re: SQUID Configuration - in Public IP

Posted: Sat Jan 07, 2012 6:40 pm
by w0lt

Re: SQUID Configuration - in Public IP

Posted: Sat Jan 07, 2012 7:15 pm
by norigashi
i've tried and thx from SYED because i hadn't see this page , i even could do a squid server cuz i dont know in linux very well , now everything seems to be ok if i add the proxy into the same network in google chrome but if i add the proxy into mikrotik with dstnat it can cache everything in the server cuz i see TCP_MISS and TCP_refresh_hit but i cant see tcp_hit so i cant take anything from the cache just adding into cache

does anybody know where the problem could be

Re: SQUID Configuration - in Public IP

Posted: Sun Jan 08, 2012 5:15 am
by norigashi
DONE :) thx from all , i dont know where the problem was but now everything it's okkej :) thx from all again especially from aacable :D