[squid-users] url_rewrite_extras can't send source port on tproxy mode

Amos Jeffries squid3 at treenet.co.nz
Mon Mar 26 11:16:35 UTC 2018


On 09/11/17 21:43, Ibrahim Ercan wrote:
> Hi.
> I have a problem regarding tproxy.
> 
> I configured squid with tproxy by below tutorial.
> https://wiki.squid-cache.org/Features/Tproxy4
> 
> Then I configured a url rewrite program as follows
> 
> url_rewrite_program /path/to/foo.py
> url_rewrite_extras "%>a %>p"
> 
> On nat configuration it is working well, but on tproxy configuration
> my script gets source port (>p) as 0.
> 
> Do you know any idea why, and how to solve it?
> 

For anyone finding this in future. This issue was fixed in Squid-4.0.24.

Amos


More information about the squid-users mailing list