<div>Hi ankush,</div>
<div>               I tryied the iptables rule you given but still i am not able to get the results.<br><br> </div>
<div><span class="gmail_quote">On 2/1/08, <b class="gmail_sendername">ankush grover</b> <<a href="mailto:ankushsquid@gmail.com">ankushsquid@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Fri, Feb 1, 2008 at 12:02 AM, Yogesh Patil <<a href="mailto:yogesh@technotux.net">yogesh@technotux.net</a>> wrote:<br>
> hi,<br>>     I am using SQUID 2.6.STABLE17 with CentOS 5, & BIND<br>>  DNS SERVER configured on the same box, i have configured squid as<br>>  transparent proxy with all default settings , and applied iptables<br>
>  rule by using the following<br>>  command<br>><br>>  iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT<br>>  --to-port 3128<br>><br>>     i am able to browse http websites, but when i try to open https<br>
>  sites, such as, <a href="http://gmail.com">gmail.com</a>, <a href="http://hotmail.com">hotmail.com</a> etc.. i am not able to get any<br>>  response from the proxy.<br>>  i have also tryied with forwarding 443 (https) port to the 3128<br>
>  (squid) port but still no success.<br>><br><br>Hi Yogesh,<br><br>Try below iptables rules:<br><br><br>iptables -A FORWARD -p tcp -m multiport -s $LAN_NETWORK --dport<br>$YAHOO_CHAT,$YAHOO_WEB_CAM -j ACCEPT<br><br>
iptables  -A FORWARD -p tcp -m multiport -s $LAN_NETWORK --dport<br>$HTTPS,$HTTP -j ACCEPT<br><br>Ports for HTTPS="443",YAHOO_CHAT="5050",YAHOO_WEB_CAM="2047,2048,5100",<br>where $LAN_NETWORK is your lan network for ex <a href="http://192.168.1.0/24">192.168.1.0/24</a> .<br>
<br>Regards<br><br>Ankush<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Yogesh Patil<br>Technotux Solutions<br>33/114, Gandhi Nagar,<br>Jilha Peth, Jalgaon - 425001<br>Maharashtra, INDIA<br>Phone :- +91-257-2235596<br>
Mobile:- +91-9890931432, 9422778329