[pptp-server] Live IP logging. Redesigned..
Neale Banks
neale at lowendale.com.au
Mon May 6 19:15:50 CDT 2002
On Tue, 7 May 2002, George Vieira wrote:
> I haven't been on the list for a long time and currently still not on the
> list but I've made changes to the PPPD ip-up.local script which logs the
> live IP to a log file and thought you guys may like it as it doesn't use
> GREP which is messy and slower. With little more effort, I could write it to
> log the authenticated username against the Live IP as well..
Either I've missed something here, or the existence of "Local IP number"
as param $4 to ip-up allows us to reduce this to something like:
<snip>
#!/bin/bash
DATE=`date +\"%d/%m/%y\"`
PPPIP=$4
echo "$PPPIP"
echo "[$DATE] $PPPIP " >>/var/log/pppd.log
</snip>
Or is having the "Local IP number" a Debianism (surely not?)?
HTH,
Neale.
More information about the pptp-server
mailing list