Cara Menginstal OpenVPN di IPv6 VPS
Cara Menginstal OpenVPN di IPv6 VPS
Diposting diDalam tutorial ini, kita akan menginstal OpenVPN pada VPS IPv6, selain itu, kita juga akan membuat VPS IPv6 dapat terhubung ke jaringan IPv4 dan IPv6 sehingga pengguna OpenVPN tidak harus memiliki IPv6.
Persyaratan: Ubuntu 20.04 & IPv6
- Jika Anda belum memiliki VPS, Anda dapat membuat VPS ipv6 gratis di Hax.co.id, VPS gratis Hax di-host di Singapura sehingga koneksi mungkin lambat ke UE/AS kecuali di Asia jadi gunakan server ini hanya untuk belajar , ini adalah IPv6 saya:
- Periksa tutorial ini untuk cara menghubungkan ke ipv6 vps
- Pastikan TUN sudah aktif di VPS Anda, periksa dengan menggunakan perintah ini
jika hasilnya File descriptor dalam keadaan bad maka anda sudah siap untuk menginstal openvpn, jika tidak silahkan aktifkan TUN dengan mengikuti tutorial ini : Cara Mengaktifkan TUN/TAP di VPS
- Let’s start installing OpenVPN
Please follow the example below:
When the installation is complete, you will see something like below
- The generated openvpn configuration will be stored in /root/hax.ovpn
- Get your IPv4 and Port by using this tool: IPv4 to access IPv6
Please remember that in the previous steps we have set the openvpn port is 1194 (TCP) so you have to set the destination is [ipv6]:1194 and the protocol is TCP, for ipv4 port, you can use any port, in this example I am using port 2233 as the image below - Next, return to your VPS then use your favorite editor to modify the configuration
Change remote xxxx:xxxx:xxxx:xxxx 1194 to your IPv4 and port we just created in previous step
in my case, fromto
and please remove these lines
here is my final configuration
- Download the openvpn config to you device, you can use any sftp file manager to connect to your VPS and download from /root/ location. Because I’m too lazy to use other application, I just copy the configuration and create new file on my android or pc then paste it there.
feel free to use any method you like, if you want to follow my method, use this command to show all configuration then block all text from top until bottom - Verify your openvpn status and allow traffic forwarding
OpenVPN should be there on port 1194
copy and paste this to your VPS to allow port fowardingthen run this command to set iptables, please change 2001:470:1:be9:0000 with your IPv6
- Everything is set up now, you can try connecting to your IPv6 VPS using OpenVPN Connect
Here are additional steps to use OpenVPN with SNI
modify your openvpn’s configuration and add this payloadyou can change 194.124.35.115 with your squid proxy, in this example we are using a free squid proxy from https://howdy.id/proxy-server/, in the near future we will write the tutorial how to setup your own squid proxy. Also, change tiktok.com with your real SNI then save it.
Just for your information, the Hax VPS is currently hosted in Singapore but uses DNS64 from europe so it’s a bit slow/laggy as traffic has to move from Singapore to Europe then to your location so when you test openvpn on your device it might be slow at first but keep patient and wait. we will try to deploy our own DNS64 as soon as possible to avoid this issue later.
- Testing on Openvpn Connect
Post a Comment for "Cara Menginstal OpenVPN di IPv6 VPS"