Scipt Establishment of VPN Connection using JScript

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Colleagues

This is hopefully a straightforward requirement, the configuration is as follows

Two SBS 2000 systems located in different locations wish to exchange a set of files securely using FTP over a VPN (connected over the Internet using PPTP with encryption)

Manually establishing the connection works correctly, and the files can be exchanged. What I would like to put together is a JScript script that can execute automatically at off hours to connect to the other system, retrieve some files, and then process them

I am probably not looking in the correct place, but I have not found the correct way to basically perform a RASDial operation on the correct stored connection

Assistance is appreciated

- Bob
 
Make sure you are using demand-dial (or site-to-site VPN) for communicating
between the 2 systems. Once you have that configured, you can directly
initiate the network traffic which will cause the connection to be dialed.

--
Kadir

(e-mail address removed) [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.

Bob Gezelter said:
Colleagues,

This is hopefully a straightforward requirement, the configuration is as follows:

Two SBS 2000 systems located in different locations wish to exchange a set
of files securely using FTP over a VPN (connected over the Internet using
PPTP with encryption).
Manually establishing the connection works correctly, and the files can be
exchanged. What I would like to put together is a JScript script that can
execute automatically at off hours to connect to the other system, retrieve
some files, and then process them.
I am probably not looking in the correct place, but I have not found the
correct way to basically perform a RASDial operation on the correct stored
connection.
 
Kadir

Perhaps I do not understand what you are saying

On both systems, the links to the Internet are up 24x7. The VPN is desired to be brought up on demand. Just referencing the address of the VPN'ed tunnel will not, as I understand routing work
- there is a default route to the Internet, any address without an explicit routing rule attempts to traverse the default rout
- there is no interface to refer to until the VPN is established

I need a scriptable equivalent to RASDial (or alternatively Start->Settings->Network Connections->(ConnectionName)->Connect (and then the ability to tear down the connection when done)

- Bob
 
Bob,

Refer to the section "To Create a Two-way VPN Connection to the Remote
Office". This talks about how to associate an interface with a routing entry
so that connection will be established when the traffic starts flowing. This
should ideally support your case.

Even otherwise, doesn't rasdial.exe provide you the facility to dial the
connection from command line? I don't know JScript but I think there should
be a way to invoke rasdial.exe from JScript.

--
Kadir

(e-mail address removed) [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.

Bob Gezelter said:
Kadir,

Perhaps I do not understand what you are saying.

- there is a default route to the Internet, any address without an
explicit routing rule attempts to traverse the default route
- there is no interface to refer to until the VPN is established.

I need a scriptable equivalent to RASDial (or alternatively
Start->Settings->Network Connections->(ConnectionName)->Connect (and then
the ability to tear down the connection when done).
 
Forgot to mention the link:
http://www.microsoft.com/canada/par...ing a Remote Office to a SBS 2000 Network.DOC

--
Kadir

(e-mail address removed) [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.

Kadirvel C Vanniarajan said:
Bob,

Refer to the section "To Create a Two-way VPN Connection to the Remote
Office". This talks about how to associate an interface with a routing entry
so that connection will be established when the traffic starts flowing. This
should ideally support your case.

Even otherwise, doesn't rasdial.exe provide you the facility to dial the
connection from command line? I don't know JScript but I think there should
be a way to invoke rasdial.exe from JScript.

--
Kadir

(e-mail address removed) [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.

Bob Gezelter said:
Kadir,

Perhaps I do not understand what you are saying.

On both systems, the links to the Internet are up 24x7. The VPN is
desired
to be brought up on demand. Just referencing the address of the VPN'ed
tunnel will not, as I understand routing work:
- there is a default route to the Internet, any address without an
explicit routing rule attempts to traverse the default route
- there is no interface to refer to until the VPN is established.

I need a scriptable equivalent to RASDial (or alternatively
Start->Settings->Network Connections->(ConnectionName)->Connect (and then
the ability to tear down the connection when done).
 
Back
Top