Community discussions

MikroTik App
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Mikeorik and squid - help

Mon Jul 01, 2019 1:24 pm

Hello ,
I'm trying to use squid as a proxy server in my netwrok
this are the seeting I have added to the router
/ip firewall mangle
add action=accept chain=prerouting dst-port=80 in-interface=wlan1 protocol=tcp
add action=accept chain=prerouting dst-port=443 in-interface=wlan1 protocol=tcp
add action=mark-routing chain=prerouting dst-port=80 in-interface=wlan1 new-routing-mark=to_proxy passthrough=yes protocol=tcp
add action=mark-routing chain=prerouting dst-port=443 in-interface=wlan1 new-routing-mark=to_proxy passthrough=yes protocol=tcp
add action=accept chain=prerouting in-interface=wlan1 routing-mark=to_proxy
/ip route
add distance=1 gateway=10.0.0.77 routing-mark=to_proxy
/ip proxy
set cache-administrator=David enabled=yes max-cache-size=2048KiB parent-proxy=10.0.0.77 parent-proxy-port=3128
in the squid I have only added this lines:

 http_access allow all
 #http_access deny all
 
acl blocksite1 dstdomain yahoo.com
acl blocksite2 dstdomain www.rediff.com
http_access deny blocksite1
http_access deny blocksite2

acl blockkeyword1 url_regex gmail
http_access deny blockkeyword1
the service is up
I can see the router is connected to the squid server
but nothing work - I get timeout all the time ...

the router is 10.0.0.250
the wifi pool is 192.168.200.0/24 (when i turn off the squid server and proxy on the router - everything is work )
the squid (Ubuntu 18.04) is 10.0.0.77
the defulat gateway in 10.0.0.254(config in the router and also in the ubuntu)

where do I need to look for the problem ?

Thanks,
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11598
Joined: Thu Mar 03, 2016 10:23 pm

Re: Mikeorik and squid - help

Mon Jul 01, 2019 1:55 pm

Squid, by default, is not configured to act as transparent proxy. There are a few ways to configure things to do it transparently, just google for "squid transparent proxy" ...
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: Mikeorik and squid - help

Mon Jul 01, 2019 3:20 pm

got lost somewhere .....
I have try 2 links - nothing works for me
https://linuxtechlab.com/squid-transparent-proxy-server-complete-configuration/
https://www.cyberciti.biz/tips/linux-setup-transparent-proxy-squid-howto.html
I have reinstall he ubuntu -
mayne it's too complicated to config? (it's also a good answer :-) )

Who is online

Users browsing this forum: stef70 and 118 guests