Postingan

Menampilkan postingan dari 2023

Table of Contents

🏗BASIC IP & HOSTNAME Change hostname and FQDN on debian 🗄DIRECTORY SERVICES Import Bulk Users to AD from CSV file Install, Integration with OpenLDAP 📚DNS Pembahasan IT Network Systems Administration Module A DNS (Forward Zone, Reverse Zone, CNAME, MX, Split View) 🔐PUBLIC KEY INFRASTUCTURE / CERTIFICATES Microsoft Active Directory Certificate Services CA Web Enrollment How to make an CA, Intermediate CA / Sub CA, and Server Certificate with OpenSSL command How to make a root CA 🕸WEB SERVER Cara konfigurasi Web Server IIS di Windows Server Core dengan PowerShell How to configure HTTPS in IIS Windows Server via PowerShell Redirect IP ke domain, non-www ke www dengan htaccess di apache2 How to fix error “Could not reliably determine the server’s fully qualified domain name using 127.0.1.1 for ServerName" on apache2 📧MAIL SERVER Pembahasan LKS ITNSA MAIL IMAP SMTP Authentication LDAP Konfigurasi mail client Mutt Configure Postfix to use Gmail as a Mail Relay on Fedora Konfigu...

Cara Menggunakan NFTables untuk Firewall Server & Router

Gambar
Diagram untuk memahami konsep nftables: https://wiki.nftables.org/wiki-nftables/index.php/Netfilter_hooks 📌 Apa itu NFTables? NFTables adalah firewall modern yang menjadi pengganti IPTables dalam framework Netfilter di Linux. Sistem ini menyediakan: Framework packet filtering yang lebih fleksibel Utility baru bernama nft Kompatibilitas dengan IPTables lama Integrasi dengan connection tracking, logging, dan queueing Netfilter NFTables dirancang agar lebih sederhana, efisien, dan mudah dikelola dibanding IPTables. 📌 Konsep Dasar NFTables Saat paket masuk ke server/router, paket akan melewati Netfilter Hooks , seperti: Prerouting → sebelum routing Input → paket menuju host Forward → paket diteruskan router Output → paket keluar dari host Postrouting → setelah routing Beberapa poin penting: ✅ Filtering Layer 2 atau Layer 3 bisa dipilih sesuai kebutuhan ✅ DNAT biasanya di Prerouting Hook ✅ SNAT biasanya di Postrouting Hook 📌 Chain yang Umum Digunakan Jika d...

How To make sure any file or folder created in /var/www/html gets automatically owned by www-data

Automatically Set Ownership to www-data Using incron If you want to ensure that any file or folder created inside /var/www/html is automatically owned by www-data , you can use incron . Incron works similarly to cron, but instead of running based on time schedules, it monitors filesystem events such as: File or directory creation File modifications Attribute changes File deletions Step 1 — Install incron Install incron using: sudo apt-get install incron Step 2 — Allow Root to Use incron By default, not all users are allowed to use incron. You must explicitly grant permission. Open the file: sudo vim /etc/incron.allow Add the following line: root Save and exit. Step 3 — Configure incrontab Edit the incrontab for root: sudo incrontab -u root -e Add this line: /var/www/html IN_CREATE /bin/chown -R www-data:www-data /var/www/html/ Save and exit. How It Works With this configuration, whenever a new file is created inside /var/www/html , its ownership will auto...