Month: August 2024
-
Install OpenVPN on NAT IPv4 VPS
1) Aktifkan TUN/TAP dari panel kontrol VPS 2) Ssh ke server Anda dan jalankan perintah berikut # yum -y perbarui sertifikat-ca# wget git.io/vpn –no-check-certificate -O openvpn-install.sh; bash openvpn-install.sh 3) Dapatkan perangkat lunak klien OpenVPN. Untuk Windows, unduh perangkat lunak klien dari openvpn.net/index.php/download.html 4) Salin ~/client.ovpn ke folder konfigurasi openvpn Anda 5) Hubungkan ke server openvpn…
-
Authorization using spatie role in filament v3
Define Permissions in the Policy Register the Policy in AuthServiceProvider 2. Authorizing access to the panel in App\Models\User 3. Authorizing access to the resource in app/Filament/Resources/UserResource 4. Authorizing access to the page in app/Filament/Resources/UserResource/ListUsers Global using in class