LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-04-2002, 11:25 PM   #1
gideons
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


Hi,

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
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
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
gilkyboy
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 www.clarkconnect.org 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 http://ultra.litpixel.com:82/ip_masq...q_content.html also, if your interested in file sharing, you can use the tutorial at http://ultra.litpixel.com:82/samba/samba_content.html for instructions for using samba. This site has some other good tutorials for you to check out too www.everythinglinux.com (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.
Gilkyboy
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:54 AM.

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