Fedora Core 5 Computer Providing A Windows Xp Computer With Internet
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.