[pptp-server] How I can know who is connected over my VPN-ser ver (IP-Adress)

George Vieira GeorgeV at citadelcomputer.com.au
Wed Apr 4 17:58:40 CDT 2001


I think there was a message mentioning a quick customised patch to do this
but that was like a month or so ago.... someone else was asking the same
thing.
I think it would be a good idea if pptpd could store an enviroment setting
with the external IP address rather than using a script to detect it. eg.

ip-up.local
----
grep pptp /var/log/secure | grep "$4" | tail -1   # $4 containing the pptp
client IP (or was that $5)...

or whatever.. (I don't know what the tcp_wrappers logs look like to filter
it out)...


thanks,
George Vieira


-----Original Message-----
From: sash [mailto:sash at exoft.tomsk.ru]
Sent: Wednesday, April 04, 2001 9:55 PM
To: pptp-server at lists.schulte.org
Subject: [pptp-server] How I can know who is connected over my
VPN-server (IP-Adress)


> The following logs even failed connections that tcp_wrappers 
> rejects. This
> only works if tcp_wrappers is used.
> 
> The patch also works with latter versions of pptpd.
> 
> "User" is only logged if an ident server is running, so in 
> the case of win9x
> the user is not logged however the ip and hostname is always logged.
> 
> Godfrey
My situation:
I'm using pptpd( from inittab) 
when user connects with my VPN-server, it runs pppd, pppd runs ip-up
script.
This script inserts record (ip-adress for client, User name from pppd
pppd environments) into my SQL-server. When client is down
(disconnected)- pppd runs ip-down script. Thhis script inserts
additional informational such as received and sended bytes, connection
time from pppd environments.
I need a log for my SQL-server from the address the client was connected
!I need an IP address of a clinet.
I can see this information in my syslog but I can't use it
How can I use this information ?
If pptpd set environment about client IP adress this will be good !

Thanks

Sash
> 
> 
> 
_______________________________________________
pptp-server maillist  -  pptp-server at lists.schulte.org
http://lists.schulte.org/mailman/listinfo/pptp-server
List services provided by www.schulteconsulting.com!



More information about the pptp-server mailing list