Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Does someone use vpn in vps? Why can't I connect?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Does someone use vpn in vps? Why can't I connect?

kaiantkaiant Member
edited September 2021 in Help

I installed ExpressVPN's app on my VPS which is Debian 10 system. I can successfully install and activate.
I keep getting stuck there when I connect. It always shows connecting 75%. But just can't connected.
I have tried to change locations, protocol even systems of VPS. But still can't connect. The provider of VPS said using VPN is allowed on it.
Does anyone know why this happen?
I would be very grateful if anyone can help me solve it!

«1

Comments

  • KVM or OVZ - for OVZ might need to allow tun/tap? Checked firewall?

  • @tetech said:
    KVM or OVZ - for OVZ might need to allow tun/tap? Checked firewall?

    KVM. I have turned firewall off but still can't connect.

  • Do you add masquerade?

  • I run Outline on Debian 10, runs perfectly and easy to install.

  • First of all a VPN in your own VPS is worthless, you want to be lost in the mix, not with a direct link.

  • @SirFoxy said:
    First of all a VPN in your own VPS is worthless, you want to be lost in the mix, not with a direct link.

    I want to download torrent through vps, need to hide ip to avoid copyright complaints

  • @kugyo said:
    Do you add masquerade?

    Could you please explain what's masquerade and how to add it ?Thanks a lot!

  • sudo firewall-cmd --zone=public --permanent --add-masquerade

  • Because when connected to VPN your all traffic default gateway is changed to ExpressVPN's, so incoming from WAN does not work.

    Add static route to your device IP which you are using to connect to the VPS to use your WAN gateway

  • @stvna said:
    Because when connected to VPN your all traffic default gateway is changed to ExpressVPN's, so incoming from WAN does not work.

    Add static route to your device IP which you are using to connect to the VPS to use your WAN gateway

    Could you please tell me how to do it? I am a novice. Thanks very much!

  • @kugyo said:
    sudo firewall-cmd --zone=public --permanent --add-masquerade

    I’m very grateful to you, but My VPS does not have a firewall installed at all. Still need to add masquerade?

  • kaiantkaiant Member
    edited September 2021

    @stvna said:
    Because when connected to VPN your all traffic default gateway is changed to ExpressVPN's, so incoming from WAN does not work.

    Add static route to your device IP which you are using to connect to the VPS to use your WAN gateway

  • @kaiant said:

    @stvna said:
    Because when connected to VPN your all traffic default gateway is changed to ExpressVPN's, so incoming from WAN does not work.

    Add static route to your device IP which you are using to connect to the VPS to use your WAN gateway

    Could you please tell me how to do it? I am a novice. Thanks very much!

    sudo ip route add x.x.x.x via x.x.x.x
                YourPCIP(NotVPS) via DefaultGatewayIP

    Thanked by 1kaiant
  • @kugyo said:
    sudo firewall-cmd --zone=public --permanent --add-masquerade

    he said he turned off firewall. why need this?

  • @stvna said:

    @kaiant said:

    @stvna said:
    Because when connected to VPN your all traffic default gateway is changed to ExpressVPN's, so incoming from WAN does not work.

    Add static route to your device IP which you are using to connect to the VPS to use your WAN gateway

    Could you please tell me how to do it? I am a novice. Thanks very much!

    sudo ip route add x.x.x.x via x.x.x.x
                YourPCIP(NotVPS) via DefaultGatewayIP

    Thank you so much for your help, but after I do this you had told me. The SSH still can't connect after I connect VPN . The same as before

  • jmgcaguiclajmgcaguicla Member
    edited September 2021

    If this was an SE question this would've been closed as low quality in a heartbeat.

    You haven't given enough info, like before even worrying about adding routes and masquerading, have you even checked if the tunnel interface is up?

    "connecting 75%" doesn't tell me jack shit (unless I already use ExpressVPN and for some reason know what the percentages map to in terms of the VPN setup).

    Heck, I don't even know what protocol/suite (OpenVPN, WG, etc.) ExpressVPN uses because you haven't told us.

    LEARN TO ASK GOOD QUESTIONS

    /rant

  • MannDudeMannDude Host Rep, Veteran

    Use https://github.com/angristan/wireguard-install or https://github.com/angristan/openvpn-install and it'll work.

    I have no experience with ExpressVPN but if you're just wanting a quick-n-easy to setup VPN on a VPS then one of the two scripts above will get you setup without issue.

  • @MannDude said:
    Use https://github.com/angristan/wireguard-install or https://github.com/angristan/openvpn-install and it'll work.

    I have no experience with ExpressVPN but if you're just wanting a quick-n-easy to setup VPN on a VPS then one of the two scripts above will get you setup without issue.

    @Nyr original version is better..

    Thanked by 2MannDude Nyr
  • MannDudeMannDude Host Rep, Veteran

    @chocolateshirt said:

    @MannDude said:
    Use https://github.com/angristan/wireguard-install or https://github.com/angristan/openvpn-install and it'll work.

    I have no experience with ExpressVPN but if you're just wanting a quick-n-easy to setup VPN on a VPS then one of the two scripts above will get you setup without issue.

    @Nyr original version is better..

    What are the differences? Those were just the two that came up when I searched for them, though I do recall seeing @Nyr's in the past as well.

    https://github.com/Nyr/wireguard-install & https://github.com/Nyr/openvpn-install

  • @MannDude said:
    Use https://github.com/angristan/wireguard-install or https://github.com/angristan/openvpn-install and it'll work.

    I have no experience with ExpressVPN but if you're just wanting a quick-n-easy to setup VPN on a VPS then one of the two scripts above will get you setup without issue.

    My understanding of the question is that he's subscribed to the ExpressVPN service and is running their client on his VPS.

    I don't really understand the point of doing this rather than installing the ExpressVPN client on a local machine. Furthermore, as pointed out, the question is completely unclear - is the user trying to initiate a connection over ExpressVPN originating from the VPS or originating from a remote computer via the VPS?

    In the latter case, probably has nothing to do with the VPN and is more about traffic redirection (which is why masquerade and /proc/sys/net/ipv4/ip_forward need to be set).

    Thanked by 2MannDude kaiant
  • edited September 2021

    Literally the first result when performing a google search "running vpn client on vps". 🙄

    https://superuser.com/questions/1203940/run-openvpn-client-on-vps

    Thanked by 1kaiant
  • Maybe ExpressVPN is actually connected, but the SSH remote connection is disconnected, which leads to the mistaken belief that it is not connected.
    When I tried to connect to expressVPN, SSH was disconnected, and I could no longer connect to the VPS via SSH. I had to restart the VPS to reconnect to the VPS.

  • @jmgcaguicla said:
    If this was an SE question this would've been closed as low quality in a heartbeat.

    You haven't given enough info, like before even worrying about adding routes and masquerading, have you even checked if the tunnel interface is up?

    "connecting 75%" doesn't tell me jack shit (unless I already use ExpressVPN and for some reason know what the percentages map to in terms of the VPN setup).

    Heck, I don't even know what protocol/suite (OpenVPN, WG, etc.) ExpressVPN uses because you haven't told us.

    LEARN TO ASK GOOD QUESTIONS

    /rant

    I am so sorry about that.Since I am not a English native speaker.
    I guess maybe ExpressVPN is actually connected, but when ExpressVPN connect the SSH remote connection is disconnected.

  • MannDudeMannDude Host Rep, Veteran

    @tetech said:

    @MannDude said:
    Use https://github.com/angristan/wireguard-install or https://github.com/angristan/openvpn-install and it'll work.

    I have no experience with ExpressVPN but if you're just wanting a quick-n-easy to setup VPN on a VPS then one of the two scripts above will get you setup without issue.

    My understanding of the question is that he's subscribed to the ExpressVPN service and is running their client on his VPS.

    I don't really understand the point of doing this rather than installing the ExpressVPN client on a local machine. Furthermore, as pointed out, the question is completely unclear - is the user trying to initiate a connection over ExpressVPN originating from the VPS or originating from a remote computer via the VPS?

    In the latter case, probably has nothing to do with the VPN and is more about traffic redirection (which is why masquerade and /proc/sys/net/ipv4/ip_forward need to be set).

    Ahh, yeah. I'm confused, but the thought that he may be stating he's trying to run the client on a VPS seems to make more sense. I thought maybe ExpressVPN had some sort of, "Install your own VPN on a VPS" type thing and a "connect to it using our own app" sort of thing. That's why my suggestion was to simply use a common OpenVPN or Wireguard installer use some official apps of those protocols and it'll just work.

    Thanked by 1kaiant
  • NyrNyr Community Contributor, Veteran

    @MannDude said: What are the differences?

    I have not checked out the forks for a long time, but mine was the original project and is just way more polished. To put an example, with WireGuard I go to great lengths to make sure that it works almost everywhere including systems with old kernels and also containers. The script also offers a boringtun binary compiled from the sources and even a service which I host to provide automatic updates.

    angristan originally forked my OpenVPN installer because he claimed that my defaults were not secure enough, and he created a fork with increased key RSA lengths and the like, claiming it was more secure and asking for donations. It also tells a lot from him when you notice that he removed the usual notice from GitHub stating that his repo is a fork from my original project.

    Finally, my installer has been steadily updated and improved for nearly a decade already. It is not very fast-moving and I will not implement lots of new and shiny features, but I plan to keep maintaining it for the foreseable future :)

  • @tetech said:

    @MannDude said:
    Use https://github.com/angristan/wireguard-install or https://github.com/angristan/openvpn-install and it'll work.

    I have no experience with ExpressVPN but if you're just wanting a quick-n-easy to setup VPN on a VPS then one of the two scripts above will get you setup without issue.

    My understanding of the question is that he's subscribed to the ExpressVPN service and is running their client on his VPS.

    I don't really understand the point of doing this rather than installing the ExpressVPN client on a local machine. Furthermore, as pointed out, the question is completely unclear - is the user trying to initiate a connection over ExpressVPN originating from the VPS or originating from a remote computer via the VPS?

    In the latter case, probably has nothing to do with the VPN and is more about traffic redirection (which is why masquerade and /proc/sys/net/ipv4/ip_forward need to be set).

    I want to use ExpressVPN on a VPS. I connect to the VPS via SSH.
    , In the Linux system, ExpressVPN is a global VPN proxy service. Could it be that ExpressVPN is actually connected, but when the terminal just prompts connecting 75%, the SSH remote connection is disconnected, leading to the mistaken belief that it is not connected ?

  • @tetech said:

    @MannDude said:
    Use https://github.com/angristan/wireguard-install or https://github.com/angristan/openvpn-install and it'll work.

    I have no experience with ExpressVPN but if you're just wanting a quick-n-easy to setup VPN on a VPS then one of the two scripts above will get you setup without issue.

    My understanding of the question is that he's subscribed to the ExpressVPN service and is running their client on his VPS.

    I don't really understand the point of doing this rather than installing the ExpressVPN client on a local machine. Furthermore, as pointed out, the question is completely unclear - is the user trying to initiate a connection over ExpressVPN originating from the VPS or originating from a remote computer via the VPS?

    In the latter case, probably has nothing to do with the VPN and is more about traffic redirection (which is why masquerade and /proc/sys/net/ipv4/ip_forward need to be set).

    I want to hide my ip by using ExpressVPN for downloading torrents on VPS

  • tetechtetech Member
    edited September 2021

    @kaiant said:

    @tetech said:

    @MannDude said:
    Use https://github.com/angristan/wireguard-install or https://github.com/angristan/openvpn-install and it'll work.

    I have no experience with ExpressVPN but if you're just wanting a quick-n-easy to setup VPN on a VPS then one of the two scripts above will get you setup without issue.

    My understanding of the question is that he's subscribed to the ExpressVPN service and is running their client on his VPS.

    I don't really understand the point of doing this rather than installing the ExpressVPN client on a local machine. Furthermore, as pointed out, the question is completely unclear - is the user trying to initiate a connection over ExpressVPN originating from the VPS or originating from a remote computer via the VPS?

    In the latter case, probably has nothing to do with the VPN and is more about traffic redirection (which is why masquerade and /proc/sys/net/ipv4/ip_forward need to be set).

    I want to use ExpressVPN on a VPS. I connect to the VPS via SSH.
    , In the Linux system, ExpressVPN is a global VPN proxy service. Could it be that ExpressVPN is actually connected, but when the terminal just prompts connecting 75%, the SSH remote connection is disconnected, leading to the mistaken belief that it is not connected ?

    ExpressVPN is probably changing the route table when it connects and killing your remote session in the process. Test it using VNC/provider console.

    @NobodyInteresting said:
    Literally the first result when performing a google search "running vpn client on vps". 🙄

    https://superuser.com/questions/1203940/run-openvpn-client-on-vps

    Read this.

  • @tetech said:

    @kaiant said:

    @tetech said:

    @MannDude said:
    Use https://github.com/angristan/wireguard-install or https://github.com/angristan/openvpn-install and it'll work.

    I have no experience with ExpressVPN but if you're just wanting a quick-n-easy to setup VPN on a VPS then one of the two scripts above will get you setup without issue.

    My understanding of the question is that he's subscribed to the ExpressVPN service and is running their client on his VPS.

    I don't really understand the point of doing this rather than installing the ExpressVPN client on a local machine. Furthermore, as pointed out, the question is completely unclear - is the user trying to initiate a connection over ExpressVPN originating from the VPS or originating from a remote computer via the VPS?

    In the latter case, probably has nothing to do with the VPN and is more about traffic redirection (which is why masquerade and /proc/sys/net/ipv4/ip_forward need to be set).

    I want to use ExpressVPN on a VPS. I connect to the VPS via SSH.
    , In the Linux system, ExpressVPN is a global VPN proxy service. Could it be that ExpressVPN is actually connected, but when the terminal just prompts connecting 75%, the SSH remote connection is disconnected, leading to the mistaken belief that it is not connected ?

    ExpressVPN is probably changing the route table when it connects and killing your remote session in the process. Test it using VNC/provider console.

    @NobodyInteresting said:
    Literally the first result when performing a google search "running vpn client on vps". 🙄

    https://superuser.com/questions/1203940/run-openvpn-client-on-vps

    Read this.

    Woo,thank you so much my friend,it work! I am really really greatful for your warmhearted help.Have a nice day !

  • @kaiant said:

    @tetech said:

    @kaiant said:

    @tetech said:

    @MannDude said:
    Use https://github.com/angristan/wireguard-install or https://github.com/angristan/openvpn-install and it'll work.

    I have no experience with ExpressVPN but if you're just wanting a quick-n-easy to setup VPN on a VPS then one of the two scripts above will get you setup without issue.

    My understanding of the question is that he's subscribed to the ExpressVPN service and is running their client on his VPS.

    I don't really understand the point of doing this rather than installing the ExpressVPN client on a local machine. Furthermore, as pointed out, the question is completely unclear - is the user trying to initiate a connection over ExpressVPN originating from the VPS or originating from a remote computer via the VPS?

    In the latter case, probably has nothing to do with the VPN and is more about traffic redirection (which is why masquerade and /proc/sys/net/ipv4/ip_forward need to be set).

    I want to use ExpressVPN on a VPS. I connect to the VPS via SSH.
    , In the Linux system, ExpressVPN is a global VPN proxy service. Could it be that ExpressVPN is actually connected, but when the terminal just prompts connecting 75%, the SSH remote connection is disconnected, leading to the mistaken belief that it is not connected ?

    ExpressVPN is probably changing the route table when it connects and killing your remote session in the process. Test it using VNC/provider console.

    @NobodyInteresting said:
    Literally the first result when performing a google search "running vpn client on vps". 🙄

    https://superuser.com/questions/1203940/run-openvpn-client-on-vps

    Read this.

    Woo,thank you so much my friend,it work! I am really really greatful for your warmhearted help.Have a nice day !

    expressvpn connect nlam
    Connecting to Netherlands - Amsterdam... 100.0%
    Connected to Netherlands - Amsterdam

Sign In or Register to comment.