Date: Fri, 28 May 1999 23:49:59 +0200 From: Shaun Courtney <shaun@emma.eng.uct.ac.za> To: questions@freebsd.org Cc: laurief@eng.uct.ac.za Subject: user ppp, leased line, getty on server Message-ID: <19990528234959.A53008@emma.eng.uct.ac.za>
next in thread | raw e-mail | index | archive | help
Hi
We are trying to connect two leased line analog modems using user ppp.
(2-wire modems.) Running on -stable as of last week.
We know the modems work, because they have been previously set up
between another ISP and us (us being the client) and it worked. All
we need do was run "ppp -dedicated -alias" and it ran...
The modems connect (deskport p 28.8) and using "cu -l /dev/cuaa1
-s 38400" and "cu -l /dev/cuaA02 -s 38400" on the server, characters
on the server appear in the clients window.
The question is what do we have to do on the server to get it to
work, i.e. run ppp on the line?
I have tried to set up getty on the port: from /etc/ttys
cuaA02 "/usr/libexec/getty std.38400" dialup on insecure
Killed init kill -1 1 and getty runs but never runs
/usr/local/sbin/ppplogin. This has been set up using Method 2 in
the ppp man page. I've left out the chap and pap auth. since the
line is leased point-to-point.
I've tried mgetty, but this hogs the line and the modem never reconnect :(
I've tried setting "set openmode passive" and then running ppp -dedicated SHAUN
and no luck. The client ppp.log lists...:
May 28 22:48:16 emma ppp[1380]: tun0: Command: CS: set dial
May 28 22:48:16 emma ppp[1380]: tun0: Command: CS: set line /dev/cuaa1
May 28 22:48:16 emma ppp[1380]: tun0: Command: CS: set sp 19200
May 28 22:48:16 emma ppp[1380]: tun0: Command: CS: set timeout 900
May 28 22:48:16 emma ppp[1380]: tun0: Command: CS: set log Phase Chat LQM
May 28 22:48:16 emma ppp[1381]: Phase: PPP Started (dedicated mode).
May 28 22:48:16 emma ppp[1381]: Phase: bundle: Establish
May 28 22:48:16 emma ppp[1381]: Phase: deflink: closed -> opening
May 28 22:48:16 emma ppp[1381]: Phase: deflink: Connected!
May 28 22:48:16 emma ppp[1381]: Phase: deflink: opening -> lcp
May 28 22:48:32 emma ppp[1381]: Phase: deflink: Disconnected!
May 28 22:48:36 emma ppp[1381]: Phase: deflink: Carrier lost
May 28 22:48:36 emma ppp[1381]: Phase: deflink: Disconnected!
May 28 22:48:36 emma ppp[1381]: Phase: deflink: Disconnected!
May 28 22:48:37 emma ppp[1381]: Phase: deflink: /dev/cuaa1 doesn't support CD
May 28 22:48:52 emma ppp[1381]: Phase: deflink: Disconnected!
May 28 22:48:53 emma ppp[1381]: Phase: deflink: /dev/cuaa1 doesn't support CD
Here is a clip from the client side (ppp -dedicated CS)
CS:
set dial ""
set line /dev/cuaa1
set sp 38400
set timeout 900
set log Phase Chat LQM
#set login "TIMEOUT 5 ogin:--ogin: ppp word: ppp HELLO"
set ifaddr 192.168.16.2 192.168.16.1
enable lqr
accept lqr
--
This is the snippet from ppp.conf on the server.
SHAUN:
set device /dev/cuaA02
set openmode active
enable proxyall
accept dns
set dns x.x.x.x #(real ip #)
set ifaddr 192.168.16.1 192.168.16.2
set timeout 0
set lqrperiod 10
set log Phase LQM
enable lqr
accept lqr
and /usr/local/bin/ppplogin is:
#!/bin/sh
exec /usr/sbin/ppp -direct SHAUN
The server is already set up to handle dialin ppp connections on 192.168.1.x
and this works fine.
What do we need to do to get this right?
Any pointers would be helpful.
Regards
Shaun & Laurie
--
Faculty of Engineering and the Built Environment
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990528234959.A53008>
