Solved

Connecting two machines

Posted on 1997-07-30
2
197 Views
Last Modified: 2010-03-17
I have two machines, (Machine #1) has Linux 2.0.28 and has modems for dial in connection. (Machine #2) does not yet have modems.

I want to put 4 modems on machine two, this I can configure, I want to have it so that when you dial (Machine #2) that you login on (Machine #1)

Thanks
Bob Ross
0
Comment
Question by:bross073097
2 Comments
 
LVL 3

Accepted Solution

by:
sauron earned 200 total points
ID: 1585791
You don't really give that many details, but here is what I would suggest:-

You really want machine 2 to behave as a kind of terminal server, and simply answer and forward calls. As I see it, your machine must answer incoming calls, so you have to run a process on the serial lines to which your modems are attached. Normally, you would use a getty, which would then spawn a login session. Why don't you set up users on machine 2 such that when a user logs into that machine, the shell in /etc/passwd for that user does an rlogin to machine 1? This seems to me to be one possible answer though a somewhat quick and dirty one.

You could also use a slightly different route. Set up machine 2 as a PPP server, runnign pppd directly from /etc/inittab. Put the modems into auto answer mode, and set things up so that any incoming call is picked up, and machine 2 automatically starts pppd on the serial line. Your remote user would have a PAP or CHAP login for your PPP server, and they could then telnet to Machine 1. You could set Machine 2 up to refuse all logins, so that all it would do for outsiders is route to machine 1.

If you want a better solution than either of these can offer you, I would think you'd need a piece of software that can turn your linux box into a dedicated terminal server, and forward information from a serial line (the modem) across to a second machine connected via a piece of ethernet (I assume). ISP's do this sort of thin with arrays of modems, and I'm sure there would be terminal server software available if you looked hard enough, though I can't think of any packages off the top of my head.

Hope this helps....
0
 

Author Comment

by:bross073097
ID: 1585792
A Little more detail, the answer is all but what I was looking for. The connection is across ethernet connection. Had to take extra phone lines, but in the same building. If I enter login on Machine #2 I would need to keep an updated passwd file from machine one that can be added to 24hrs a day. The phone number is the same.

Now with as green as I am beyond getting the modems to answer and put people to the net.

How do I set up Machine #2 to route over to Machine #1 like you sugjested. At his time I use a standard login: on Machine #1, I have never played with PAP or CHAP, I would rather refuse all logins on #2 and send it to #1

I like how quick you answered.

Thanks
Bob ross

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Exploits in Kali Linux 4 223
IPA - change main server? 3 89
IPA client Config problems 2 108
Iptables and mirroring ports 4 46
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

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