LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Setting up dial up server on linux (https://www.linuxquestions.org/questions/linux-server-73/setting-up-dial-up-server-on-linux-4175467847/)

treichhart 06-29-2013 04:04 PM

Setting up dial up server on linux
 
Hey Guys
I am just wondering what all I need to setup linux dial up server. Because I am planning on using ubuntu 12.04.2 LTS and external 56k modem but what else I need to complete this?

TB0ne 06-29-2013 04:58 PM

Quote:

Originally Posted by treichhart (Post 4980907)
Hey Guys
I am just wondering what all I need to setup linux dial up server. Because I am planning on using ubuntu 12.04.2 LTS and external 56k modem but what else I need to complete this?

Do you mean you want people to dial IN to your Ubuntu server, or you want to dial OUT?

For either, just plug in your modem. The device name is going to be needed. If it's a USB modem, chances are it'll be /dev/ttyUSB0. If you're using an old-style serial port, it's probably /dev/ttys0 or the like.

For dial-out, to an ISP:
http://www.debianadmin.com/setting-u...in-ubuntu.html

For dial-in, you need mgetty:
http://ubuntu.5.x6.nabble.com/mgetty...td4998497.html

There are many more documents you could easily find with a Google search, if you tried.

treichhart 06-29-2013 10:29 PM

Well im looking for dial in server setup and I am just wondering if anybody else have set one up.

TB0ne 06-30-2013 11:40 AM

Quote:

Originally Posted by treichhart (Post 4980998)
Well im looking for dial in server setup and I am just wondering if anybody else have set one up.

Ok, so read the second part of what I posted to you, with the name of the program to set up (mgetty, or Modem getty).

From that post, create /etc/init/ttyS1 (or 0, or whatever your device name is), with contents like this:
Code:

# ttyxxx - mgetty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.

start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]

respawn
exec /sbin/mgetty -D ttyxxx REPLACE the xxx with whatever your device name is

Again, this assumes that you've installed the mgetty software through your Ubuntu software manager. That will get you a dial-in connection. This isn't a dial-up TCP/IP connection, though, but a serial terminal. Do you mean you want SLIP working?

treichhart 06-30-2013 09:14 PM

Alright so how would this work if you only got one number and you want 1 or more people to connect to it? just add more serial modems or what?

TB0ne 07-01-2013 09:53 AM

Quote:

Originally Posted by treichhart (Post 4981439)
Alright so how would this work if you only got one number and you want 1 or more people to connect to it? just add more serial modems or what?

One phone number = one modem. Can't ever do more than that. If you want more than one person to log in, either person number 2 can wait until person number 1 logs off and disconnects, or you get more phone lines/modems.

If you need more modems, plug them in, give each one a phone line, and set them up as you did the first one, just put the different serial port info in.


All times are GMT -5. The time now is 12:54 PM.