Re: Scipt Establishment of VPN Connection using JScript

From: Kadirvel C Vanniarajan [MSFT] (kadirvv_at_online.microsoft.com)
Date: 03/15/04


Date: Mon, 15 Mar 2004 14:22:55 +0530

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
kadirvv@online.microsoft.com [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.
"Bob Gezelter" <anonymous@discussions.microsoft.com> wrote in message
news:C7426A23-9D08-4FB4-A2C7-C0CAA48FBCD5@microsoft.com...
> 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).
>
> - Bob


Relevant Pages

  • Re: Site-to-Site VPN client routing question - clients at branch office not able to acce
    ... it is just a matter of checking the routing tables. ... Your DC might only have one NIC, but as soon as your VPN connection is made it has two IP addresses, so you get all sorts of problems. ... On the RRAS server at HQ, configure a demand-dial interface. ... On the RRAS server in Shanghai, configure a demand-dial interface and give it a static route to 194.1.1.0/24 as above. ...
    (microsoft.public.windows.server.networking)
  • Re: Site to Site VPN with Windows Server 2003
    ... If the username matches one of its demand-dial interface ... You then have a routed connection between the sites. ... If the username does not match the name of any demand-dial interface, ... > Site to Site VPN To setup a Site-to-Site VPN Connection, ...
    (microsoft.public.windows.server.networking)
  • Re: Configuring Cisco VPN Client / Windows XP
    ... This suggests there's something broken with the VPN ... configuration on the target client computer. ... > Given that we see the Ethernet NIC interface and given that we see the VPN ... > access an https page that probably requires connection via the VPN. ...
    (comp.dcom.vpn)
  • Re: RRAS demand dial interface
    ... you can ignore the internal interface. ... if you configure your server for incoming VPN or dialup users. ... but the first connection attempt often fails ... to use the internet connection. ...
    (microsoft.public.windows.server.networking)
  • Re: VPN / Local resources
    ... The Vista VPN is peer to peer VPN and is not design as VPN server. ... Some one may suggest to enable Ip routing. ... Our first site has Windows Xp on its machines ... When setting up a remote desktop connection there is a tab for Local ...
    (microsoft.public.windows.vista.networking_sharing)

Quantcast