SRX Services Gateway
Reply
Regular Visitor
Andy Millett
Posts: 9
Registered: ‎12-11-2011
0

Re: SRX - redirect web traffic to squid proxy

Hey guys, 

 

I had some issues getting Squid to work with both SRX and EX based forwarding rules. All worked perfectly with a Blue Coat ProxySG. 

 

For Squid, I needed to add some stuff to iptables - 

 

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128

 

For anyone interested, theres a full blog entry on our company website for doing it all with EX or SRX - 

 

Transparent Redirect with JunOS

 

I used the WXC type redirect to make it work with the Blue Coat ProxySG. 

 

Cheers

Andy

New User
M.Kazzaz
Posts: 1
Registered: ‎12-01-2013
0

Re: SRX - redirect web traffic to squid proxy

i tried the DNAT method and the traffic went to the squid proxy sucessfully but the the http request reaches the squid missing the part of "get http//" and the other part remains which is not accetable for the squid i don't know what to do 

Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.