Hi everyone,

Have anyone setup a Linux Dial-In Server before? I would like to check 
on certain issues.
Here is how I setup the server.

Dial-In Server Setup
--------------------

Firstly, I setup my external MODEM to COM1 (mouse is on PS/2)and it is 
configured at "/dev/ttyS0" on port 3F8 at IRQ 4 with a soft link to 
"/dev/modem".

In my "/etc/inittab", I added this line, 

S0:2345:respawn:/sbin/mgetty -s 115200 -D -n 1 -m '"" "ATL0M0H0 OK"' 
ttyS0

where "S0" = /dev/ttyS0:
"2345" = runlevel
"sbin/mgetty" = the smart modem getty application
"-s" = speed or baud rate of the modem
"-D" = data only modem
"-n 1" = answer the modem after 1 ring
"-m" = 'expect send' (set the "chat" sequence)
"ttyS0" = /dev/ttyS0 (Com1)

and in my "/etc/shells" I added the "ppplogin shell" from 
"/usr/lib/linuxconf/lib/ppplogin".

I then created a file in "/etc/ppp/" called "options.ttyS0" which 
contain these lines;

# Start of "options.ttyS0"

-detach
passive
asyncmap 0
netmask 255.255.255.0
proxyarp
192.168.2.151:192.168.3.1
lock
crtscts
ttyS0

# End of "options.ttyS0"


I then add a user to my "pppusers" group and allocate a username and 
password for the remote user to dial-in.


Client-Dial-Up Setup
--------------------

I created a "ppp0" profile with "linuxconf" on Mandrake Linux and set 
all the 
information from within "linuxconf" >> "networking" >> "ppp/slip/plip" >> 
"add" >> "ppp0"

I set the profile in HARDWARE;

to use "hardware control transmission", "abort connections on well 
known errors" "line speed=115200", "modem port=/dev/ttyS0", "ppp 
options=<blank>", 


In Communications;

"modem init string=ATZ", "modem dial number=1234567", "debug 
connection=enabled"


In Chat;

Expect  ogin:
Send            moonshi
Expect  owd:
Send            mypassword
Expect  TIMEOUT
Send            10


Now, I am ready to do a "ifup ppp0" to connect to the Dial-In Server 
right? However, when I dial-in I received a modem-handshake and after 
logging into the Dial-In Server I was disconnected!

I can't give you the error messages as the machine got hung and upon a 
HARD RESET, "fsck" runs and reported humongous errors and upon fixing 
it manually with fsck on single user mode, a few important files got 
deleted and I can't login anymore. Most probably I lost the 
"/etc/passwd" inode :(

When I try loggin in on console as root, the message says;

"You don't belong here. Go away!!!"

A stupid message right? Makes you angry after all the hard work. As 
such I am reinstalling the machine and trying it again but if there 
are certain errors in my setup, pls point out.


Thank you.


--Moonshi Mohsenruddin
mailto:[EMAIL PROTECTED]



-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to