trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leif Hedstrom <zw...@apache.org>
Subject Re: Transparent proxy with 1 NIC in ATS server
Date Thu, 25 Jun 2015 22:04:37 GMT

> On Apr 8, 2015, at 5:30 PM, Yue, Cong <Cong_Yue@alliedtelesis.com> wrote:
> 
> Hi
>  
> Can somebody advise how I can do transparent proxy if I only have one physic NIC in my
ATS server?
> The network topology in my environment is as
> 1, I am doing forward proxy


Maybe I’m naive, but wouldn’t something like this work:

	iptables -t nat -A PREROUTING -i en0  -p tcp -m tcp  -s 10.0.0.0/8   --dport 80 -j REDIRECT
--to-port 8080


(replace 10.0.0.0/8 with you internal network range).

— leif
Mime
View raw message