1. jalankan perintah dibawah ini
wget https://git.io/vpnsetup -O vpnsetup.sh
2. Jalankan script vpnsetup.sh hasil download no1
sh vpnsetup.sh
3. jika sudah selesai maka akan menampilkan informasi server seperti dibawah ini.
Server IP: 194.233.66.142
IPsec PSK: gUHPHaXJvd3b4LiGBtAs
Username: vpnuser
Password: scK2PeJxq
Menambah akun vpn di file pico /etc/ppp/chap-secrets
"vpnuser" l2tpd "scK2PeJxq" *
Merubah IPSEC di /etc/ipsec.secrets
%any %any : PSK "yi4ThFqfYSWT3sGA4Y9o"
Merubah IP Private VPN, port VPN di /etc/xl2tpd/xl2tpd.conf
[global]
port = 1701
[lns default]
ip range = 192.168.42.10-192.168.42.250
local ip = 192.168.42.1
require chap = yes
refuse pap = yes
require authentication = yes
name = l2tpd
pppoptfile = /etc/ppp/options.xl2tpd
length bit = yes
Merubah MTU, dns koneksi di /etc/ppp/options.xl2tpd
+mschap-v2
ipcp-accept-local
ipcp-accept-remote
noccp
auth
mtu 1280
mru 1280
proxyarp
lcp-echo-failure 4
lcp-echo-interval 30
connect-delay 5000
ms-dns 8.8.8.8
ms-dns 8.8.4.4
jalankan service l2tp
service xl2tpd restart
service strongswan-starter start
Comments
Post a Comment