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? |
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. |
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 :)
|
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.
|
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 :D
|
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 |
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 |
All times are GMT -5. The time now is 08:28 AM. |