LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-04-2012, 11:34 AM   #1
nasirkhan
LQ Newbie
 
Registered: Oct 2012
Posts: 6

Rep: Reputation: Disabled
Lightbulb [HELP] How to get the PPTP assigned IP of the client


Hi,
Any body knows about how to get the Assigned IP address and connected time of the PPTP Client on linux.

I need the client Connected time + client assigned IP with a single command.

i tried with " ps aux | grep ppp

but only pptpd-original-ip show.

No remote or pptpd-original-ip
I need the IP which is assigned in chap-secrets to the client.
and time when the user connected using single command

Thanks in advance

Last edited by nasirkhan; 10-05-2012 at 03:36 AM. Reason: title was not meaningfull
 
Old 10-07-2012, 09:10 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 10,266

Rep: Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017
have you tried to look at the log of pptp?
 
Old 10-08-2012, 04:13 AM   #3
nasirkhan
LQ Newbie
 
Registered: Oct 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thumbs down I think you have to read my question again

Quote:
Originally Posted by pan64 View Post
have you tried to look at the log of pptp?
i think you have to read my question again. because i say i need in a single command i don't need in logs i want to see in system process the information.

I need a single command using which i can get any time the current logged in clients on my vpn server.
 
Old 10-09-2012, 05:10 AM   #4
nasirkhan
LQ Newbie
 
Registered: Oct 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
any body who can get the Local ip on the base of remote ip which is in process stat

PS wax | grep ppp [ fetch connects clients list ]
it shows the " pptpd-original-ip " IP
any body can help me how to fetch the local assigned ip on the base of this remote IP

I am new Linux user
 
Old 10-21-2012, 11:28 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,578

Rep: Reputation: 4587Reputation: 4587Reputation: 4587Reputation: 4587Reputation: 4587Reputation: 4587Reputation: 4587Reputation: 4587Reputation: 4587Reputation: 4587Reputation: 4587
Quote:
Originally Posted by nasirkhan View Post
i think you have to read my question again. because i say i need in a single command i don't need in logs i want to see in system process the information.

I need a single command using which i can get any time the current logged in clients on my vpn server.
Yes, we know what you WANT, but you were given the answer. That information is in the log file, whether you like it or not.

Since you know how to use grep, why don't you use it on the log file, to pull out the address??? And when people answer you, try to be a bit nice about it, rather than saying something like "i think you have to read my question again. because i say i need in a single command". Demanding help from people who volunteer, and then being snotty about what you get is pretty rude.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PPTP Server (client to client communication) disciplefk Linux - Networking 3 06-28-2011 02:39 AM
Linux PPTP client fails to connect to Microsoft ISA PPTP server dCriminal Linux - Networking 1 10-27-2009 01:33 PM
LXer: Linux Configure point to point tunneling PPTP VPN client for Microsoft PPTP vpn server LXer Syndicated Linux News 0 06-13-2007 09:46 AM
problems with assigned ip from the pptp server robertos Linux - Networking 0 05-13-2007 03:30 AM
pptp client KeithKessler Linux - Networking 0 05-04-2003 10:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration