linux as server with internet and a win95 client

how do i configure my linux box as a dial up internet server, and then be able to use my win95 client to surf on the net?
ckuAsked:
Who is Participating?
 
sauronConnect With a Mentor Commented:
To set up your Linux box as a net server, you need a few things.

The Linux box needs an Internet connection, so you need to set up networking on that. How you will do this depends on what sort of connection it has. Then, you alter your /etc/inittab so that it runs a getty process on the serial line your modem is attached to, i.e. ttyS0 for com1. Then try dialing into it with a standard dos comms package, and you should get a login window.

After you have this working, you need to find a command line to start ppp on the Linux box once you've logged in. Then, create a user ppp, who has pppd (with the correct options) as the shell. You'll need to alter /etc/passwd and /etc/shells for this.

Then make a dial up networking icon on your windows 95 box, and set it to bring up a terminal window after dialing. When you dial in, the termianl window will pop up, and you can the log in as your 'ppp' user. If you have got everything right, when you close the termianl window, you'll get a PPP connection between the win95 and linux box. You'll have to specify the right IP addresses in the 95 config, and set IP address of the the linux box's ppp link as the 95 machines default gateway.

Once you've done all this, you'll need to recompile the kernel on your linux box, and compile in IP forwarding, so it can act as a router between the 95 machine and the internet. One point to note  - if the IP address of the 95 box is a registered, 'real' IP, you're fine. If it's not, you'll need to use IP masquerading. See http://www.wwonline.com/~achau/ipmasq for more details.


0
 
ckuAuthor Commented:
Thanks for the good answer, but I think you slipped quite easy over the part where you set up Linux as a router. Maybe I misunderstood your answer; but is it really enough just to at IP forwarding in the Linux kernel?

Bye, hope I expressed myself clear enough!
0
 
sauronCommented:
Yep, the routing is the easy bit. Basically, you just do make menuconfig, add in IP forwarding, and that should be pretty much it. You will need to set up the kernel routing table, but if the Linux box is itself connecting with PPP, then the defaultroute option to pppd will sort this out, if your Internet connection from the Linux box goes over ethernet, you should have a default gateway sorted out already. Basically, if the Linux box already has working Internet access, all you need is a kernel recompile, and it just works.

Of course, if you want to use dynamic routing protocols, such as RIP, OSPF or BGP it gets a lot worse, but I very much doubt that you need this level of functionality.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.