From owner-freebsd-hackers Fri Feb 12 13:05:29 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA06049 for freebsd-hackers-outgoing; Fri, 12 Feb 1999 13:05:29 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA06028 for ; Fri, 12 Feb 1999 13:05:20 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id UAA25031; Fri, 12 Feb 1999 20:59:18 GMT (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (localhost [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.2) with ESMTP id SAA55040; Fri, 12 Feb 1999 18:51:40 GMT (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199902121851.SAA55040@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Chuck Robey cc: FreeBSD-Hackers@FreeBSD.ORG Subject: Re: ppp server side startup commands In-reply-to: Your message of "Thu, 11 Feb 1999 20:58:28 EST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 12 Feb 1999 18:51:40 +0000 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Add ``enable proxy'' for the proxy arp behaviour that you want and something like ``add HISADDR/24 HISADDR'' if you want to route to more than just a single machine. They're automatically removed when ppp exits. > I was wondering if someone can make suggestion here, regarding getting > startup actions run, ON THE PPP SERVER. > > I run user-ppp, where the login is done via chap. The user never has to > enter any password; the getty process recognizes the incoming frame as > a ppp hdlc frame, and starts up a ppp process just fine. The login > works perfectly. > > The problem comes in when, for instance, the ppp user has a second box > that needs to be introduced into the routing. Manually, to do this, on > the server (as root) an arp -s command, and a route add command, has to > be run, then the second box (this is with static ip) works perfectly. > I've tried doing this with either the !bg or sh commands in ppp.linkup, > but those commands seem to be run with the user's permission level, and > the arp and route commands must be run as root. > > There are like commands (arp and route commands) that also have to be > run on ppp takedown, to eliminate the routes. Does anyone know how to > get this automated, so that it happens automatically on ppp startup and > takedown? > > Note that I said that !bg and sh aren't doing it, I think that their > permission levels are wrong. > > ----------------------------+----------------------------------------------- > Chuck Robey | Interests include any kind of voice or data > chuckr@glue.umd.edu | communications topic, C programming, and Unix. > 213 Lakeside Drive Apt T-1 | > Greenbelt, MD 20770 | I run picnic (FreeBSD-current) > (301) 220-2114 | and jaunt (Solaris7). > ----------------------------+----------------------------------------------- -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message