<div>hey friends,<br><br> I am trying to configure Squid Transparent Proxy on Centos4.0. The eth0 is connected to the Internet and eth1 is for the LAN connection<br>I am testing this scenario with 2 machines one machine (Centos4.0
 ) on which squid is running and other machine which is debian is on the network <a title="http://192.168.2.0" onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.2.0/" target="_blank">192.168.2.0</a>
.<br><br>Centos4.0 <br>   eth0:   <a title="http://192.168.1.125/24" onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.1.125/24" target="_blank">192.168.1.125/24</a><br>   eth1:   <a title="http://192.168.2.126/24" onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.2.126/24" target="_blank">
192.168.2.126/24</a><br><br>Debian:<br>   eth0:  <a title="http://192.168.2.83/24" onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.2.83/24" target="_blank">192.168.2.83/24</a>  gateway: <a title="http://192.168.2.126/24" onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.2.126/24" target="_blank">
192.168.2.126/24</a> (eth1 of Centos) <br><br>Squid works fine if I manually add the proxy settings in any browser for the clients of network (<a title="http://192.168.1.0" onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.1.0/" target="_blank">
192.168.1.0</a>) but as I want to configure transparent proxy I have added these lines to squid.conf<br>          http_port 5678<br>          httpd_accel_host virtual <br>          httpd_accel_port 80<br>          httpd_accel_with_proxy on
<br>          httpd_accel_uses_host_header on <br><br>iptables configuration  Only one rule is there<br><br>iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 5678<br><br>I can access the LAN servers from the Debian machine but I am not able to access the internet.
</div>
<div> </div>
<div>Any pointers what can be the problem ?</div>
<div> </div>
<div>Please let me know if you need any other inputs.</div>
<div> </div>
<div>Thanks & Regards</div>
<div> </div>
<div>Ankush Grover<br> </div>