Tuesday, 5th April 2022

VPN WireGuard Pada Mikrotik Versi 7

Catatan ini dibuat sebagai dokumentasi, maklum saya termasuk kategori manusia biasa yang suka lupa 🙂

Penggunaan WireGuard sendiri tidak hanya di mikrotik, namun OS lain juga bisa menggunakan WireGuard, nanti kita lanjut tutorial seri 2 nya ya, ok kita lanjutkan saja, menghubungkan 2 jaringan dengan Mikrotik via WireGuard, pastikan Mikrotik… Continue reading…

Tuesday, 15th March 2022

IP forwarder under cluster server on nginx

This is little notice for solving problem about clustering server.

geo $allow { default 0; 192.168.168.0/24 1; } server { real_ip_header X-Forwarded-For; set_real_ip_from 10.1.2.3; if ($allow = 0) { return 403; } }

– 192.168.x : range ip for allow access – 10.1.x : reverse proxy server

After this, ip… Continue reading…

Tuesday, 9th November 2021

How to fix: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed Centos 7

On centos 7, there are instances where you get the error Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject Error registering authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject (polkit-error-quark, 0)

This usually happens when trying to restart a systemd service.

The workaround is as follows:

groupadd… Continue reading…

Saturday, 7th August 2021

Nginx Error 13: Permission denied

I look into /usr/local/apache/domlogs Saw the error [crit] 4548#0: *1289399 open() “/var/lib/nginx/tmp/client_body/0000000359” failed (13: Permission denied) Found this solution: https://github.com/CampbellSoftwareSolutions/docker-osticket/issues/34 Updated the nginx.conf http by including the line client_body_temp_path /tmp 1 2; Then restarted nginx. Thanks! Solved it: You need to add this to the nginx.conf http { # …… Continue reading…

Wednesday, 5th May 2021

Script Simple Queues Mikrotik

Little note for mikrotik configuration :

:for e from 2 to 254 do={ /queue simple add name=”Host-$e” target=”10.10.10.$e” max-limit=512000/512000 }

 

Wednesday, 5th May 2021

Multi Gateway pada Mikrotik

Assalamualaykum, tulisan ini sebagai catatan kecil untuk refresh otak yang suka lupa 🙂

Tujuan tutor ini adalah, membuat 1 mikrotik menjadi multi ISP dan multi lan dengan rules atau jalur masing-masing atau 1 router mikrotik dengan 2 ISP dan 2 LAN dengan 2 gateway.

1. Seting IP Address, 2 ISP… Continue reading…

Saturday, 10th October 2020

Install Visual Studio Code di MX Linux atau Debian 10

Banyak pilihan aplikasi untuk ngoding, dulu sempet pakai netbean + plugin php, sublime, geany, bahkan ada yg pake vim full di console sebagai jalan ninjanya, ini lagi coba pakai visual studio, cek fiturnya sih mudah2an bikin nyaman, sebagai catatan saja supaya ngga browsing2 sana sini lagi kalo mau instalasinya.

1…. Continue reading…

Thursday, 17th September 2020

[Part 4] Konfigurasi VirtualHost Apache di Debian 10

Seri lanjutan dari part 3.

F. Konfigurasi VirtualHost (tkj.net, siswa.tkj.net, cinta.bersemi.di.tkj.net dan smk.net) — buat folder masing-masing vhost dahulu — 1. #mkdir /var/www/tkj.net 2. #mkdir /var/www/siswa.tkj.net 3. #mkdir /var/www/cinta.bersemi.di.tkj.net 4. #mkdir /var/www/smk.net —- buat isi halaman web nya —- 5. #echo “<h1>tkj.net</h1>” > /var/www/tkj.net/index.html 6. #echo “<h1>siswa.tkj.net</h1>” > /var/www/siswa.tkj.net/index.html 7…. Continue reading…

Thursday, 17th September 2020

[Part 3] Instalasi PhpMyAdmin di Debian 10

Lanjutan dari Part 1 dan 2 ya 🙂

E. Install PHPMyAdmin 1. #wget https://files.phpmyadmin.net/phpMyAdmin/4.9.0.1/phpMyAdmin-4.9.0.1-all-languages.tar.gz 2. #tar -zxvf phpMyAdmin-4.9.0.1-all-languages.tar.gz 3. #mv phpMyAdmin-4.9.0.1-all-languages /usr/share/phpMyAdmin 4. #cp -pr /usr/share/phpMyAdmin/config.sample.inc.php /usr/share/phpMyAdmin/config.inc.php 5. #nano /usr/share/phpMyAdmin/config.inc.php —– cari bagian ini —- $cfg[‘blowfish_secret’] = ‘Isidenganapasajaboleh’; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ ——cari bagian… Continue reading…

Thursday, 17th September 2020

[Part 2] Instalasi LAMP di Debian 10

Soal : Buatlah server LAMP (Linux Apache MySQL PHP) + phpmyadmin + vhost sesuai dengan soal DNS sebelumnya.

B. Install Apache #apt install -y apache2 apache2-utils C. Install PHP (PHP 7.3) #apt install -y php libapache2-mod-php php-cli php-fpm php-json php-pdo php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath D. Install… Continue reading…