From: Melissa Meyer <melissa@volunteermatch.org>
To: bridge@lists.osdl.org
Subject: Re: [Bridge] transparent bridge and proxies
Date: Thu, 24 Aug 2006 13:17:16 -0700 [thread overview]
Message-ID: <44EE094C.5080803@volunteermatch.org> (raw)
In-Reply-To: <44EDE259.4050009@dotr.com>
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
>
next prev parent reply other threads:[~2006-08-24 20:17 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 [this message]
2006-08-24 22:05 ` Julian Lyndon-Smith
2006-08-24 22:34 ` Melissa Meyer
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=44EE094C.5080803@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.