Ech0 - 12 / 08 / 2020

VPS-Hosted OpenVPN server:

You may want a VPS hosted vpn server in case you wish to conduct activities through a trusted vpn server. (which gives you the power over the logs).




With this solution, you can terminate the server itself if you want after you're done.

-DigitalOcean
-Droplet (Debian 10)
-Plan: Basic ($5/mo)
-Location (a region that isn't where you live)
-ssh keys or password

Once the droplet is created just log into it:



	[ 192.168.122.1/24 ] [ /dev/pts/13 ] [~]
	→ ssh root@164.90.155.222
	The authenticity of host '164.90.155.222 (164.90.155.222)' can't be established.
	ECDSA key fingerprint is SHA256:m829SX8NOlOUnlm2fzokZJ5XMT6gxJoyNceCYOB8gms.
	Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
	Warning: Permanently added '164.90.155.222' (ECDSA) to the list of known hosts.
	Linux debian-s-1vcpu-1gb-sfo3-01 4.19.0-8-cloud-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64
	
	The programs included with the Debian GNU/Linux system are free software;
	the exact distribution terms for each program are described in the
	individual files in /usr/share/doc/*/copyright.
	
	Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
	permitted by applicable law.
	root@debian-s-1vcpu-1gb-sfo3-01:~#

Angristan's Script:

Angristan made a very powerful script that allows us to run our own vps hosted vpn server very easily, check him out here:

	wget https://raw.githubusercontent.com/ech1/serverside/master/ovpn/openvpn-install.sh
	chmod +x openvpn-install.sh
	./openvpn-install.sh

for starters just hit enter at everything, if you know what you're doing feel free to change options during the installation.

Getting the .ovpn file:



To get the ovpn file just use python's simplehttpserver module



	root@debian-s-1vcpu-1gb-sfo3-01:~# ls -lash | grep ovpn
	4.0K -rw-r--r--  1 root root 2.7K Aug 12 15:41 nothing.ovpn
	root@debian-s-1vcpu-1gb-sfo3-01:~# python -m SimpleHTTPServer 9099
	Serving HTTP on 0.0.0.0 port 9099 ...

then just download it to your local machine:



	[ 192.168.122.1/24 ] [ /dev/pts/7 ] [~]
	→ wget http://164.90.155.222:9099/nothing.ovpn
	--2020-08-12 18:43:48--  http://164.90.155.222:9099/nothing.ovpn
	Connecting to 164.90.155.222:9099... connected.
	HTTP request sent, awaiting response... 200 OK
	Length: 2764 (2.7K) [application/octet-stream]
	Saving to: ‘nothing.ovpn’
	
	nothing.ovpn               100%[=====================================>]   2.70K  --.-KB/s    in 0s
	
	2020-08-12 18:43:48 (52.1 MB/s) - ‘nothing.ovpn’ saved [2764/2764]
	
	
	[ 192.168.122.1/24 ] [ /dev/pts/7 ] [~]
	→ ls -lash | grep ovpn
	 12K -rw-r--r--  1 nothing nothing 9.3K Aug  3 12:18 Ech0777.ovpn
	4.0K -rw-r--r--  1 nothing nothing 2.7K Aug 12 16:41 nothing.ovpn

And that's it, you may now use the .ovpn file with whatever client you wish for example openvpn or your distro's built in vpn utility:


	[ 192.168.122.1/24 ] [ /dev/pts/7 ] [~]
	→ sudo openvpn nothing.ovpn
	[sudo] password for nothing:

Check that the ip is different:



You can check it on ipleak.net:

And that's it! you now have your own self hosted vpn server.

My Bunker

Some Address 67120,
Duttlenheim, France.

About Ech0

This cute theme was created to showcase your work in a simple way. Use it wisely.