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

Godfrey Livingstone godfrey at hattaways.com
Mon Apr 2 05:02:11 CDT 2001


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


--- pptpd-1.0.0/pptpmanager.c Thu Sep 23 12:01:28 1999
+++ pptpd-1.0.0.patched/pptpmanager.c Mon Sep 25 14:46:51 2000
@@ -188,11 +188,20 @@
       * type deny so probably best to just drop it immediately like
       * this, as tcp wrappers usually do.
       */
+     syslog(LOG_INFO, "CTRL: DENYED by tcp_wrappers connection from %s [%s]
user \"%s\"",
+      eval_hostname(&(r.client)),
+      eval_hostaddr(&(r.client)),
+      eval_user(&r));
      close(clientSocket);
      /* this would never be file descriptor 0, so use it as a error
       * value
       */
      clientSocket = 0;
+    } else {
+     syslog(LOG_INFO, "CTRL: ALLOWED by tcp_wrappers connection from %s
[%s] user \"%s\"",
+      eval_hostname(&(r.client)),
+      eval_hostaddr(&(r.client)),
+      eval_user(&r));
     }
    }
 #endif


sash wrote:

> I want to log who and from here connect to my VPN-server
> In ip-down script I found login name who was connected but I did'n found
> from here
> Help PLS
> Thanks
>    Ganush A
> _______________________________________________
> 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