VPS disconnection when using VPN

luisqp66

Junior Member
Joined
Jun 27, 2012
Messages
131
Reaction score
12
I installed openvpn on a windows 7 VPS.
Then I try to connect to my VPN using openvpn and as soon as it connects to VPN I have a remote descktop disconection between my computer and my VPS !!

Who knows how to avoid this disconnection between my home computer and my winfows 7 VPS as soon as openvpn connects ?

Thanks
 
No answers ? Ok I will reformulate my problem:

I have a VPS Server hosting Windows Server 7 (bemanhosting)
On this I installed openVPN with strongvpn company.

I can Remote Desktop into the machine successfully (without openVPN running)

When I connect to openVPN it automatically disconnects Remote Desktop and I'm unable to reach the VPS again until I reboot it.

Any ideas or suggestions on what to do to enable openVPN to run on the Host machine, and have Remote Desktop Access to it?

Thank you.
 
You have installed OpenVPN on your Windows VPS as a client or as a server ?

If you did that as a client then your server is probably rewriting the default gateway which is why your RDP is disconnected as all your VPS connection goes thru the VPN gateway/internal ip>external
 
You can use services like NOIP.com which will fix your login issue while you can still use a VPN service.
 
Thanks guys.

I installed openvpn as a client so I can run all softwares without having my static VPS IP banned...

@cgimaster how can i configure server in order it cannot rewrite the default getaway ?

Thanks
 
How is your access currently ?

Your home pc RDP to your VPS that uses openvpn client to a VPN service or it connects to another server of yours that is running openvpn as a server ?

Give me as much detail as possible perhaps you might not even need to do that.
 
How is your access currently ?

Your home pc RDP to your VPS that uses openvpn client to a VPN service or it connects to another server of yours that is running openvpn as a server ?

Give me as much detail as possible perhaps you might not even need to do that.

Thanks cgimaster I sent you PM with all details
 
I'm also having the same issue with same company except the only difference in mine is im using win 2k3 if someone could also help me with this cheers
 
After VPN connection your server changes its IP.
Now just use its local IP in your VPN network to RDP into it.
Also chanci your VPN setup. View logs.es are you have some errors
 
This will sound incredibly simplistic but, have you tried switching the protocol to pptp?

For example, I have a VPS in france with HMA VPN installed on it. Anytime I enable the VPN via openVPN protocol, I get disconnected and can't reconnect as long as the VPN's enabled. But, when I enable the connection through pptp, I can still remotely connect to the VPS's true IP.

Just an idea in case you haven't tried it.
 
Last edited:
open a command prompt and type route add 80.237.246.185 192.168.0.1 Where 80.237.246.185 is the IP of your home PC, and 192.168.0.1 is the IP of your main gateway on the VPS (find by typing "route print" into a command prompt). This should keep your RDP connection on the outside of the VPN.
 
Just googled my problem with various long tail keywords and where in the whole damn internet i found the solution? good ol bhw.

Gonna edit that post tomorrow when i tried to use my vpn on my vps with the workarounds posted here in the thread
 
Just googled my problem with various long tail keywords and where in the whole damn internet i found the solution? good ol bhw.
Gonna edit that post tomorrow when i tried to use my vpn on my vps with the workarounds posted here in the thread

and u bumped a thread not touched since 02-02-2013, 11:04 PM
so share this, amazing
 
How is your access currently ?

Your home pc RDP to your VPS that uses openvpn client to a VPN service or it connects to another server of yours that is running openvpn as a server ?

Give me as much detail as possible perhaps you might not even need to do that.

Thanks cgimaster I sent you PM with all details

Damnn why you guys on pm :( , i have a problem like this too

Just googled my problem with various long tail keywords and where in the whole damn internet i found the solution? good ol bhw.

Gonna edit that post tomorrow when i tried to use my vpn on my vps with the workarounds posted here in the thread

lol looks like we're in the same boat, I never thought my long tail keyword gonna be in this thread BHW 1stpage lmao
 
It probably has to do with how you're connecting to the VPN. If you're not already, download a program called OpenVPN and use that to connect to your VPN while on your VPS. I'm pretty sure that every VPN company out there has OpenVPN config files that you can use, and it won't disconnect you from the server. If I had to guess you're using a piece of software the VPN company produced to connect, and it's probably changing the config of your network adapter. OpenVPN will install a TAP-Win32 driver that will create a new virtual adapter/connection that all your traffic will be routed through. Now to be completely honest that last part about the adapters and drivers I don't know to be 100% true, but based on the little bit that I do know and have read, I'm guessing that how it works. Either way though, if you use OpenVPN you shouldn't have any issues like that.
 
I am having the same exact issue. I googled it and found this page. But in my case, I installed VPN from another company on my Windows 7. When I try to connect VPN, VPS gets disconnected. Based on the above post, I then installed openvpn and then tried to run my VPN application but same problem-it gets disconnected. I tried on 4-5 VPS but same problem.

Interesting thing is that earlier, I was using 2 VPN from different companies and both were working fine on the same VPS. I think there is some setting in the VPS which needs to be changed .

Anyone can help please?
 
Back
Top