Skip to main content

MacOS Operating System

Panduan ini menjelaskan cara menginstal dan mengkonfigurasi WireGuard pada MacOS untuk terhubung ke Helium VPN Server.

Langkah Instalasi

  1. Install aplikasi WireGuard dari App Store
  2. Buka WireGuard dan pilih Import tunnels from file
  3. Pilih file konfigurasi VPN Client yang telah Anda unduh sebelumnya. Setelah impor berhasil, konfigurasi akan muncul di daftar tunnel
  4. Klik Activate untuk terhubung ke Helium VPN Server Activate VPN Capture

Langkah Konfigurasi

  1. Konfigurasi akses tunnel WireGuard untuk memungkinkannya mencapai subnet target yang Anda masukkan di Helium Cloud
  2. Contoh Menggunakan Interface en0 (periksa menggunakan perintah ifconfig)
    • Buat konfigurasi NAT:
      sudo nano /etc/pf.anchors/com.helium-nat
    • Tambahkan konfigurasi berikut:
      nat on en0 from 10.250.0.0/24 to any -> (en0)
    • Tambahkan konfigurasi PF:
      sudo nano /etc/pf.conf
    • Tambahkan baris berikut di akhir file:
      anchor "com.helium-nat"
      load anchor "com.helium-nat" from "/etc/pf.anchors/com.helium-nat"
      pass in on utun0 from 10.250.0.0/24 to any
      pass out on utun0 from any to 10.250.0.0/24
    • Validasi konfigurasi:
      sudo pfctl -nf /etc/pf.conf
    • Restart layanan PF:
      sudo pfctl -F all -f /etc/pf.conf
      sudo pfctl -e
    • Aktifkan IPv4 forwarding:
      sudo sysctl -w net.inet.ip.forwarding=1

Verifikasi

  • Pastikan server Anda dapat berhasil melakukan PING ke tujuan berikut: