LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   About Transparent proxy (https://www.linuxquestions.org/questions/linux-networking-3/about-transparent-proxy-436764/)

shipon_97 04-19-2006 10:39 AM

About Transparent proxy
 
Dear friends ,

Suppose i have a Linux Enterprise 4 server , which IP is 192.168.10.1 And on the other hand,I have one Client through this server . His IP is 192.168.10.2 .My client is directly Connected with my server using cross cable .Here in this server I have configured Web Server and Squid Server .

I have blocked my WEB (80) port (Using Iptables firewall) , so that 192.168.10.2 can't connect with my Web Server .
I want such a condition so that my clients use my proxy server without proxy setting into his web browser. So in this moment I want to make "Transparent Proxy " into my server . Now i have the following Questions :

1 ) I have two Lan card , one is into my Server , and another into my client machine . This Lan cards are Directly Connected . Now Is it possible to make Transparent proxy into my server using just one Lan Card ? If it is possible then what is the IPtables rules ?


2 ) If I have Two Lan card Where One is Directly connected with INTERNET and Another Lan is Connected with the Switch .In that Condition What is the IPtables rules for Transparent Proxy ?

plz help .......... thx..

gabsik 04-19-2006 02:29 PM

$IPT -t nat -A PREROUTING -p tcp -s $YOURLAN --dport 80 -j REDIRECT --to-port 3128
and you browse the internet ...


All times are GMT -5. The time now is 08:54 AM.