Sebelum nya saya sudah pernah sharing cara setting VPN dengan PPTP disini dan setting VPN dengan Cisco Connect disini untuk linux Ubuntu.
Kali ini saya akan sharing cara setting VPN L2tp di Linux Ubuntu 2014 LTS,
Cara Setting VPN L2TP di Ubuntu 20.04 :
1. Install paket instalasi l2tp nya dulu :
$ sudo apt-get install network-manager-l2tp
$ sudo apt-get install network-manager-l2tp-gnome
Lalu restart OS Linux Ubuntu nya :
$ reboot
2. Kemudian matikan service xl2tpd dan strongswan :
$ sudo service xl2tpd stop
$ sudo systemctl disable xl2tpd
xl2tpd.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable xl2tpd
$ sudo service strongswan stop
Failed to stop strongswan.service: Unit strongswan.service not loaded.
$ sudo systemctl disable strongswan
Failed to disable unit: Unit file strongswan.service does not exist.
3. Tambah routing di settingan existing WiFi yang kita gunakan :
IP Server VPN IP GW WiFi SubnetMask
10.10.10.10 192.168.0.1 255.255.255.255 UGH 600 0 0 wlp1s0
4. Setting VPN L2TP dari GUI
- Server VPN : 10.10.10.10
- Masukan Pre-Share Key
Tambahkan routing internal yang dibutuhkan :
192.168.1.0 0.0.0.0 255.255.255.0 U 10 0 0 ppp0
192.168.2.0 0.0.0.0 255.255.255.0 U 10 0 0 ppp0
5. Selesai
Semoga bermanfaat untuk pembaca semua.
Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017
Tidak ada komentar:
Posting Komentar