Skip to content

Instantly share code, notes, and snippets.

@alexsegura
Last active September 3, 2018 13:49
Show Gist options
  • Save alexsegura/536811e481d22119f0b83c62f1091d2e to your computer and use it in GitHub Desktop.
Save alexsegura/536811e481d22119f0b83c62f1091d2e to your computer and use it in GitHub Desktop.
Scaleway private server

https://community.online.net/t/give-internet-access-to-private-network-servers/2805/7

Install OpenVPN server on jump host, and copy client config

wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh
scp client.ovpn private:/root

Copy packages to private server

dpkg -l | grep "^ii"| awk ' {print $2} ' | xargs sudo apt-get -y --force-yes install --reinstall --download-only
scp -r /var/cache/apt/archives/* private:/var/cache/apt/archives/

Install OpenVPN on private server

apt-get install openvpn
apt-get -f install

Change IP in confg file

Run OpenVPN client

openvpn --daemon --config client.ovpn
ip route add 10.0.0.0/8 via < server_ip - 1 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment