LinuxQuestions.org
Review your favorite Linux distribution.
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 02-09-2011, 03:04 PM   #1
systemlordanubis
Member
 
Registered: Jun 2010
Distribution: Debian, Ubuntu, Win
Posts: 143

Rep: Reputation: 16
Single direction redirection on bridge br0


Hi All,

I'm currently setting up a squid proxy which will be installed on a debian system configured as a bridge eth0/eth1 as br0.

The problem I'm having is that port 80 requests are being proxied both ways where I only want the requests coming in via eth1 to be proxied.

Is there a way to do this? I've already tried changing the "-i br0" in the iptables redirection to "-i eth1" but no data appears to go through it.

Thanks
Anubis.
 
Old 02-10-2011, 08:02 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you could filter using the mac module to imply traffic coming from an downstream router. if that fits with your architecture. In general though, transparent proxies are pretty horrible I think, nothing like making a browser explicitly go to a proxy for web access, especially if it's done via proxy.pac files unbeknownst to the user.
 
Old 02-16-2011, 03:25 PM   #3
TimothyEBaldwin
Member
 
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
You need the physdev iptables module.
 
  


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
Bridge br0 on FC12 , No Network mickeyboa Fedora 3 05-10-2010 07:00 AM
Redirection in a bridge based on URL scubanarc Linux - Server 8 03-02-2009 11:48 PM
Cannot setup bridge br0 without cutting all internet. SimbaSpirit Linux - Newbie 2 05-26-2008 08:52 PM
single quotation marks pointed in wrong direction newbiesforever Linux - Software 1 11-29-2006 11:30 PM
enabling port forward redirection from single external IP nikkac Linux - Security 2 10-04-2006 02:24 PM

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

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