hisham
IS-IT--Management
- Nov 6, 2000
- 194
Am a new user of Linux and trying to setup of the dial-in service that supports PPP, and provides routing to all machines on the local area network
I edited the mgetty.config file to add the following lines in the global section:
modem-type data
rings 3
and changed the init sequence to ATZ AT&K3 :
port ttyS1
init-chat "" \dATZ OK \dAT&K3 OK
and edited the /etc/inittab file to start mgetty by adding:
d3:12345:respawn:/usr/local/sbin/mgetty ttyS1
I restarted the system, and looked at the mgetty log. The log show that commands have been sent to the modem and OK's found. The last line read waiting.
PPP Configuration:
I Set the PPP dial in options in the /etc/ppp/options.ppp-in file, changing the defaults. I know that This configuration does not use any authentication, either pap or chap:
dns-addr <addr of dns, for Win95 connections>
asyncmap 0 #async map to 0
crtscts #use hardware flow control
lock #ensure use of locking
modem #use modem control lines
-chap #don't use CHAP
proxyarp #ensure routing thru the PPP interface
login #use system password database for authentication
I created another options file that contains the IP address to issue to the incoming dial-in machine: /etc/ppp/options.ttyS1.ppp-in. it contain the line:
192.168.0.2:192.168.0.1
where 192.168.0.2 IP of my Linux box and 192.168.0.1 IP of a Windows machine in the LAN
Login:
I Created a user for the PPP login using adduser. By Seting the initial group to root, and the default shell to be the ppp deamon at /usr/sbin/pppd and Setting the password.
Now, I creat adial-up connetion to dialin my linux box, but the connection is establish for 0.1 minute, I looked at the /var/log/messages and found:
May 22 23:04:33 localhost mgetty[1704]: data dev=ttyS1, pid=1704, caller='none', conn='33600/ARQ/V34/LAPM/V42BIS', name='', cmd='/usr/sbin/pppd', user='/AutoPPP/'
May 22 23:04:33 localhost pppd[1704]: pppd 2.4.0 started by LOGIN, uid 0
May 22 23:04:33 localhost pppd[1704]: Using interface ppp0
May 22 23:04:33 localhost pppd[1704]: Connect: ppp0 <--> /dev/ttyS1
May 22 23:04:37 localhost pppd[1704]: Could not determine local IP address
May 22 23:04:39 localhost pppd[1704]: Connection terminated.
May 22 23:04:39 localhost pppd[1704]: Connect time 0.1 minutes.
May 22 23:04:39 localhost pppd[1704]: Sent 123 bytes, received 131 bytes.
May 22 23:04:39 localhost pppd[1704]: Exit.
What is wrong in my configuration?
And how can I dialin from out the LAN?
Thanks in advance.
I edited the mgetty.config file to add the following lines in the global section:
modem-type data
rings 3
and changed the init sequence to ATZ AT&K3 :
port ttyS1
init-chat "" \dATZ OK \dAT&K3 OK
and edited the /etc/inittab file to start mgetty by adding:
d3:12345:respawn:/usr/local/sbin/mgetty ttyS1
I restarted the system, and looked at the mgetty log. The log show that commands have been sent to the modem and OK's found. The last line read waiting.
PPP Configuration:
I Set the PPP dial in options in the /etc/ppp/options.ppp-in file, changing the defaults. I know that This configuration does not use any authentication, either pap or chap:
dns-addr <addr of dns, for Win95 connections>
asyncmap 0 #async map to 0
crtscts #use hardware flow control
lock #ensure use of locking
modem #use modem control lines
-chap #don't use CHAP
proxyarp #ensure routing thru the PPP interface
login #use system password database for authentication
I created another options file that contains the IP address to issue to the incoming dial-in machine: /etc/ppp/options.ttyS1.ppp-in. it contain the line:
192.168.0.2:192.168.0.1
where 192.168.0.2 IP of my Linux box and 192.168.0.1 IP of a Windows machine in the LAN
Login:
I Created a user for the PPP login using adduser. By Seting the initial group to root, and the default shell to be the ppp deamon at /usr/sbin/pppd and Setting the password.
Now, I creat adial-up connetion to dialin my linux box, but the connection is establish for 0.1 minute, I looked at the /var/log/messages and found:
May 22 23:04:33 localhost mgetty[1704]: data dev=ttyS1, pid=1704, caller='none', conn='33600/ARQ/V34/LAPM/V42BIS', name='', cmd='/usr/sbin/pppd', user='/AutoPPP/'
May 22 23:04:33 localhost pppd[1704]: pppd 2.4.0 started by LOGIN, uid 0
May 22 23:04:33 localhost pppd[1704]: Using interface ppp0
May 22 23:04:33 localhost pppd[1704]: Connect: ppp0 <--> /dev/ttyS1
May 22 23:04:37 localhost pppd[1704]: Could not determine local IP address
May 22 23:04:39 localhost pppd[1704]: Connection terminated.
May 22 23:04:39 localhost pppd[1704]: Connect time 0.1 minutes.
May 22 23:04:39 localhost pppd[1704]: Sent 123 bytes, received 131 bytes.
May 22 23:04:39 localhost pppd[1704]: Exit.
What is wrong in my configuration?
And how can I dialin from out the LAN?
Thanks in advance.