Forum / Remote Desktop Manager - Feature Request

Status for rasdial.exe VPN connections?

  • Create an Issue
  • Cancel

Hi!

Often times when I connect to a VPN session using Microsoft VPN, and something goes wrong, it simply closes tche session without providing any error information.

Would it be possible to display the output of rasdial.exe in the "Opening VPN connection" window, and keep any error messages visible?

thanks!

Clock8 yrs

Hi,
I will try to add this. You are right this might help.

David Hervieux

signaturesignature

Clock8 yrs

this would defnetly be nice, so you don't have to do the workaround with the rasdial.exe -f

Clock8 yrs

Sorry for the question but what does -f do?

David Hervieux

signaturesignature

Clock8 yrs

I think he means rasphone.exe -f, which you use to specify the .pbk file to load.

Actually this would be a solution! just use rasphone instead of rasdial, then we get a GUI and error message from Windows.
<em>edited by alphanimal on 8/27/2011</em>

Clock8 yrs

I recently had some VPN troubles again and thought about this thread smile

Any chance of getting this implemented?

Cheers!
Daniel

Clock7 yrs

Hi,
It's now implemented and it will be in the next beta release. It's now an option in the configuration to display the output when the connection fails
<em>edited by dhervieux on 12/31/2011</em>

David Hervieux

signaturesignature

Clock7 yrs

Hi!

thanks for the update!

Being able to see errors is very useful!

One minor problem:
The character encoding seems to be wrong when you display the message from rasdial.exe. All those '?' should be German Umlaut characters or ß (Eszett)

image

Also I was hoping you could use rasphone.exe instead of rasdial.exe so we can actually see Windows' status window and error messages.

Also what's a bit inconvenient, is that RDM doesn't know if a VPN is already active or not.
Example: You open session A, VPN gets connected, then you open session B, which dies not connect VPN since it can already reach the host.
Then you close session A, RDM asks if you want to close VPN, but you say No because you still work on session B.
Then you clode session B, but since it didn't connect a VPN in the firct place, the VPN stays open and there's no easy way to close it.

All the VPN connecting/disconnecting could be managed a bit better imho.

Thanks for all your support so far! Your product is really useful for us.

Have a happy new year!

cheers,
Daniel

Clock7 yrs

Hi,
I will verify what I can do for the encoding problem. For rasphone, have you try to check the option "Use rasphone (Connection Adminsitrator Kit)". Have you try to link you VPN with a VPN group? This allow you to only close the VPN when all the session are closed. It's in the VPN tab page.
<em>edited by dhervieux on 1/2/2012</em>

David Hervieux

signaturesignature

Clock7 yrs

Hi!

The problem with this option (or with using rasphone in general) is that you can't provide credentials from the DB.

Can you explain to me in simple words how VPN groups work or where I can create one? I couldn't find it.
I should rtfm I guess... smile

Clock7 yrs

maybe this helps to handle credentials in rasphone
http://msdn.microsoft.com/en-us/library/windows/desktop/aa377811%28v=vs.85%29.aspx

Clock7 yrs

Thank you for the API, I will try to find a little hour to do a test with it. For the VPN group, it's simple. You set a name to a group to create the link. If a session with a VPN Group is already opened, the application increase the counter and wait for all the session to be closed to finally close the VPN.

VPNGroup

Just be careful. I've found little bug with the enable of the VPN Group, just click twice on the close combo session to enable it. This will be resolved in the next beta

David Hervieux

signaturesignature

VPNGroup.png
Clock7 yrs

David Hervieux wrote:

It's now an option in the configuration to display the output when the connection fails

I see it's actually just a timeout and sometimes (when internet bandwidth is low) I get an error box saying "Connecting ..."
No real problem but it feels a bit weird/unfinished in combination with the encoding problem smile

So, if you somehow manage to get the rasphone API working, that would be awesome.
This would make managing VPNs so much easier.

Another small sugegstion:
In the MS VPN Type, where you select the .pbk file, you could add an Edit button that opens the .pbk file in rasphone, so the user can easily edit it.

Thanks and have a nice day!
Daniel

Clock7 yrs

Oh and big thanks for the hint with the VPN Group. Works like a charm

Clock7 yrs

Hi,
I have added the edit button and also I think (I can't test it) that I have resolved the encoding issue. This will be in the next beta release.

David Hervieux

signaturesignature

Clock7 yrs

Thanks! The edit button works well. I'd put it next to the pbk file box though (you edit the whole file, not only one entry)

The encoding is still not right.

image

Attached is the raw output from my rasdial.exe. Should be ANSI.

rasdial_raw_output.txt
Clock7 yrs

Thank you. I have changed to ANSI this time.

David Hervieux

signaturesignature

Clock7 yrs

For the edit button, your right that for editing the whole file but I was not sure how to put it because you can edit the selected ppk and the default also.

David Hervieux

signaturesignature

Clock7 yrs

David Hervieux wrote:

Thank you. I have changed to ANSI this time.

Alright thanks!

David Hervieux wrote:

For the edit button, your right that for editing the whole file but I was not sure how to put it because you can edit the selected ppk and the default also.

Oh I see, it's perfect then smile

Clock7 yrs

Could you try this updated binaries (same version but with the encoding fix):

http://remotedesktopmanager.com/download/Devolutions.RemoteDesktopManager.Bin.6.9.7.0.zip

David Hervieux

signaturesignature

Clock7 yrs

The encoding seems still wrong here.

I figured out the encoding coming from rasdial.exe (or any command line program?) is an ASCII / DOS encoding.
It should work with any common DOS encoding, for example CP437 (DOS US) CP850 (DOS Latin 1) or CP852 (DOS Latin 2)

to check, 0x81 must translate to ü

attached you find another raw output from my rasdial.exe

this is how it should look like when decoded correctly:

Verbindung herstellen mit Braun...
Benutzername und Kennwort werden überprüft...

RAS-Fehler 718 - Die Verbindung wurde beendet, da die Antwort vom Remotecomputer nicht rechtzeitig erfolgte.

Weitere Hilfe zu diesem Fehler erhalten Sie folgendermaßen:
Geben Sie folgendes ein: "hh netcfg.chm"
Klicken Sie in der Hilfe auf "Fehlersuche" und dann auf "Fehlermeldungen" und auf "718".

rasdial.txt
Clock6 yrs

The one I was using was CP1252 but it does not seem to work

David Hervieux

signaturesignature

Clock6 yrs

Hi,
You will be able to specify the codepage in the next version. For now it will be directly in remotedesktopmanager.cfg

CommandLineCodePage

David Hervieux

signaturesignature

Clock6 yrs

Just found out something - try this:

Start CMD, type "chcp"

I get "Aktive Codepage: 850.", so for me Latin-1 would be the correct one. I don't know how it behaves on other Windows versions though.

Maybe you could find out cmd's encoding automatically using that command or something similar...

Clock6 yrs

If you execute cmd.exe with the /u parameter, any output will be encoded in UTF-16 btw.

maybe that's a simpler solution. But I guess you don't start cmd directly from RDM, but rasdial.exe

Clock6 yrs

Hi,
The setting will be there but I will set it as CP 850 by default now

David Hervieux

signaturesignature

Clock6 yrs

OK, great! thanks!

Clock6 yrs