Linux - NetworkingThis 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.
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.
1. How to create a bridge between two connection? (Please give me an example with explanation (not only "Use brctl."))
2. How to create something similiar like hub in linux-based systems?
I have multiple LAN connections and i want to be something like router (with ability to filter routes - for example block sending packets from eth0 to eth3 on port 35274, or block sending all packets from eth1 to localhost and so on)
there's not enough information there to say... what does "connected to internet" mean? behind an adsl router? if so it should be fine. if your own pc holds the public ip on a ppp / pppoe connectoin etc... then you can't normally bridge that, it'd need masquarading and routing instead.
Ok, i will now try to explain better what i want:
I have 3 computer, but i don't have a hub.
f.e.:
PC1
PC2 - PC1 and PC3 is connected to PC2
PC3
If I bridge eth0 and eth1 (on PC2) the PC2 will behave like a switch or piece of network cable and PC2 won't be able to send unicast or multicast, actually nothing, to PC1 or PC2. And i want PC1, PC2 and PC to be able communicate like they were connected to a hub.
well you've still not said what form your internet connection takes, but yes you *could* bridge three nics if you want. but really... $10 for a cheap switch is a vastly better approach.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.