Answer the question
In order to leave comments, you need to log in
How to set up transparent Squid for a pair with Mikrotik?
There is a Squid-server ( 10.10.10.1 ) with one network interface card. And there is Mikrotik ( 10.10.10.254 ).
Squid version is 4.10. Compiled from source.
On Mikrotik I wrote the rules:
/ip firewall mangle
add chain=prerouting action=mark-routing new-routing-mark=SQUID passthrough=no
protocol=tcp src-address=10.10.10.100 in-interface=bridge-local
dst-port=80
/ip route
add distance=1 dst-address=0.0.0.0/0 gateway=10.10.10.1 routing-mark=SQUID scope=30 target-scope=10
iptables -t nat -A PREROUTING -i eth1 -s 10.10.10.0/24 -p tcp --dport 80 -j REDIRECT --to-ports 3129
net.ipv4.ip_forward = 1
http_port 3129 intercept
http_port 3128
1582641137.824 0 10.10.10.254 NONE/000 0 NONE error:transaction-end-before-headers - HIER_NONE/- -
configure options: '--prefix=/usr' '--localstatedir=/var' '--sysconfdir=/etc/squid' '--datadir=/share/squid' '--with-default-user=proxy' '--with-logdir=/data/squid/log' '--with-pidfile=/var/run/squid.pid' '--with-swapdir=/data/squid/cache' '--with-openssl=/home/vadim/openssl-1.1.1d' '--with-large-files' '--enable-cpu-profiling' '--enable-gnuregex' '--enable-icmp' '--enable-cache-digests' '--enable-follow-x-forwarded-for' '--enable-ssl-crtd' --enable-ltdl-convenience
Answer the question
In order to leave comments, you need to log in
1. where are the rules on Mikrotik that allow access for ip squid? Do you understand how a proxy works?
2. where is the information about the state of the FORWARD table in iptables on the server with squid? Do you understand that net.ipv4.ip_forward = 1 is not enough, and you also need to allow packets to pass through iptables?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question