Solved

linux as server with internet and a win95 client

Posted on 1997-06-29
3
214 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?
0
Comment
Question by:cku
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
sauron earned 100 total points
ID: 1585181
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
 

Author Comment

by:cku
ID: 1585182
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
 
LVL 3

Expert Comment

by:sauron
ID: 1585183
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

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now