Re: ppp and ip-up
Hamish Moffatt <email@example.com> writes:
> On Tue, Jan 06, 1998 at 09:03:39AM -0500, Alex Yukhimets wrote:
> > > Does ppp run the ip-up and ip-down scripts for incoming connections
> > > as well as outgoing? I added some commands to my ip-up on the server
> > > to set up extra routes when I dial in, but they don't seem
> > > to get run.
> > They DO run here. As for ttyS? or /dev/ttyS? you'd better find this out
> > experimentally: put
> > echo $2 >/tmp/pppdev
> > into ip-up script and check /tmp/pppdev after connection being
> > established.
> Thanks Alex, I will try this out and modify my script
> if I need to. It would be nice if ppp could provide the incoming username,
> so I didn't have to go hunting for it with w.
Um, just how are you starting up ppp? If it's being done with a
script, you might try using the "ipparam" option for pppd to pass
another parameter to /etc/ip-up. You'd probably want to be very
careful security-wise if you did this, though, to make certain that
malicious things couldn't be passed in via ipparam.
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
Trouble? e-mail to firstname.lastname@example.org .