Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-30-2010, 09:41 AM
|
#1
|
LQ Newbie
Registered: Sep 2004
Posts: 11
Rep:
|
Can a bridge be configured to act as hub not a switch?
Hi,
I have a hub with some VoIP phones attached as well as a machine that is used to record the calls. This all works fine as all packets coming to/from the voip phones are also seen by the recorder so it can process them as necessary.
What i want to do is put another machine between the hub and recorder and have it act as a transparent firewall. So far i've managed to successfully set up a bridge on ports eth1 and eth2 and all the packets destined for the recorder go through the bridge fine. The problem is that the bridge is acting as a switch so the packets from the phones are received on eth2 but don't get retransmitted on eth1. Is there any way to configure the bridge so that all packets received on eth2 are transmitted on eth1, i.e. have it act as a hub instead?
|
|
|
06-30-2010, 10:16 AM
|
#2
|
Senior Member
Registered: Aug 2009
Posts: 3,790
|
It can't be a firewall and a hub, any reason you can't use iptables on the monitor machine itself ? .. or use something like a cisco switch with monitor mode turned on to duplicate all traffic from the hubs port to the monitor machines port plus some outbound acl's ?
cheers
|
|
|
06-30-2010, 10:32 AM
|
#3
|
LQ Newbie
Registered: Sep 2004
Posts: 11
Original Poster
Rep:
|
Typical, this has been bugging me for 2 days and within 20mins of posting i solve it! Thanks for the reply though.
The solution was to set the ageing of the bridge to 0 so it basically never has a list of learnt MAC addresses forcing it to transmit the packets regardless of whether the destination is connected via that port or not
Code:
brctl setageing 0 br0
|
|
|
08-15-2014, 03:34 PM
|
#5
|
Senior Member
Registered: Apr 2009
Posts: 1,893
Rep:
|
All permanent entry is static, no dynamic entry anymore.
|
|
|
All times are GMT -5. The time now is 01:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|