Date: Thu, 10 Aug 2000 22:31:48 +1000 From: "Mark Hannon" <markhannon@one.net.au> To: <freebsd-questions@freebsd.org> Subject: ppp -auto and mgetty on same modem Message-ID: <002c01c002c6$f444bea0$02ffa8c0@home.lan>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. ------=_NextPart_000_0028_01C0031A.C5E005C0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0029_01C0031A.C5E005C0" ------=_NextPart_001_0029_01C0031A.C5E005C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I am trying to setup mgetty dialin with autopp for ppp dialins and ppp = -auto on the same modem. I have ppp -auto working. I have mgetty and ppp dialin working.... = However, I have had to resort to some hacks to get the mgetty autoppp script to kill the ppp -auto = before initiating a new ppp session in order to get the dialin to work. When the ppp dialin is = finished I configured ppp.linkdown to restart ppp -auto but it doesn't seem to work and I can't see any = error messages. Setup: FreeBSD 3.4-RELEASE The relevant files: where ppp-dialin is called from mgetty to start the dialin and = ppp.linkdown calls onetel at closure of the dialin ppp session. Anybody got a similar config working? Regards/mark ------=_NextPart_001_0029_01C0031A.C5E005C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>I am trying to setup mgetty dialin with = autopp for=20 ppp dialins and ppp -auto on the same modem.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>I have ppp -auto working. I have = mgetty and=20 ppp dialin working.... However, I have had to resort</FONT></DIV> <DIV><FONT face=3DArial size=3D2>to some hacks to get the mgetty autoppp = script to=20 kill the ppp -auto before initiating a new ppp</FONT></DIV> <DIV><FONT face=3DArial size=3D2>session in order to get the dialin to = work. =20 When the ppp dialin is finished I configured ppp.linkdown</FONT></DIV> <DIV><FONT face=3DArial size=3D2>to restart ppp -auto but it doesn't = seem to work=20 and I can't see any error messages.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Setup: FreeBSD=20 3.4-RELEASE</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>The relevant files:</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>where ppp-dialin is called from mgetty = to start the=20 dialin and ppp.linkdown calls onetel at</FONT></DIV> <DIV><FONT face=3DArial size=3D2>closure of the dialin ppp = session.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Anybody got a similar config = working?</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Regards/mark</FONT></DIV> <DIV> </DIV> <DIV> </DIV></BODY></HTML> ------=_NextPart_001_0029_01C0031A.C5E005C0-- ------=_NextPart_000_0028_01C0031A.C5E005C0 Content-Type: application/octet-stream; name="ppp-dialin" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="ppp-dialin" #!/bin/sh=0A= #=0A= # This is a pretty fragile script, it kills the ongoing ppp -auto=0A= # session, waits a couple of seconds and then starts ppp. At the=0A= # end of the ppp session the ppp.linkdown file will restart onetel=0A= =0A= killall ppp=0A= sleep 2=0A= exec /usr/sbin/ppp -direct incoming=0A= =0A= ------=_NextPart_000_0028_01C0031A.C5E005C0 Content-Type: application/octet-stream; name="ppp.linkdown" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="ppp.linkdown" =0A= onetel:=0A= !bg /usr/bin/killall fetchmail=0A= =0A= incoming:=0A= !bg /etc/ppp/scripts/onetel=0A= =0A= ------=_NextPart_000_0028_01C0031A.C5E005C0 Content-Type: application/octet-stream; name="onetel" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="onetel" #!/bin/sh=0A= =0A= sleep 10; ppp -auto -nat onetel=0A= =0A= =0A= ------=_NextPart_000_0028_01C0031A.C5E005C0-- 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?002c01c002c6$f444bea0$02ffa8c0>