Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detect VPN users with login script?

Status
Not open for further replies.

Robbman2000

Technical User
Jun 11, 2003
18
US
VPN gurus....

With my current RRAS server I specify a particular IP address range to remote users. In my login script I can detect these users using their IP address.

With my new configuration I'm using DHCP Relay and am assigning remote clients the same IP address range as internal users.

How would I be able to detect whether the user is local or VPN?
 
OK, I figured this one out so I thought I'd post it for any who needs to know.

For Windows NT/W2K users, you can use the CHECKRAS.EXE utility from the BackOffice Resource kit:


For Windows 95 users, check the registry:

$is_ras=readvalue("hkey_local_machine\system\currentcontrolset\services\remoteaccess","remote connection")
if @error=0 goto RAS endif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top