Postingan

Laravel 404 not found but rote exists

This is my case if the webserver is apache2/httpd make sure the following directive is configured properly when installing Laravel. DocumentRoot "/var/www/html/laravel/public/" <Directory "/var/www/html/laravel/public"> Allowoverride All </Directory> More references:   https://laravel.io/forum/06-11-2014-not-found-but-route-exists

PostgreSQL ERROR: permission denied for relation users

Problem ERROR: permission denied for relation users Error ini biasanya terjadi karena user database tidak memiliki hak akses (privileges) yang cukup terhadap tabel atau schema di PostgreSQL. Solution 1. Menampilkan Nama Schema Pertama, hubungkan ke database PostgreSQL Anda, lalu jalankan perintah berikut untuk melihat daftar tabel beserta schema-nya: \dt Dari output tersebut, Anda dapat mengetahui nama schema yang digunakan (biasanya public , tetapi bisa berbeda tergantung konfigurasi). 2. Memberikan Hak Akses (Grant Privileges) Setelah mengetahui nama schema, jalankan perintah berikut sebagai user dengan hak admin (misalnya postgres ): GRANT ALL PRIVILEGES ON DATABASE name_db TO remote_user; GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA <schema_name> TO <username>; GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA <schema_name> TO <username>; Ganti: name_db → dengan nama database Anda <schema_name> → dengan nama schema (misalnya public ...

Configure SSH tunnel MySQL

Pada postingan ini sederhana sebagai catatan yaitu akan seolah-olah mengakses database pada server melalui local-pc. local-pc -----------internet----------------server-db server-db dengan IP misal 1.2.3.4 Daripada mengakses langsung database melalui IP publik internet yang tidak aman maka lebih baik memanfaatkan protokol SSH yang terenkripsi. command nya sederhana yaitu sebagai berikut: ssh nasohi@1.2.3.4  -L 3306:localhost:3306 S etelah berhasil masuk, bisa buka terminal lain/aplikasi database client untuk mengakses database melalu i localhost:3306 pada local-pc SSH tunnel ini bisa dimanfaatkan tidak hanya untuk remote database namun bisa disesuaikan dengan port service lainnya. Referensi lebih lanjut:  https://help.ubuntu.com/community/SSH/OpenSSH/PortForwarding Postingan di blog ini tentang mysql  https://nciptandani.blogspot.com/search?q=mysql

Referensi Link ITNSA

Konfigurasi AAA Cisco dengan Windows NPS https://theitbros.com/radius-server-configuration-on-windows/ https://blog.skufel.net/2012/06/how-to-integrating-cisco-devices-access-with-microsoft-npsradius/ Konfigurasi DMVPN https://networklessons.com/cisco/ccie-routing-switching/introduction-to-dmvpn http://www.firewall.cx/cisco-technical-knowledgebase/cisco-routers/901-cisco-router-dmvpn-configuration.html https://networkdirection.net/articles/routingandswitching/dmvpn/dmvpn-configuration/ https://www.ciscozine.com/dmvpn-phase-3-guide/ Konfigasi IPSec stateless HA https://blog.ine.com/2008/11/06/ipsec-vpn-high-availability-with-hsrp Konfigurasi Voice https://www.youtube.com/watch?v=gebqFiJbepc&list=PLzP4Y1y2eV8djxV3K_-PI-e4xOj4TbsJM

Configure NTP Server pada Cisco Router

Pada tutorial kali ini, router Cisco akan dikonfigurasi sebagai NTP Server sekaligus menggunakan authentication pada koneksi NTP agar lebih aman. Untuk tutorial lain mengenai SNMP Authentication (SNMPv3) dapat dilihat di sini: https://www.youtube.com/watch?v=ConDdPWGxlc Topologi Terdapat 2 router: R-ISP → sebagai NTP Server S-HQ → sebagai NTP Client Konfigurasi 1️⃣ Konfigurasi NTP Server (R-ISP) (config)# clock timezone GMT +7 # clock set 00:50:00 January 7 2020 # show clock (config)# ntp authentication-key 1 md5 ntps3cur3pw (config)# ntp trusted-key 1 (config)# ntp authenticate (config)# ntp master 2️⃣ Konfigurasi NTP Client (S-HQ) (config)# clock timezone GMT +7 (config)# ntp authentication-key 1 md5 ntps3cur3pw (config)# ntp authenticate (config)# ntp trusted-key 1 (config)# ntp server 1.1.1.1 key 1 3️⃣ Verifikasi di NTP Server Pada R-ISP jalankan: # show ntp associations Hasilnya akan terlihat bahwa reference clock mengarah ke: 127.127.7.1 (local clock)...

How to configure apache2 auth openldap debian

Autentikasi Website Apache2 Menggunakan OpenLDAP Berikut adalah konfigurasi sederhana untuk melakukan autentikasi login website di Apache2 menggunakan LDAP (OpenLDAP) . 📌 Prasyarat Pastikan hal berikut sudah siap: Web server Apache2 sudah terinstall dan berjalan dengan baik. Tentukan site / direktori website yang akan dipasang autentikasi. Server sudah siap. Tutorial instalasi OpenLDAP, pembuatan user, dan testing login dapat dilihat pada video berikut: https://www.youtube.com/playlist?list=PL-p0E1DAGrw3cYSqmGUArs1qQSRPdbUmJ 1️⃣ Enable Modul LDAP di Apache2 Jalankan perintah berikut: a2enmod ldap authnz_ldap Modul yang diaktifkan: ldap → koneksi LDAP authnz_ldap → autentikasi & authorization LDAP 2️⃣ Buat Konfigurasi Autentikasi LDAP Buat file konfigurasi baru: vi /etc/apache2/sites-available/auth-ldap.conf Isi dengan konfigurasi berikut: <Directory /var/www/html/> AuthName "LDAP Authentication" AuthType Basic AuthBasicPro...

How to configure PAM to allow/deny users login

Filter User Login Linux Menggunakan PAM (Whitelist User) Pada contoh ini akan dijelaskan cara membatasi user yang boleh login ke sistem Linux (GUI maupun console) menggunakan konfigurasi PAM (Pluggable Authentication Module) . Metode ini cocok digunakan jika hanya ingin mengizinkan user tertentu saja untuk mengakses sistem. ⚠️ Peringatan Sebelum Konfigurasi Sebelum melakukan perubahan: Sebaiknya lakukan di server percobaan Buat snapshot / backup Kesalahan konfigurasi PAM dapat menyebabkan gagal login ke sistem 1️⃣ Edit File PAM Authentication Buka file berikut: nano /etc/pam.d/common-auth Tambahkan baris berikut di bagian paling bawah : auth required pam_listfile.so item=user sense=allow file=/etc/pam.d/users.allow onerr=fail Lalu simpan perubahan. 2️⃣ Buat File Daftar User yang Diizinkan Buat file whitelist user: nano /etc/pam.d/users.allow Isi dengan username yang boleh login, satu user per baris: root user1 user2 user3 3️⃣ Pengujian Konfigurasi Buat user ...