We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

linux as server with internet and a win95 client

cku
cku asked
on
Medium Priority
250 Views
Last Modified: 2010-03-17
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?
Comment
Watch Question

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.


Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
cku

Author

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!

Commented:
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.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.