Skip to content

Instantly share code, notes, and snippets.

@paseaf
Last active January 29, 2022 17:07
Show Gist options
  • Save paseaf/cf353fc9d3e634fc6e5496635a0c9304 to your computer and use it in GitHub Desktop.
Save paseaf/cf353fc9d3e634fc6e5496635a0c9304 to your computer and use it in GitHub Desktop.
Set up an OpenVPN Server and Client

On a Linux Server machine

curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh
chmod +x openvpn-install.sh
./openvpn-install.sh

Select add a client, and give it any name you like. A your_client_name.ovpn will be generated in the home folder.

Read more here: https://github.com/angristan/openvpn-install#usage

On a Linux CLient with GUI

Download the your_client_name.ovpn from your Linux server machine

scp <username>@<server_host_name>:<path_to_your_client_name.ovpn> .

In GUI: Go to Settings -> Network, find VPN settings, and add a new VPN connection by selecting "import from a config file"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment