# Membuat Akses VPN dengan L2TP/IPsec

Kami akan memberikan panduan untuk membuat akses VPN Server untuk jaringan internet rumah/kantor (indihome). Akses user menggunakan VPN Windows 11.

**A. Konfigurasi Mikrotik**

1\. Buat IP pool untuk klien VPN

*/ip pool add name=pool-vpn ranges=192.168.89.10-192.168.89.250*

2\. Buat profile PPP untuk L2TP

*/ppp profile add name=profile-vpn local-address=192.168.89.1 dns-server=8.8.8.8 remote-address=pool-vpn use-encryption=yes*

3\. Tambah user (secret) -&gt; Bisa ditambah sesuai kebutuhan

*/ppp secret add name=opd1 password=Dishub2025! service=l2tp profile=profile-vpn*

4\. Aktifkan L2TP server

*/interface l2tp-server server set enabled=yes authentication=mschap2 default-profile=profile-vpn use-ipsec=required ipsec-secret=Kominfo-Hebat2025! max-mtu=1460 max-mru=1460*

5\. Konfigurasi IPsec (policy/proposal)

*/ip ipsec proposal set \[find default=yes\] auth-algorithms=sha1 enc-algorithms=aes-128-cbc,aes-256-cbc pfs-group=none*

6\. Firewall: izinkan paket IPsec &amp; L2TP (UDP 500, UDP 1701, UDP 4500, ESP)

*/ip firewall filter add chain=input protocol=udp dst-port=500,1701,4500 action=accept comment="Allow IPsec/L2TP UDP"*  
*\# Allow ESP (protocol 50)*  
 */ip firewall filter add chain=input protocol=ipsec-esp action=accept comment="Allow ESP"*  
*\# Allow established/related (biasanya sudah ada)*

7\. NAT: masquerade agar client bisa akses internet melalui router

*/ip firewall nat add chain=srcnat src-address=192.168.89.0/24 out-interface=&lt;WAN-INTERFACE-NAME&gt; action=masquerade comment="NAT VPN clients"*

**B. Akses Pengguna VPN**

1\. Buka Setting - Network &amp; Internet

[![image.png](https://dokumen.baritotimurkab.go.id/uploads/images/gallery/2025-10/scaled-1680-/2EciNVuIjFhw1Mgu-image.png)](https://dokumen.baritotimurkab.go.id/uploads/images/gallery/2025-10/2EciNVuIjFhw1Mgu-image.png)

2\. Buka VPN

[![image.png](https://dokumen.baritotimurkab.go.id/uploads/images/gallery/2025-10/scaled-1680-/QSSPQVw9jCEcPL7J-image.png)](https://dokumen.baritotimurkab.go.id/uploads/images/gallery/2025-10/QSSPQVw9jCEcPL7J-image.png)

3\. Add VPN -&gt; isi sesuai password ipsec, username dan passwordnya.

[![image.png](https://dokumen.baritotimurkab.go.id/uploads/images/gallery/2025-10/scaled-1680-/RIRIQMWVGxHCGQlt-image.png)](https://dokumen.baritotimurkab.go.id/uploads/images/gallery/2025-10/RIRIQMWVGxHCGQlt-image.png)

4\. Save

5\. Connect

[![image.png](https://dokumen.baritotimurkab.go.id/uploads/images/gallery/2025-10/scaled-1680-/OMmuYKpEHr5DfOZy-image.png)](https://dokumen.baritotimurkab.go.id/uploads/images/gallery/2025-10/OMmuYKpEHr5DfOZy-image.png)

6\. Jika berhasil maka status Connected

[![image.png](https://dokumen.baritotimurkab.go.id/uploads/images/gallery/2025-10/scaled-1680-/dTCEGJ7F1Z1hBBCb-image.png)](https://dokumen.baritotimurkab.go.id/uploads/images/gallery/2025-10/dTCEGJ7F1Z1hBBCb-image.png)

7\. coba akses browser dan ketikan my ip address. jika berhasil maka ip publik terdeteksi sama dengan ip publik pada VPN Server.

[![image.png](https://dokumen.baritotimurkab.go.id/uploads/images/gallery/2025-10/scaled-1680-/4M2YXZnkvZcUhruU-image.png)](https://dokumen.baritotimurkab.go.id/uploads/images/gallery/2025-10/4M2YXZnkvZcUhruU-image.png)

[![image.png](https://dokumen.baritotimurkab.go.id/uploads/images/gallery/2025-10/scaled-1680-/7104O775AB1k84xB-image.png)](https://dokumen.baritotimurkab.go.id/uploads/images/gallery/2025-10/7104O775AB1k84xB-image.png)

**Video Tutorial**  
<iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="allowfullscreen" frameborder="0" height="535" src="https://www.youtube.com/embed/evgP7zvdvas" title="Panduan Singkat Akses ke VPN Diskominfo Barito Timur" width="720"></iframe>