LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-26-2006, 09:30 PM   #1
FedoraNewbie
LQ Newbie
 
Registered: Sep 2006
Posts: 8

Rep: Reputation: 0
Fedora Core 5 Computer Providing A Windows Xp Computer With Internet


hi all,at last i have managed to get my adsl connection to work on fedora core 5,but as usual,evrytime i solve one problem,another one pops up...

i have 2 computers at home,the computer im currently on,that has windows xp and fedora 5 on it,and another computer,which only has windows xp installed on it..

both computers r conected to a switch,and my adsl modem is also conected to the switch,so both computers can get an internet conection,the idea is that i would give both computers static ip's,and make the first computer the default gateway for the 2nd computer,so that when the first computer is conected,the 2nd computer would b able to conect easily using the 1st's computers conectivity,on windows,thats more than easy...

now the first computer has fedora also on it now,and i cant find a way to make it into the default gateway of the 2nd computer...

so my question is,how i can make the 2nd computer(windows xp only) conect to the internat while the first computer is conected and working on fedora core 5,where do i have to go,or what do i have to do to make the 2nd computer use the first computer for internet on fedora like i use do when they are both on windows xp?

Last edited by FedoraNewbie; 09-26-2006 at 09:32 PM.
 
Old 09-27-2006, 12:58 AM   #2
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 252

Rep: Reputation: 36
You're making this waaaaaay too complicated. You have dsl - many dsl providers offer modem/router combos - find out if your modem doubles as a router. If not - go buy one. It's worth the money.

In order for a computer to act as a gateway, you connect it directly to your internet access and slap in a second NIC, which goes to the switch.

Now, if you get a router, you can have this all cleared up in about 5 minutes. If you do it the hard way, it could take you DAYS or longer to figure out what you need to know.
 
Old 09-28-2006, 12:22 AM   #3
FedoraNewbie
LQ Newbie
 
Registered: Sep 2006
Posts: 8

Original Poster
Rep: Reputation: 0
then why is it so easy on windows xp ?anyways if i get lost,i'll take ur advice and get a router,thanks for your help
 
Old 09-28-2006, 01:38 AM   #4
Galaxy_Stranger
Member
 
Registered: Oct 2003
Distribution: CentOS 6 and Fedora
Posts: 252

Rep: Reputation: 36
It's not any easier, you just know how to do it with XP and you DON'T know how to do it with Linux. The rules are the same, you've just learned an interface. Now you need to learn another one. Using one comp as a gateway was more popular when people wanted to share their dial-up connection at home. Now it's just a pain in the ass more than anything else.
 
Old 09-28-2006, 11:24 PM   #5
FedoraNewbie
LQ Newbie
 
Registered: Sep 2006
Posts: 8

Original Poster
Rep: Reputation: 0
i really respect ur opinion,but to me,buying new hardware doesnt solve a problem,its just a totaly different aproach,ofcourse it is ironice that im saying that since i still didnt find the solution
 
Old 10-28-2006, 09:12 PM   #6
FedoraNewbie
LQ Newbie
 
Registered: Sep 2006
Posts: 8

Original Poster
Rep: Reputation: 0
ok,i finally found whats needed to be writen in the terminal to get the 2nd computer to conect to the internet using the first computer on fedora core 5,here it is:

# Delete and flush. Default table is "filter". Others like "nat" must be explicitly stated.
iptables --flush - Flush all the rules in filter and nat tables
iptables --table nat --flush
iptables --delete-chain - Delete all chains that are not in default filter and nat table
iptables --table nat --delete-chain

# Set up IP FORWARDing and Masquerading
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT

echo 1 > /proc/sys/net/ipv4/ip_forward - Enables packet forwarding by kernel

now,to tell u the truth,i really dont know exactly what it does,all i know it works,but i have one small problem,this is temporary,meaning when i turn off my computer,i have to re enter the code again,so can some1 plz tell me how to make this permenant?

i hope i get a reply,coz its been ages since i replied to this thread,thanks
 
Old 10-28-2006, 11:24 PM   #7
gruntwerk
Member
 
Registered: Dec 2003
Location: PA
Distribution: fc9
Posts: 89

Rep: Reputation: 15
google is your friend

both of these from google looked promising to me...
http://www.linuxhomenetworking.com/w...tables_Scripts

http://www.cyberciti.biz/faq/how-do-...s-or-settings/

FWIW
 
  


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-to install fedora core to old computer? tyyp88 Fedora 5 02-13-2006 02:14 PM
Internet is slower on my win computer than on my linux computer eXor Linux - Networking 1 12-03-2004 08:58 AM
Internet on 2nd computer thru 1st computer jmsuthar General 4 09-11-2004 11:03 PM
my computer specs: is this supported in Fedora Core 1? sweet*amber Fedora 5 05-04-2004 10:08 PM
Why would a windows computer smoke a linux computer for download speed ? lostboy Linux - General 4 10-21-2003 05:20 PM

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

All times are GMT -5. The time now is 04:43 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