Date: Thu, 11 Feb 1999 20:58:28 -0500 (EST) From: Chuck Robey <chuckr@mat.net> To: FreeBSD-Hackers@FreeBSD.ORG Subject: ppp server side startup commands Message-ID: <Pine.BSF.4.05.9902112051570.317-100000@picnic.mat.net>
next in thread | raw e-mail | index | archive | help
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). ----------------------------+----------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9902112051570.317-100000>