From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <44EE094C.5080803@volunteermatch.org> Date: Thu, 24 Aug 2006 13:17:16 -0700 From: Melissa Meyer MIME-Version: 1.0 References: <44EDE259.4050009@dotr.com> In-Reply-To: <44EDE259.4050009@dotr.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Bridge] transparent bridge and proxies List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: bridge@lists.osdl.org 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 >