How to have an RDP session with a machine on VPN?

"Please leave a message at the beep, we will get back to you when your support contract expires."

Moderators: phlip, Moderators General, Prelates

jacques01
Posts: 42
Joined: Thu Oct 08, 2015 4:56 am UTC

How to have an RDP session with a machine on VPN?

Postby jacques01 » Mon Oct 24, 2016 1:20 am UTC

RDP = Remote Desktop Protocol

I've tried googling this, but Google thinks I'm asking this question:

"I have turned my VPN on. How can I remote desktop into another machine?"

My question is the opposite.

"I have a remote Windows machine which needs to run on a VPN.

-When the VPN is off, I can Remote Desktop into the Windows VM using it's IP address.
-When the VPN is on, I can no longer Remote Desktop into the Windows VM using it's IP address. This is because it's on a VPN, and therefore the IP address has changed.
-When the VPN is on, I am unable to Remote Desktop into the Windows VM using the VPN IP address.
-When the VPN is on, If I also go on the same VPN, I am then able to RDP into the Windows VM using it's original IP address (not the VPN one).
"

So here is the setup:

- Remote Windows Machine on VPN with VPN IP address.
- I am on my local machine (no VPN)
- How can I Remote Desktop onto the Windows Machine without my local machine going onto the same VPN?

User avatar
Flumble
Yes Man
Posts: 1938
Joined: Sun Aug 05, 2012 9:35 pm UTC

Re: How to have an RDP session with a machine on VPN?

Postby Flumble » Mon Oct 24, 2016 11:42 am UTC

What kind of VPN are you using?
If you want to access a machine from outside the VPN, you'd at least need a gateway inside the VPN that tunnels to the public internet and allows you to open ports (3389 for RDP) and redirect them to the machine within the VPN.

jacques01
Posts: 42
Joined: Thu Oct 08, 2015 4:56 am UTC

Re: How to have an RDP session with a machine on VPN?

Postby jacques01 » Tue Oct 25, 2016 10:39 pm UTC

What kind of VPN are you using?
If you want to access a machine from outside the VPN, you'd at least need a gateway inside the VPN that tunnels to the public internet and allows you to open ports (3389 for RDP) and redirect them to the machine within the VPN.


I am using a VPN using these instructions for Windows 7: https://www.limevpn.com/how-to-use/wind ... tructions/

For follow-up:

(1) How do I set up a gateway inside the VPN?

(2) Do I need to open ports 3389 on the VPN?

jacques01
Posts: 42
Joined: Thu Oct 08, 2015 4:56 am UTC

Re: How to have an RDP session with a machine on VPN?

Postby jacques01 » Wed Nov 23, 2016 3:29 pm UTC

I solved the problem.

There is a way to run a "route" command that allows opening the computer to IPs that ignore the VPN. This allows for RDP while the VPN is on.


Return to “The Help Desk”

Who is online

Users browsing this forum: No registered users and 3 guests