LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   centos - pptpd (https://www.linuxquestions.org/questions/linux-newbie-8/centos-pptpd-724712/)

jarias 05-08-2009 12:32 PM

centos - pptpd
 
Hi all,

I already install pptpd module working great.

My questions is how can I see who's currently online via pptp.>

Is there a command I'm missing?.

Best regrads
Jorge

datopdog 05-08-2009 01:17 PM

the w and who commands should be able to provide that info

jarias 05-08-2009 03:12 PM

Quote:

Originally Posted by datopdog (Post 3534821)
the w and who commands should be able to provide that info

Thanks datopdog but it only show whos loggen in will not show the pptp user connected

root :0 - Thu16 ?xdm? 42.68s 0.30s /usr/bin/gnome-session
root pts/1 216.25.164.10 09:56 0.00s 0.15s 0.00


regrads
Jorge

datopdog 05-08-2009 04:19 PM

a pptp connection is considered a remote login and it should appear as well, the last time i ran a pptpd server i could see the users logged in. I can even see l2tpd users on my ipsec/l2tpd vpn

datopdog 05-08-2009 04:21 PM

You can also try the last command.

jarias 05-08-2009 06:05 PM

Quote:

Originally Posted by datopdog (Post 3534996)
You can also try the last command.

if I do a netstat -napt
I can see 1 user connected but I don't wish is the account

tcp 0 0 216.25.163.27:1723 201.207.139.14:10539 ESTABLISHED 3389/pptpd [201.207

If I ran # w who I get

[root@vpnradius ppp]# w who
17:00:40 up 1:10, 1 user, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
[root@vpnradius ppp]#

I'm using chap-secrets

datopdog 05-08-2009 06:08 PM

Okay just check you need the logwtmp option in your pptpd config if you are to use the last command.

jarias 05-15-2009 11:22 AM

Ok I got it

to get all current connetion try this command

# last | grep ppp | grep still

for accountng try this one too

# ac -d -p

thanks
Regrads

Jorge


All times are GMT -5. The time now is 01:17 PM.