CMAK VPN
OK it kinda works, but not brilliantly.
If you don't press connect in the CMAK VPN box when it is brought up, RDM times out and throws an error about how rasphone couldn't dial the connection. (unable to connect to the VPN with -d "CMAKVPN": rasphone.exe)
Info[03/09/2009 17:58] Opening VPN with command line: rasphone.exe -d "CMAKVPN"
Info[03/09/2009 17:59] System.InvalidOperationException: Process must exit before requested information can be determined.
at System.Diagnostics.Process.EnsureState(State state)
at System.Diagnostics.Process.get_ExitCode()
at Devolutions.RemoteDesktopManager.Managers.VPNManager.OpenMicrosoftVPN(VPNConnection aVPN)
If you do connect, rasphone prompts that you're going to be disconnected from the VPN in 30, 29, 28... and counts down. It gives you an option to stay online or disconnect now.

Other than that, it works well.
BUT....
I've been playing around with the CMAK entry in rasphone.pbk, and I've managed to find a way to get rasdial to dial the CMAK connection. There are 2 lines in rasphone.pbk that need changing to acomplish this. These are:
Type=4 (change this to 2, so it should be Type=2)
CustomRasDialDll=%windir%\system32\cmdial32.dll (delete this dll path, so it should be CustomRasDialDll=)
Once you change those 2 entries, you can successfully get rasdial to call the connection, AND you can pass username / password / domain via the command line.
So, is there an easy way for you to change the code to edit the rasphone.pbk? Hopefully this is of some use to you.
If you want, I will create a CMAK VPN profile for you pointing to a test server. I can pm you the file if you wish if it makes your life a little easier?
Thanks, and good luck!
Keith.
CMAK VPN
That's fine, let me know as and when. :)
Cheers.
Hi,
The CMAK will be in the next beta. I will notify you so you can test it for me, maybe tomorrow.
Thank you
David Hervieux
Devolutions inc.
CMAK VPN
Hi David,
Yes I'd gladly test for you. It's a feature that I'm sure will enrich the program.
I have a few more ideas which I'll add to the features forum.
Thanks.
Keith
Hi,
I'm currently refactoring the VPN stuff, I will try to add this if you want to do the test for me ?
David Hervieux
Devolutions inc.
CMAK VPN
Hmm,
rasdial cannot handle CMAK profiles to connect, but it CAN disconnect them.
You can however call the CMAK connection using rasphone, but I don't see a way to pass username / password / domain and auto connect.
I did find this group discussing the implementation of this feature, but as a non-programmer, it doesn't mean much to me.
Maybe this makes sense to you?
Maybe as a last alternative, you could implement an option on the VPN page that says, CMAK VPN? with a tick box, and if ticked, it blanks the username / password boxes and calls the VPN via rasphone (but means the user will have to manually enter username/password in the VPN connection box and click connect).
rasphone -d "%vpnconnection%"
Then you can use rasdial "%vpnconnection% /disconnect to disconnect the VPN connection.
Do you think that is a possible feature to include in the next release? Or does it sound like an unnecessary feature? Surely I'm not the only one using CMAK for VPN.
Thanks.
Keith.
edited by kellycomputerservices on 8/6/2009
CMAK VPN
Maybe not a bug as such, but VPN connections don't initiate if the VPN was created by Windows CMAK.
'Unable to open the VPN Connection...'
Is there a debug or pipe feature that I can grab a log for you to look at?
Obviously the workaround would be to manually create the VPN Tunnel, but this is an issue if you run Vista connecting to an SBS2008 VPN. There are issues with split tunneling, and you have to use CMAK to create a split tunnel so not to use the VPN as default gateway (this is the only workaround I've found that works well so far).
Thanks.
Keith.