<div dir="auto">Thanks a lot Rafael, I've gone through the documentation it looks to be very promising, one reservation i have is I want to use greasyspoon for icap and i see ecap is implemented already. I intend to install everything as suggested on the link, then after this change squid.conf to remove ecap connection.<div dir="auto">Please, I hope this will work? </div><div dir="auto"><br></div><div dir="auto">Thanks a lot again for the link, it really explained everything well enough for a beginner.<br><br><div data-smartmail="gmail_signature" dir="auto">Uchenna Nebedum</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 19, 2018, 18:30 Rafael Akchurin <<a href="mailto:rafael.akchurin@diladele.com">rafael.akchurin@diladele.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="en-NL" link="blue" vlink="purple">
<div class="m_-5599832129990534513WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello Uchenna,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">May be this policy based routing with Mikrotik tutorial will be of any use<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">See <a href="https://docs.diladele.com/tutorials/mikrotik_transparent_squid/index.html" target="_blank" rel="noreferrer">
https://docs.diladele.com/tutorials/mikrotik_transparent_squid/index.html</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Best regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Rafael Akchurin<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Diladele B.V.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> squid-users <<a href="mailto:squid-users-bounces@lists.squid-cache.org" target="_blank" rel="noreferrer">squid-users-bounces@lists.squid-cache.org</a>>
<b>On Behalf Of </b>Uchenna Nebedum<br>
<b>Sent:</b> Friday, 19 October 2018 18:42<br>
<b>To:</b> <a href="mailto:squid-users@lists.squid-cache.org" target="_blank" rel="noreferrer">squid-users@lists.squid-cache.org</a><br>
<b>Subject:</b> [squid-users] ERROR: NAT/TPROXY lookup failed to locate original IPs on local<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Good Day All,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">i'm new to squid and i have configured squid as an http transparent proxy with a mikrotik.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">the squid server has only a single NIC, so i followed a tutorial and set up a dst-nat to squid proxy for traffic on port 80,
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Chain:dstnat. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Protocol:tcp<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Dst-port:80 <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Action:dst-nat<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">To Addresses:192.168.2.2 (squid proxy)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">To ports:8080<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">but after setup, only https traffic works correctly,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">http traffic client error is "This page isn't working ERR_EMPTY_RESPONSE"<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">squid access.log is empty then in squid cache.log these are the errors<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">```<u></u><u></u></p>
</div>
<div>
<div style="margin-left:30.0pt">
<p class="MsoNormal">2018/10/19 17:08:54 kid1| ERROR: NF getsockopt(ORIGINAL_DST) failed on local=<a href="http://192.168.2.2:8080" target="_blank" rel="noreferrer">192.168.2.2:8080</a> remote=<a href="http://192.168.1.254:41248" target="_blank" rel="noreferrer">192.168.1.254:41248</a> FD 10 flags=33: (92) Protocol not available<br>
2018/10/19 17:08:54 kid1| ERROR: NAT/TPROXY lookup failed to locate original IPs on local=<a href="http://192.168.2.2:8080" target="_blank" rel="noreferrer">192.168.2.2:8080</a> remote=<a href="http://192.168.1.254:41248" target="_blank" rel="noreferrer">192.168.1.254:41248</a> FD 10 flags=33<u></u><u></u></p>
</div>
<p class="MsoNormal">```<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">please find below my squid.conf contents<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">```<u></u><u></u></p>
</div>
<div>
<div style="margin-left:30.0pt">
<p class="MsoNormal">acl localnet src <a href="http://192.168.1.0/24" target="_blank" rel="noreferrer">192.168.1.0/24</a>
<br>
acl SSL_ports port 443<br>
acl Safe_ports port 80 <br>
acl Safe_ports port 21 <br>
acl Safe_ports port 443 <br>
acl Safe_ports port 70 <br>
acl Safe_ports port 210 <br>
acl Safe_ports port 1025-65535 <br>
acl Safe_ports port 280 <br>
acl Safe_ports port 488 <br>
acl Safe_ports port 591 <br>
acl Safe_ports port 777 <br>
acl CONNECT method CONNECT<br>
icap_enable off<br>
icap_service service_req reqmod_precache 1 icap://<a href="http://127.0.0.1:1344/REQMOD" target="_blank" rel="noreferrer">127.0.0.1:1344/REQMOD</a><br>
adaptation_service_set class_req service_req<br>
adaptation_access class_req allow all<br>
icap_service service_resp respmod_precache 0 icap://<a href="http://127.0.0.1:1344/RESPMOD" target="_blank" rel="noreferrer">127.0.0.1:1344/RESPMOD</a><br>
adaptation_service_set class_resp service_resp<br>
adaptation_access class_resp allow all<br>
http_access deny !Safe_ports<br>
http_access deny CONNECT !SSL_ports<br>
http_access allow localhost manager<br>
http_access deny manager<br>
http_access deny to_localhost<br>
http_access allow localnet<br>
http_access allow localhost<br>
http_access allow all<br>
http_port 3128<br>
http_port 8080 transparent<br>
access_log daemon:/var/log/squid/access.log squid<br>
coredump_dir /var/spool/squid<br>
refresh_pattern ^ftp: 1440 20% 10080<br>
refresh_pattern ^gopher: 1440 0% 1440<br>
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0<br>
refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880<br>
refresh_pattern . 0 20% 4320<u></u><u></u></p>
</div>
<p class="MsoNormal">```<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">please any help or correction would be highly appreciated, i am not even sure if the approach is correct.<u></u><u></u></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><br>
-- <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Nebedum Uchenna<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote></div>