Automatic VPN Connection

  • Thread starter Thread starter Gym
  • Start date Start date
G

Gym

Hello all,

I was wondering if anybody could help me.

My goal is to setup a vpn network for SQL Server 2000 Replication that
is always on.
I have a Windows 2000 Server running as a vpn server.
I have a Windows 2000 client connecting to the vpn.

My problem relates to the establishing of the connection to the vpn.

The connection works, but requires that a user be logged in to the
Windows 2000 client, and manually opening the connection through Network
and Dial-up Connections.

Is there a way to automatically open a connection to the vpn without
requiring a user to be logged in first?

I've tried creating the connection through Network and Dial-up
Connections and setting the HKLM\Software\Microsoft\Windows NT\Current
Version\Winlogon: KeepRasConnections flag. This does seem to keep the
connection alive even after the user logs out, but still requires them
to login to open the connection (and to actually click the Connect
button on the dialog) in the first place.

I've also tried creating a connection via the Connection Manager
Administration Kit. This connection does not require clicking the
"Connect" button on the dialog, but does still require them to open the
connection through Network and Dial-up Connections. Also, this
connection is disconnected after they log out despite the
KeepRasConnections flag being set.

Is there a way of getting either of these to do what I want? Is there
some other way?

Thanks
 
Gym said:
Hello all,

I was wondering if anybody could help me.

My goal is to setup a vpn network for SQL Server 2000 Replication that
is always on.
I have a Windows 2000 Server running as a vpn server.
I have a Windows 2000 client connecting to the vpn.

My problem relates to the establishing of the connection to the vpn.

The connection works, but requires that a user be logged in to the
Windows 2000 client, and manually opening the connection through Network
and Dial-up Connections.

Is there a way to automatically open a connection to the vpn without
requiring a user to be logged in first?

I've tried creating the connection through Network and Dial-up
Connections and setting the HKLM\Software\Microsoft\Windows NT\Current
Version\Winlogon: KeepRasConnections flag. This does seem to keep the
connection alive even after the user logs out, but still requires them
to login to open the connection (and to actually click the Connect
button on the dialog) in the first place.

I've also tried creating a connection via the Connection Manager
Administration Kit. This connection does not require clicking the
"Connect" button on the dialog, but does still require them to open the
connection through Network and Dial-up Connections. Also, this
connection is disconnected after they log out despite the
KeepRasConnections flag being set.

Is there a way of getting either of these to do what I want? Is there
some other way?

Thanks

A small amount of googling gave me this link:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/rasdial.mspx?mfr=true
 
I have never tested it but I've read that you can start your vpn with
rasdial.exe. Perhaps you could put that in a bat file and add it to the
"run" key in the registry so that it connects on startup. Google "vpn"
"rasdial" for more info.
Louis
 
Back
Top