FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
123 views 0 comments
by anonymous
Hi All, How can I see which users are connected by pptp vpn ?

1 Answer

0 votes
by anonymous

Hello,

Toy could try following commands to filter connections on PPTP port 1723:

  • netstat -n | grep 1723

and

  • cat /proc/net/nf_conntrack | grep 1723

They will not provide username details, but will give you connection details an information based on source/destination IPs/hostnames in packet headers.

You can also enter the command:

  • ifconfig

or more specific

  • ifconfig | grep P-t-P

It will provide a list of active PPTP links, as each active connection creates an interface. If there is no connection, there is no interface. The same applies for routes to specific. The command 

  • route -n 

will only show destination IPs of clients, which are connected.

Best regards,