Skip to content

Instantly share code, notes, and snippets.

@moElwan
Last active July 10, 2022 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moElwan/7dcbd2f3088e32c1617ad0208f4f7c45 to your computer and use it in GitHub Desktop.
Save moElwan/7dcbd2f3088e32c1617ad0208f4f7c45 to your computer and use it in GitHub Desktop.
Create a private openvpn [Working in Egypt]

Credits to this YT tutorial

Server installation

On the server please run

sudo apt-get update
sudo su
apt -y install git openvpn openconnect net-tools vim
git clone https://github.com/angristan/openvpn-install.git
cd openvpn-install/
chmod +x ./openvpn-install.sh && ./openvpn-install.sh

Configuration

In configuratios used defaults except: Port: please use custom -> 443 - This should bypass any restrictions to the default ports protocol: TCP

Once done, You should get the .ovpn configuration path, Please copy to your local machine to connect to the server

Client connection - Linux

From your local please install openvpn

sudo apt -y install openvpn

To connect to the server

sudo openvpn --config ~/YOUR_CONFIG_FILE.ovpn

It's helpful to alies the connection command

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