[pptp-server] Scripts

George Vieira GeorgeV at citadelcomputer.com.au
Wed Aug 15 15:20:00 CDT 2001


Problem with this script is that it only shows the current connection but
most people want to know (ON CONNECT) which REAL IP it's coming from.

This script also only shows VPN IPs...

But thanks anyway.

-----Original Message-----
From: Brian Collins [mailto:bcollins at newnanutilities.org]
Sent: Wednesday, August 15, 2001 10:14 PM
To: George Vieira; pptp-server at lists.schulte.org
Subject: RE: [pptp-server] Scripts


One of my contractors wrote this script.  Don't know that it's any simpler.

#!/bin/bash
echo
echo Current VPN Users:
echo
/sbin/ifconfig | grep P-t-P | awk -F' ' '{printf"%s\n", $3}' | awk -F: 
'{printf"%s|", $2}' > /tmp/whoson$$.tmp

echo ENDOFFILE >> /tmp/whoson$$.tmp
grep -E -f /tmp/whoson$$.tmp /etc/ppp/chap-secrets| awk -F' ' 
'{printf"%s\t%s\n",$1,$4}'

echo

rm /tmp/whoson$$.tmp

====================

--Brian Collins



More information about the pptp-server mailing list