LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-19-2006, 11:39 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
Cool 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..
 
Old 04-19-2006, 03:29 PM   #2
gabsik
Member
 
Registered: Dec 2005
Location: This planet
Distribution: Debian,Xubuntu
Posts: 567

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
transparent proxy tsaravan Linux - Networking 10 02-06-2006 01:49 AM
transparent proxy tsaravan Linux - Newbie 3 01-11-2006 02:15 PM
transparent proxy mattsthe2 Linux - Networking 9 10-26-2005 09:44 AM
Transparent Proxy krock923 Linux - Networking 1 04-28-2005 07:43 PM
Transparent Proxy vinhhv Linux - Networking 0 07-23-2003 02:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration