OpenVPN

From AbahDoku Wiki

Update | Upgrade[edit]

apt-get update
apt-get upgrade

Intalasi (cara mudah)[edit]

Ini adalah cara termudah install OpenVPN

curl -O https://raw.githubusercontent.com/Angristan/openvpn-install/master/openvpn-install.sh

Pastikan filenya sudah berhasil download

ls

Berikan hak akses permission

chmod +x openvpn-install.sh

Lanjut ke eksekusi

./openvpn-install.sh

Welcome to the OpenVPN installer!
The git repository is available at: https://github.com/angristan/openvpn-install
I need to ask you a few questions before starting the setup.
You can leave the default options and just press enter if you are ok with them.
I need to know the IPv4 address of the network interface you want OpenVPN listening to.
Unless your server is behind NAT, it should be your public IPv4 address.
IP address: 10.8.80.180

Pilihan Port

1) Default: 1194

Protocol

1) UDP

DNS

3) Cloudflare (Anycast: worldwide)

Lanjutkan dengan pilan 'n' sampai

Press any key to continue...

Tunggu proses Instalasi selesai, sampai diminta untuk mengisi Client name, sebagai contoh isi dgn nama "vpn"

Clinet name: vpn

Pilihan configurasi menggunakan password atau tidak

1) Add a passwordless client

Proses Instalasi OpenVPN Server slesai

Notice
------
Inline file created:
* /etc/openvpn/easy-rsa/pki/inline/vpn.inline
Client vpn added.

Pastikan file confignya sudah ada

ls vpn.ovpn

==Copy file dari SSH server ke Local PC

scp <user>@<ip_server>:~<path/nama_file> ~<target_path>
contoh
scp root@192.168.100.100:~/vpn.ovpn ~/Downloads/

Running OpenVPN Client[edit]

Jalankan OpenVPN Client dengan config di PC Local

openvpn --config vpn.ovpn