<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="">
<div style="">Hi.</div>
<div style="">I have a problem regarding tproxy.</div>
<div style=""><br>
</div>
<div style="">I configured squid with tproxy by below tutorial.</div>
<div style="">https://wiki.squid-cache.org/Features/Tproxy4</div>
<div style=""><br>
</div>
<div style="">Then I configured a url rewrite program as follows</div>
<div style=""><br>
</div>
<div style="">url_rewrite_program /path/to/foo.py</div>
<div style="">url_rewrite_extras "%>a %>p"</div>
<div style=""><br>
</div>
<div style="">On nat configuration it is working well, but on tproxy configuration</div>
<div style="">my script gets source port (>p) as 0.</div>
<div style=""><br>
</div>
<div style="">Do you know any idea why, and how to solve it?</div>
<div style=""><br>
</div>
<div style="">Thanks</div>
<div style=""><br>
</div>
<div style=""><br>
</div>
<div style="">--</div>
<div style="">Ibrahim Ercan</div>
<br>
</div>
</body>
</html>