SQUID Configuration - in Public IP

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

Uploaded with ImageShack.us

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

Can you provide your route map on your RB750G?

/ip route print

-tp

[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

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:$

  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.. :slight_smile:

-tp

  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 …

  1. 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

  2. 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 :slight_smile:

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

Take a look at this web page:

http://aacable.wordpress.com/2011/07/21/mikrotik-howto-redirect-http-traffic-to-squid-with-original-source-client-ip/

-tp

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

DONE :slight_smile: thx from all , i dont know where the problem was but now everything it’s okkej :slight_smile: thx from all again especially from aacable :smiley: