Howto set up up a Linux Dial-in server

Standard

Check modem & port (usually ttyS1) with minicom (you may have to set up minicom first with minicom -s)

ttyS0 = COM1, ttyS1 = COM2…

Install mgetty if not already installed -> check with rpm -q mgetty

edit /etc/inittab to reflect respawning of modem (add line similar to):

S1:23456:respawn:/sbin/mgetty ttyS1 -m ‘”” ATW0&F0&V0S0=0E1Q0V1&C1&S0M0 OK’ -s 115200 -n 1 -D on

or simply

S1:23456:respawn:/sbin/mgetty ttyS1 -s 115200 -n 1 -D on

Note: ATW0….. are command passed to the modem at respawn. Check if correct for your modem.

edit login.config:

vi /etc/mgetty+sendfax/login.config

add following line

/AutoPPP/ – ppp /usr/sbin/pppd auth -chap +pap login

add the following line to /etc/ppp/pap-secrets:

* * “” *

Create /etc/ppp/options.ttyS1 similar to:

192.168.100.3:192.168.80.9

# authentication can either be pap or chap. As most people only want to
# use pap, you can also disable chap:
require-pap
refuse-chap

# Specify which DNS Servers the incoming Win95 or WinNT Connection should use
# Two Servers can be remotely configured
ms-dns 192.168.100.4
ms-dns 192.168.100.1

# Netbios
ms-wins 192.168.100.11
ms-wins 192.168.100.7

# Require the peer to authenticate itself before allowing network
# packets to be sent or received.
# Please do not disable this setting. It is expected to be standard in
# future releases of pppd. Use the call option (see manpage) to disable
# authentication for specific peers.
#auth

# Use hardware flow control (i.e. RTS/CTS) to control the flow of data
# on the serial port.
crtscts

# Specifies that pppd should use a UUCP-style lock on the serial device
# to ensure exclusive access to the device.
lock

# Use the modem control lines.
modem

# Use the system password database for authenticating the peer using
# PAP. Note: mgetty already provides this option. If this is specified
# then dialin from users using a script under Linux to fire up ppp wont work.
login

# Specifies that pppd should disconnect if the link is idle for n seconds.
#idle 1800

# Disable the IPXCP and IPX protocols.
noipx

# —<End of File>—


Disclaimer:
By reading and/or using the information within this web page you agree to hold the author, publisher and all related entities harmless from any claim directly or indirectly related to the information given or the use of any part of the information on this web site. Use at own risk. No responsibility taken.