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.
|
 |
09-06-2005, 10:47 PM
|
#1
|
LQ Newbie
Registered: Jan 2005
Posts: 17
Rep:
|
Internet Sharing
hi.
I have a LAN with 1 Linux Server (Fedora 3) and 5 stations (Linux or Windows). My Server computer has 2 NIC. One of them (eth0) conects to internet with a Valid IP.Another conects to a switch that other stations conect to it.
I configure the network and make a workgroup . Each station see other stations and Server and can share files (with Samba) and share printer and ... .
My problem is that the stations can not conect to internet by Server.
How can I do it?
I search but can not find any application example about this subject yet.
Thank you
ALi
|
|
|
09-06-2005, 11:01 PM
|
#2
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
Re: Internet Sharing
Quote:
Originally posted by isilinux
hi.
I have a LAN with 1 Linux Server (Fedora 3) and 5 stations (Linux or Windows). My Server computer has 2 NIC. One of them (eth0) conects to internet with a Valid IP.Another conects to a switch that other stations conect to it.
I configure the network and make a workgroup . Each station see other stations and Server and can share files (with Samba) and share printer and ... .
My problem is that the stations can not conect to internet by Server.
How can I do it?
I search but can not find any application example about this subject yet.
Thank you
ALi
|
Hi Ali you would want to search on NAT, ip forwarding and iptables or if you want a quick way to set it all up then try what I use Arno's Iptables.
|
|
|
09-07-2005, 12:00 AM
|
#3
|
Member
Registered: Mar 2004
Location: Currently in China
Distribution: Fedora 9
Posts: 130
Rep:
|
I'm a newbie here. Also add my questions here to Ali's questions.
As my experience in M$ Windows, if the server would like to share the internet connection to the rest client PC(like how Ali do), then the server itself would have to "SHARED" its Internet Connection to the rest via a "Internet Sharing Configuration". So, is that means Ali have to do something in order to share the INTERNET CONNECTION to the rest CLIENTS? Any setting he need to do?
|
|
|
09-07-2005, 10:22 PM
|
#4
|
LQ Newbie
Registered: Jan 2005
Posts: 17
Original Poster
Rep:
|
I could not solve my problem yet.
Please introduce me a applicatione example.
Thanks
Ali
|
|
|
09-08-2005, 02:06 AM
|
#5
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
Firstly you need to install ip-masquerading and make sure that iptables is running. You can find a basic howto here . You will need to forward requests from the host which is also covered in the link. Once this is all configured then you need to configure all the boxes behind this one to set their gateway as the eth1 ip address.
|
|
|
All times are GMT -5. The time now is 11:08 PM.
|
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
|
|