Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-04-2002, 11:25 PM   #1
LQ Newbie
Registered: Sep 2001
Location: St. Louis, MO
Distribution: Red Hat 7.2
Posts: 1

Rep: Reputation: 0
Trying to set up Linux to share Internet Connection


I am new to Linux. I have successfully installed a Server class Red Hat 7.2( thanks to Red Hats excellent manuals and user friendly interface) on my PC. I have configured my network card to connect to the Internet using a Cable modem. This computer has a 2nd network card which I wish to use to connect my 2nd PC which runs Windows 2000 and share the Internet Connection. I am trying to have the Linux machine connect to the cable and the Windows machine share the connection. Even though I have installed both Apache and Samba, I do not know what to do further. Do I need a router? Do I need to set up IP Masquerading? Do I need to set up a Internet Server? I have very very little knowledge about Web Servers and Networking. I would greatly appreciate any help in setting this up.

Old 02-05-2002, 10:57 AM   #2
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
I'm affraid that I have never actually set-up ICS (internet connection sharing), but I believe this is the theory you need to put into practice:

First off, get your Linux box to connect to the internet with the cable modem.

Then setup your Linux box as a local network DHCP server.

Get your Windows machine to be given its IP address from the Linux DHCP server.

Get your Windows box to use the Linux box's IP as it's proxy server.

I don't think that the DHCP server bit is absolutely essential, but it will make life a little easier if the two are on the same network and can talk to eachother.

Now, samba is only used so that the two boxes can see the files that reside on their respective harddisks. Windows uses the SMB protocol for file-sharing, and does not understand NFS natively, and Linux uses NFS for file-sharing and does not understand SMB natively. As you might guess, the SAMBA package allows Linux to use the SMB protocol.
Old 02-05-2002, 10:05 PM   #3
LQ Newbie
Registered: Jun 2001
Posts: 16

Rep: Reputation: 0
Cool Connection Sharing

After wondering about this myself I have found two solutions which seem very easy. The first of these is to use software that all you need to do is tell it what your modem and IP settings are and its up and running (once you configure your windows boxes) For this you need to have a clean hard drive (or you can let it clean it for you.) Its found at its based on linux and free. However thats the easy route, and also the boring no fun route (unless you have dialup in which case you'd have to figure out how to use it (being a newbie myself I failed)). Another way is to follow a tutorial thingy that tells you step by step how to set it up, windows boxes included. The best one I've found is at also, if your interested in file sharing, you can use the tutorial at for instructions for using samba. This site has some other good tutorials for you to check out too (its not been updated in quite some time however as the author of the page has moved on to other similar sites). Hope this helps.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How do you bridge networks on linux? Or share a network's internet connection? pugsley1218 Linux - Networking 1 11-14-2005 04:36 AM
Help! Cannot share my Internet connection... Domiriel Linux - Networking 2 11-25-2003 01:27 PM
how to share internet connection digihall7 Linux - Networking 5 10-22-2003 11:53 PM
how to share internet connection digihall7 Linux - Networking 2 09-23-2003 03:42 PM
Share an internet connection betwen a linux server and a windows client GiGA Linux - Software 4 08-21-2002 09:22 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration