From: Melissa Meyer <melissa@volunteermatch.org>
To: bridge@lists.osdl.org
Subject: Re: [Bridge] transparent bridge and proxies
Date: Thu, 24 Aug 2006 15:34:08 -0700 [thread overview]
Message-ID: <44EE2960.5000602@volunteermatch.org> (raw)
In-Reply-To: <44EE22AB.1090903@dotr.com>
In that situation, I put a third nic on the box and gave it a real IP
address for management purposes (such as running yum). I'm not exactly
sure yum updates to the bridge itself will work without an IP adddress.
I think in the proxy situation, you might need to set up a prerouting
iptables rule that redirects the traffic to the squid port or something
similar?
Julian Lyndon-Smith wrote:
> Thanks Melissa for responding
>
> I was trying to play with physdev.
>
> Ignoring all the inbound stuff, if I was on the console of this
> machine (Mybox)
> MyBox
> +-----br0----+
> | |
> router<--->eth0+ +eth1<--->Lan
>
> Where br0, eth0 and eth1 had no ip address, and I wanted to "yum
> update" (which I presume uses port 80) what rules would I need to put
> in place ? I was looking for something to do with 127.0.0.1 (the lo
> interface) and eth0.
>
> If I got that to work, the squid proxy should automatically follow, no ?
>
> Julian
>
> Melissa Meyer wrote:
>>
>> In the 2.6 kernel, there's an iptables module called physdev to match
>> the bridge's physical in and out devices so something like:
>>
>> iptables -A FORWARD -m physdev -p tcp --dport 25
>> --physdev-in eth0 -j ACCEPT
>>
>> to allow smtp traffic through.
>>
>>
>> Julian Lyndon-Smith wrote:
>>> I want to be able to install a box that is a transparent bridge, but
>>> that is also running a transparent proxy, but with a twist ..
>>>
>>> i am a newbie in all things linux, so bear with me :)
>>>
>>> So far I have managed to install centos 4.3, and following various
>>> guides on the net, created a bridge between eth1 (connected to lan)
>>> and eth0 (connected to router). That works great.
>>>
>>> I also managed to install squid, get it running transparently and
>>> added a rule to iptables to make all that work just fine. So now,
>>> all my clients attached to the lan run through the squid proxy
>>> without them knowing.
>>>
>>> Now, for the twist. For development and testing, I assigned an ip
>>> address and gateway to the bridge. I need to be able for a "non-it"
>>> person to install this box without having to set it up at all , so
>>> it cannot have an ip address assigned, as it *may* be in use
>>> somewhere else on the lan or router.
>>>
>>> So, I changed the ip address to 0.0.0.0. Everything except squid
>>> still worked. I presume that's because it does not know how to route
>>> the data to get stuff.
>>>
>>> Can I add a rule to iptables or something to say "anything that's
>>> come from eth1 into the local box, after processing send to eth0"
>>> and vice-versa ?
>>>
>>> Julian.
>>> _______________________________________________
>>> Bridge mailing list
>>> Bridge@lists.osdl.org
>>> https://lists.osdl.org/mailman/listinfo/bridge
>>>
>> _______________________________________________
>> Bridge mailing list
>> Bridge@lists.osdl.org
>> https://lists.osdl.org/mailman/listinfo/bridge
>>
>>
>
next prev parent reply other threads:[~2006-08-24 22:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-24 17:31 [Bridge] transparent bridge and proxies Julian Lyndon-Smith
2006-08-24 18:20 ` Marek Kierdelewicz
2006-08-24 20:17 ` Benny Amorsen
2006-08-24 22:42 ` Etienne Pretorius
2006-08-24 20:17 ` Melissa Meyer
2006-08-24 22:05 ` Julian Lyndon-Smith
2006-08-24 22:34 ` Melissa Meyer [this message]
2006-08-24 22:20 ` Marek Kierdelewicz
-- strict thread matches above, loose matches on Subject: below --
2006-08-25 10:53 Skept
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44EE2960.5000602@volunteermatch.org \
--to=melissa@volunteermatch.org \
--cc=bridge@lists.osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.