VPN for VPS

dedek

Newbie
Joined
Mar 24, 2021
Messages
41
Reaction score
7
How to turn on VPN on a VPS, when i start vpn, the ip of the entire machine changes and i lose the connection to vps.....
 
Because VPN changes the ip of the VPS

You need proxy on the browser or any app you want to use

USe proxifier
 
How to turn on VPN on a VPS, when i start vpn, the ip of the entire machine changes and i lose the connection to vps.....
I am afraid, you're doing something wrong. Vpn doesn't change the IP of entire VPS. You need to install a VPN with a script from github. Please tell us what exactly you need to get? What VPN technology do you prefer?
 
If you are using aws ec2 instances (other providers may support it too, not sure.), perhaps try using the internal IP of that server for your ssh session?
 
I am afraid, you're doing something wrong. Vpn doesn't change the IP of entire VPS. You need to install a VPN with a script from github. Please tell us what exactly you need to get? What VPN technology do you prefer?
I wanted to run mysterium vpn, but it changes the ip of the entire vps, the vps is on windows server 2019 and I connect to it via rdp
 
The VPN changes the exit ip (the one that you see in Chrome) of the server not the entry ip (the one that you connect to via the rdp client).
You should still be able to connect to the RDP even if it's connected to a VPN.
 
The VPN changes the exit ip (the one that you see in Chrome) of the server not the entry ip (the one that you connect to via the rdp client).
You should still be able to connect to the RDP even if it's connected to a VPN.
In my case, it changes the IP of the entire machine, so it disconnects the RDP connection and cannot connect again until the VPS is restarted.
 
What you need is VPN as an exit, use vps as client to connect to VPN and use VPN exit.
 
Try use same approach to start VPN, but for remote connection don't use server IP, but use NGROK with docker (setup ngrok before VPN start).

This way you will simply use ngrok access point for login (like an IP forwarder), i usually forward only port 22 and access SSH or RDP through same port.

This is good solution for devices behind NAT or if you use dynamic IP too.
 
Alternative solution would be that you start VPN with Gluetun docker, and that you create seperated docker network, with VPN IP.

Then would be easiest way to install system like Ubuntu inside docker. Solution like a WEBTOP from Linuxserver.io it's a pretty neat solution. You can run multiple machines/desktops on same server and with custom VPN IPs.

Oh i see that you are trying to setup Myst node. I already did this test with 100 IPs from VPN, all running on same device through myst docker code and Gluetun docker. I can say that this works for sure, but for me it was not very profitable - but at the end of a day, it did accumulate some myst coins.
 
Last edited:
The VPN changes the exit ip (the one that you see in Chrome) of the server not the entry ip (the one that you connect to via the rdp client).
You should still be able to connect to the RDP even if it's connected to a VPN.
Is there any way to fix it?
 
Bro, just use a proxy instead if you're only masking your traffic. VPNs are a pain for VPS setup
 
Aye, it super roundabout and typically not even worth the trouble unless you're set up is specifically configured to work best with a VPN. Considering your question though, I'd say best consider all your viable options first before going down the VPN setup road.
 
Back
Top