LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-17-2003, 01:49 PM   #1
dalraidia
Member
 
Registered: Dec 2002
Location: Tallahassee, Florida
Posts: 30

Rep: Reputation: 15
Setting up an internet connection


I have three Linux (Redhat 8.0) machines on a local network. One of them has a modem, and I can dial in to my ISP with it and connect that machine to the internet. However, the other two machines will not connect to the internet through the ethernet network, although all machines can ping each other.

Probably some step I am not taking, but I don't see what it is and don't see a reference to how to do it in the FM. If someone can point me in the right direction I will be grateful.

Thanks,
John
 
Old 02-17-2003, 01:54 PM   #2
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
You need to set up some form of routing on the box with the modem. I have no idea what the best solution is for you, but I'm trying to do the same with a cable modem right now. I myself am trying to do this using iptables. Perhaps, however, I'm not headed the right direction myself.
 
Old 02-17-2003, 01:58 PM   #3
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,749

Rep: Reputation: 71
You have to have NAT or a proxyserver running on the machine with the internet connection. RH 8 should use iptables and nat.

Then you have to set the default gateway of the 2 machines to the one with the internet connection, if you are running NAT.

If you are running a proxy server then you have to set the proxy setting on the web browser.
 
Old 02-17-2003, 02:02 PM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Redhat 8.0 network configuration
 
Old 02-17-2003, 02:09 PM   #5
dalraidia
Member
 
Registered: Dec 2002
Location: Tallahassee, Florida
Posts: 30

Original Poster
Rep: Reputation: 15
I looked at that (network configuration) before I ever asked the question. Don't recall anything in there about setting up a router. The network itself is fine -- just need to know how to set up the router. I think that the previous answer of NAT is correct, and am pursuing that.

John
 
Old 02-17-2003, 02:21 PM   #6
dalraidia
Member
 
Registered: Dec 2002
Location: Tallahassee, Florida
Posts: 30

Original Poster
Rep: Reputation: 15
Yeah, Network Address Translation (NAT) using Iptables seems to be the key to doing it with Redhat. So will follow up on that. Thanks for pointing me in the right (hopefully) direction.

John
 
Old 02-17-2003, 02:37 PM   #7
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Perhaps this?

Linux IP Masquerade HOWTO
 
Old 02-17-2003, 02:45 PM   #8
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,749

Rep: Reputation: 71
Here is a link to a pretty easy to use firewall program based on iptables. http://rulhmpc57.leidenuniv.nl/proj...ables-firewall/
 
Old 02-17-2003, 02:52 PM   #9
dalraidia
Member
 
Registered: Dec 2002
Location: Tallahassee, Florida
Posts: 30

Original Poster
Rep: Reputation: 15
The Masquerade HOWTO looks pretty good. It certainly starts out by describing exactly what I want to do. Looks like a lot of reading there, so will have to study it. The only thing I wonder about (perhaps someone knows?) is whether use of the iptable command in Redhat Linux supercedes the Masquerade material. Have not yet read the HOWTO, though, so the question may be meaningless.

John
 
Old 02-17-2003, 03:02 PM   #10
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Google results for linux router setup
 
Old 02-17-2003, 03:03 PM   #11
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
Depending on your distro, iptables will be built into the kernel. Therefore, I would guess that unless they work together, ipmasq will only work without the use of iptables... just a guess.
 
  


Reply


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
Setting up Internet Connection harbir Linux - Hardware 1 07-25-2004 07:33 AM
Setting Up Internet Connection unosaso Linux - Networking 2 07-21-2004 06:26 AM
Need help setting up internet connection deram Linux - Newbie 2 10-29-2003 01:42 AM
redhat 7.3 setting up internet connection benjo Linux - Newbie 2 10-29-2002 08:16 AM
setting up internet connection classWizard Linux - Newbie 12 09-28-2002 04:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration