sharing Internet connection with more than one client
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.
sharing Internet connection with more than one client
I have an ubuntu 7.10 ICS server that works fine and I have routed my traffic using firestarter to my windows PC. my server's IP is 192.168.0.1 and my windows client is 192.168.0.2. now, I have bought another PC and I want to assign 192.168.0.3 to it and connect it to ubuntu server. in windows, all I needed to do was to connect the first client to first network card, second one to second network card, bridge two connections in my server, assign 192.168.0.1 to the network bridge in my server and 192.168.0.2 and 192.168.0.3 to my clients, then share my internet connection. I also could access shared files in any computer from all of them. can I have the same functionality with a linux server?
I'll make a list to make it easy if you don't wanna read the whole post:
things I want:
1. assign one ip address to multiple interfaces in linux, making them bonded.
2. sharing the internet connection with both clients.
3. ability to use all shared files over a network.
1. assign one ip address to multiple interfaces in linux, making them bonded.
sure, use the brctl bridge utility.
create the bridge eg. br0 - and put the NICs as its member.
#brctl --help will help you a lot better.
Quote:
2. sharing the internet connection with both clients.
you mean like in bridge as above bridging? i dont think so - its a switch/hub and it cant route. but if you use linux as a router (using 2 or more NICs) sure, either using iptables -t nat -j MASQUERADE, or use the -j SNAT.
Quote:
3. ability to use all shared files over a network.
sure - you can use samba for compatibility with windows networking, or you can use native unix/linux NFS.
sure, use the brctl bridge utility.
create the bridge eg. br0 - and put the NICs as its member.
#brctl --help will help you a lot better.
you mean like in bridge as above bridging? i dont think so - its a switch/hub and it cant route. but if you use linux as a router (using 2 or more NICs) sure, either using iptables -t nat -j MASQUERADE, or use the -j SNAT.
sure - you can use samba for compatibility with windows networking, or you can use native unix/linux NFS.
HTH.
thanks for the reply, I'm gonna go after that brctl tool. I've used samba and firestarter to do 3 and 2 with one client connected to the server. I guess once I can make the bridge functional, I can figure out to do 2 and 3 again. thanks for helping
thanks for the reply, I'm gonna go after that brctl tool. I've used samba and firestarter to do 3 and 2 with one client connected to the server. I guess once I can make the bridge functional, I can figure out to do 2 and 3 again. thanks for helping
I made it work quite easily. first I created a bridge with brctl:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.