LinuxQuestions.org
Help answer threads with 0 replies.
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 05-27-2011, 04:05 AM   #1
guitier
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: Disabled
loops occures in a linux bridge and ebtables configuration


Hi all,

I'm trying to set up a configuration to analyse the network flow between two interfaces.

What i'm want to do is to listen what is coming on eth0 and forward it to eth1 and listen from eth1 and forward it to eth0.
The only concerned frame are ipv4.

I set up a bridge br0 with eth0 and eth1.
eth0 and eth1 are configured to be promiscuous so accepting all frames available.

I added some ebtables rules to redirect the frames to the userspace using ulog :

ebtables -t broute -A BROUTING -i eth0 -p ipv4 --ulog-nlgroup 1 -j DROP
ebtables -t broute -A BROUTING -i eth1 -p ipv4 --ulog-nlgroup 2 -j DROP

My problem is that frames read (using netlink sockets in the application) from eth0 and written to eth1 appears to loop between the 2 interfaces.

Is there a way to avoid this kind of behavior ?

A solution would be to use 4 interfaces, but I would prefere a software solution.

Any advices ?

Thank you.
 
  


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
Linux ethernet bridge : route configuration medized Linux - Networking 5 05-19-2010 11:58 AM
Anyone using a bridge firewall with iptables and ebtables? CoffeeKing!!! Linux - Networking 3 11-02-2009 11:10 AM
Linux bridge configuration!!! sholah Linux - Server 2 10-04-2008 03:30 PM
Bridge/htb problem (ebtables) Mycado Linux - Networking 6 06-21-2006 04:58 AM
802.1d Bridge + ebtables otisthegbs Linux - Wireless Networking 0 10-05-2004 07:47 PM

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

All times are GMT -5. The time now is 08:59 PM.

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