Automatically connecting to VPN connection over another rasdial connection

N

Nick Marden

OK, so this is a little weird.

I am working on a prototype configuration in which a GPRS modem on a
remote piece of hardware (running Windows XP Embedded) will connect
via VPN to a private network that includes the servers that the remote
hardware needs to communicate with.

The GPRS modem has its own rasdial connection, let's call it X, and
that works just fine.

The VPN connection, let's call it Y, also works fine.

I have configured Y to always dial X before connecting. So if I go to
"Network Connections" and double click on Y, it does exactly what I
want. It dials X, then does the VPN negotiation, and the hardware is
on line and ready to go.

In case you are wondering, Y is marked as my default connection.

However. (That qualifies as a sentence in times like this.)

If I go to Control Panel -> Internet Options and select "Always dial
my default network connection" or "Dial when a network connection is
not present" (either one), and then reboot, I am presented with the
please-click-OK-to-autodial dialog box, and there is even a checkbox
there to allow me to make this dialog box not wait for user input next
time.

But it doesn't work!

If I click "Connect", it says (I am paraphrasing the error message
slightly):

Dialing <my vpn server's hostname>
Attempt 1.
Dialing...
Dialing...
Attempt failed

Likewise, if I go to the command prompt and type this:

rasdial X
rasdial Y

it works just fine.

But if I type

rasdial Y

it does not work just fine. It fails with basically the same error
message as the one I described above.

So no biggie, right? Just have a cmd script that runs the rasdial
commands at bootup, right? Well, I would like to take advantage of the
"redial if line is dropped" option in the rasdial settings for Y, and
if I have no confidence that Y can automatically connect in the case
of X *or* Y failing, then that's not a great solution for a production
environment.

Can anyone help? How do I get the autodial stuff in "Internet Options"
to let me replicate the behavior I have already established in
"Network Connections", namely that Y dials X without human
intervention?

Thanks in advance,

Nick Marden
nick followed by an at sign vert dot net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top