On 24-Jun-98 Robert W. Canary wrote:
> Hi,
> 
> I posted this already but I will reword it to make more since.
> 
> I some users that can dial into my Linux box for Internet access.  All
> connections are PPP/PAP. I am also using mgetty to answer the call and
> auto detect ppp.
> 
> I am trying to create a script which logs all the connection
> infomation
> in one log file. Where are, and what are the variables that hold the
> values of the following information:
> 
> 1. current connections (pppx)
> 2. physical device (ttyC0)
> 3. modem connection speed (33600, 28800)
> 4. username of the logon
> 
> thanks in advance :-)
> --
> robert

Whenever an IP connection is brought up by pppd, it calls /etc/ppp/ip-up.
/etc/ppp/ip-up is a RedHat script.  It will call /etc/ppp/ip-up.local if it
exists.   The paramaters it gets passed are these:

interface-name  tty-device  speed  local-IP-address remote-IP-address

The username you can get from utmp or /var/log/messages or possibly adding an
entry in PAM to make it log it in a special place for you.

--
Steve Borho <[EMAIL PROTECTED]>


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to