From owner-freebsd-questions Mon Jun 4 5:19:58 2001 Delivered-To: freebsd-questions@freebsd.org Received: from zeus.dnt.md (dnt.md [195.138.124.37]) by hub.freebsd.org (Postfix) with ESMTP id E059937B401 for ; Mon, 4 Jun 2001 05:19:52 -0700 (PDT) (envelope-from sl@zeus.dnt.md) Received: (from sl@localhost) by zeus.dnt.md (8.11.1/8.11.1) id f54CJnX85284 for freebsd-questions@freebsd.org; Mon, 4 Jun 2001 15:19:49 +0300 (EEST) Date: Mon, 4 Jun 2001 15:19:48 +0300 From: Veaceslav Revutchi To: freebsd-questions@freebsd.org Subject: mgetty, dialin server (need some advise) Message-ID: <20010604151948.A84929@zeus.dnt.md> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG greetings, I am trying to set up a dialin server with four lines. I need to allow full IP access on two of them and email only on the other two. I was thinking about using ipfw to achieve this. For that I need to associate a static IP address with each of the four lines. In the login.config of the mgetty I have this line: /AutoPPP/ - - /etc/ppp/ppp-dialup Now this ppp-dialup script has to check what line (cuaa0...4) the call came in and start the ppp daemon with the right configuration label found in ppp.conf so that this line gets the predefined IP address: exec /usr/sbin/ppp -direct ppp-cuaa0IDENT ...or exec /usr/sbin/ppp -direct ppp-cuaa1IDENT ... and so on. I hope you get the idea. The question is: how can I identify what line the call came in so that I can use the info in my script? If there is a better way of achiving the same thing I would be grateful if you could share. Thanks in advance, slava To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message