From owner-freebsd-questions Tue Aug 24 11:29:18 1999 Delivered-To: freebsd-questions@freebsd.org Received: from storm.digital-rain.com (storm.digital-rain.com [204.244.71.70]) by hub.freebsd.org (Postfix) with ESMTP id 380A41507B for ; Tue, 24 Aug 1999 11:29:14 -0700 (PDT) (envelope-from tim@storm.digital-rain.com) Received: from agamemnon.melonville.net (dial-line60.digital-rain.com [204.244.94.60]) by storm.digital-rain.com (8.9.1/8.9.1) with SMTP id LAA20232; Tue, 24 Aug 1999 11:28:01 -0700 (PDT) Message-Id: <3.0.2.32.19990824112741.00b7ac40@storm.digital-rain.com> X-Sender: tim@storm.digital-rain.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.2 (32) Date: Tue, 24 Aug 1999 11:27:41 -0700 To: Erik Meyer From: Tim Baird Subject: Re: callback? Cc: freebsd-questions@freebsd.org In-Reply-To: References: <3.0.2.32.19990823152048.00b82da0@storm.digital-rain.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 11:21 AM 24/08/99 +0200, you wrote: > > > >On Mon, 23 Aug 1999, Tim Baird wrote: > >> Is the number to be called back a fixed and known number? > >Yes it is, or well they really want like a solution where they can choose >between like 4 or 5 numbers to dial, but thats a later problem for me to >solve :) So just assume its a fixed and known number. The simplest way I solved this in the past was to have a simple script replace the login shell for a particular user(s) so that when they called in, they logged in (shell style with login prompt) and the script placed a "bird dropping" file in a particular area and dropped the line. A cron process was set up to check that area for the presence of the file (every minute or so)...indicating someone had dialed in. The cron process then initiated a dial-out process to a fixed number. The receiving end would be waiting to accept the call and establish a ppp session. To allow for multiple call back numbers, you could assign different numbers to "call-back users". The bird dropping file would contain a reference to a specific number and the cron process would feed that reference to the dial out process. For example, you could have the script drop the username into the bird dropping file and have the cron process fire up a ppp process such as: ppp `cat /tmp/bird-drop` where /tmp/bird-drop is the name of the file created by the login script and contains the name of the ppp.conf label related to the specific call-back number..... I hope this is enough of a clue..... > > >> >> At 01:31 PM 23/08/99 +0200, you wrote: >> >I have a problem. >> > >> >I want a FreeBSD machine to act as a callback server. >> >And i have a bit trouble setting it up. >> > >> >It should work like this: >> > >> >Client dials in to it. >> >Server dials back. >> >ppp connection established >> > >> >Anyone who can give me a hand with it? >> > >> >thnx in advance >> > >> >//Meyer >> > >> >---- >> > Erik Meyer erik-m@display-umea.se >> > work(090177950) home(090-27177) >> > 'once upon a time there was a thing called MMX' >> > ---- >> > >> > >> > >> >To Unsubscribe: send mail to majordomo@FreeBSD.org >> >with "unsubscribe freebsd-questions" in the body of the message >> > >> > >> > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message