Community discussions

MikroTik App
 
norigashi
just joined
Topic Author
Posts: 14
Joined: Fri Aug 01, 2008 1:41 am

SQUID Configuration - in Public IP

Fri Jan 06, 2012 5:59 pm

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
 
w0lt
Long time Member
Long time Member
Posts: 537
Joined: Wed Apr 02, 2008 2:12 pm
Location: Minnesota USA

Re: SQUID Configuration - in Public IP

Fri Jan 06, 2012 7:25 pm

Can you provide your route map on your RB750G?

/ip route print

-tp
 
norigashi
just joined
Topic Author
Posts: 14
Joined: Fri Aug 01, 2008 1:41 am

Re: SQUID Configuration - in Public IP

Fri Jan 06, 2012 8:21 pm

[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
 
w0lt
Long time Member
Long time Member
Posts: 537
Joined: Wed Apr 02, 2008 2:12 pm
Location: Minnesota USA

Re: SQUID Configuration - in Public IP

Fri Jan 06, 2012 9:40 pm

[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
 
norigashi
just joined
Topic Author
Posts: 14
Joined: Fri Aug 01, 2008 1:41 am

Re: SQUID Configuration - in Public IP

Fri Jan 06, 2012 9:54 pm

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:$
 
w0lt
Long time Member
Long time Member
Posts: 537
Joined: Wed Apr 02, 2008 2:12 pm
Location: Minnesota USA

Re: SQUID Configuration - in Public IP

Fri Jan 06, 2012 11:18 pm


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
 
norigashi
just joined
Topic Author
Posts: 14
Joined: Fri Aug 01, 2008 1:41 am

Re: SQUID Configuration - in Public IP

Sat Jan 07, 2012 6:26 pm

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
 
w0lt
Long time Member
Long time Member
Posts: 537
Joined: Wed Apr 02, 2008 2:12 pm
Location: Minnesota USA

Re: SQUID Configuration - in Public IP

Sat Jan 07, 2012 6:40 pm

 
norigashi
just joined
Topic Author
Posts: 14
Joined: Fri Aug 01, 2008 1:41 am

Re: SQUID Configuration - in Public IP

Sat Jan 07, 2012 7:15 pm

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
 
norigashi
just joined
Topic Author
Posts: 14
Joined: Fri Aug 01, 2008 1:41 am

Re: SQUID Configuration - in Public IP

Sun Jan 08, 2012 5:15 am

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

Who is online

Users browsing this forum: CGGXANNX, szizo and 54 guests