LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-25-2005, 09:45 AM   #1
blk97tt
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Rep: Reputation: 0
IP Tables and Transparent Proxy


Hi. I am a linux n00b and am having some problems configuring a transparent proxy. I have setup a linux router that has 2 network cards and is also running a proxy server.

Clients on eth1 are on a 10.0.0.0 network and assigned IPs dynamically. I added the following rules to IP tables.

iptables –t nat –A POSTROUTING –o eth0 –j MASQUERADE
iptables –A FORWARD –i eth1 –j ACCEPT

I was able to surf the web from clients on eth1 after I added those rules.

I configured the proxy to listen on 10.0.0.1:8118. I can configure the browser to use the proxy successfully.

Next I wanted to configure the proxy to work transparently. I tried adding the following rule to IP Tables:

iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to--port 8118

I configure the client broswers to use no proxy. When I try to go to any website, I get a blank page...so I don't think my iptable rules are correct. If anyone can help me, it would be GREATLY appreciated.
 
Old 01-25-2005, 05:12 PM   #2
blk97tt
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Anybody have any ideas? I am stuck here
 
Old 01-26-2005, 02:08 AM   #3
cidrolin
Member
 
Registered: Jul 2004
Distribution: Fedora c2
Posts: 89

Rep: Reputation: 15
have you seen this already ?

http://www.tldp.org/HOWTO/TransparentProxy.html
 
  


Reply



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
How to transparent proxy depam Linux - Software 3 12-30-2005 12:33 PM
transparent proxy mattsthe2 Linux - Networking 9 10-26-2005 08:44 AM
Transparent Proxy krock923 Linux - Networking 1 04-28-2005 06:43 PM
Transparent Proxy ilnli Linux - Networking 3 10-18-2004 06:01 PM
IP Tables, POP and Proxy Problems bytebrowser Linux - Security 4 09-12-2004 11:33 PM

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

All times are GMT -5. The time now is 01:43 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