Howdy, Stranger!

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


VPN client for linux container
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.

VPN client for linux container

somiksomik Member

Hi,

I want to setup a linux container (no GUI) that will ONLY communicate through a public VPN. So the server will connect through the VPN. No direct access to the server.

I know I can do this by simply installing a VPN software (such as OpenVPN) on my windows machine, but not so sure how to go about for linux.

Also, I need your advice on which VPN service provider to go with.

Comments

  • Well, if openvpn you can install with this scripts: https://github.com/Nyr/openvpn-install

    login in linux with command:
    sudo openvpn --config yourvpnconfig.ovpn

    Thanked by 2somik captainwasabi
  • @PremiumFast_Net said:
    Well, if openvpn you can install with this scripts: https://github.com/Nyr/openvpn-install

    login in linux with command:
    sudo openvpn --config yourvpnconfig.ovpn

    After doing this, all network traffic will be routed through the OpenVPN, just like on windows?

    Thanked by 1shell
  • ulayerulayer Member, Host Rep

    @somik said:

    @PremiumFast_Net said:
    Well, if openvpn you can install with this scripts: https://github.com/Nyr/openvpn-install

    login in linux with command:
    sudo openvpn --config yourvpnconfig.ovpn

    After doing this, all network traffic will be routed through the OpenVPN, just like on windows?

    That's to install a VPN server. I assume you're looking to have your Linux container connect to a VPN provider via a VPN client? Depending on what VPN provider you use, they may have documentation on how to use OpenVPN on CLI.

    For VPN provider, https://cryptostorm.is is nice. Mullvad is also another good option.

    Thanked by 1somik
  • You can start the OpenVPN in the host os and configure the container such that the TUN interface be moved inside the container and serves as the only interface. That way it's guaranteed all connections go through VPN.

    Thanked by 1somik
  • reliablevps_usreliablevps_us Member, Patron Provider

    You can either setup whatever OS you want "Debian, CentOS, Ubuntu .." First then install OpenVPN as @PremiumFast_Net suggested.

    Or just install an OS image that is Pre-configured with openVPN to avoid any errors if you are not a Linux guy.

    Suggestion for pre-configured debian-based images:
    https://www.turnkeylinux.org/openvpn

    Thanked by 1somik
  • Will the server be local (on your home/office) or are you going to remote control it from a datacenter?

    Thanked by 1somik
  • Find a special on stack social and then follow the instructions from that VPN provider. I recommend PIA.

  • @jvnadr said:
    Will the server be local (on your home/office) or are you going to remote control it from a datacenter?

    The VPN client server will be on my localhost. I plan to set it so that all traffic from this specific server will be through the remote VPN provider (maybe PIA since many recommend it).

Sign In or Register to comment.