transparent bridge proxy
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Debian support > Linux Debian support > transparent bridge proxy




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    transparent bridge proxy  
John Snyde


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-10-05 07:46 AM

Hello

I need to setup a transparent proxy bridge.

i can get transparent proxy to work, unfortunately i cannot get the same to
happen in bridge mode

router to internet/dhcp ------<eth1---eth0>-----mynetwork

mynetwork 192.168.10.0/24

My challenge

I can get the proxy to work transparently under the following conditions

eth1 10.100.10.10 gateway 10.100.10.1  (10.100.10.1 is the firewall / router
that connects to the internet)
eth0 192.168.10.1 no gateway

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j
REDIRECT --to-port 3128

All the computers on the 192 network are able to surf the internet fine
provided the gateway is 192.168.10.1.  There transparent proxy works till
this point


if i turn my box into a bridge br0
with eth0  0.0.0.0  goes into promisc mode
eth1 0.0.0.0  goes into forwarding mode

br0 10.100.10.5

all my clients(i converted them to 10.x.x.x network) can still connect to
the internet, but the http connections dont get proxied (there is no hits in
the squid access log)!!

can someone please explain me the following line on how it would apply to
me.

----------------------
From http://www.faqs.org/docs/Linux-mini...arentProxy.html

If you are trying to setup a transparent proxy on a Linux machine that has
been configured as a bridge, you will need to add one additional iptables
command to what we had in section 5. Specifically, you need to explicitly
allow connections to the machine on port 3128 (or any other port squid is
listening on), otherwise the machine will just forward them over to the
other interface like a good little bridge. Here's the magic words:

a.. iptables -A INPUT -i interface -p tcp -d your_bridge_ip -s
local-network --dport 3128 -m state --state NEW,ESTABLISHED -j ACCEPT
Replacing interface with the interface that corresponds to your_bridge_ip
(typically eth0 or eth1). First time bridge users should also note that
you'll probably want to repeat the same command with ``3128'' replaced by
``telnet'' if you want to administer your bridge remotely

--------------------------

Please assist!







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:47 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register