Skip to content

Instantly share code, notes, and snippets.

View gilangvperdana's full-sized avatar
🎓
Still Learning

Gilang Virga Perdana gilangvperdana

🎓
Still Learning
View GitHub Profile
@gilangvperdana
gilangvperdana / README.md
Last active April 20, 2023 06:21
Remote Ubuntu Desktop with TightVNC

TightVNC

Make your ubuntu server to GUI Based

Installation

sudo apt install xfce4 xfce4-goodies -y 
sudo apt install tightvncserver -y 
vncserver
@gilangvperdana
gilangvperdana / README.md
Last active October 27, 2024 11:07
IPTables Script

Inject IP Tables

#/bin/bash
iptables -t nat -v -L -n --line-number
echo -n "IP VM who want to exposed (x.x.x.x:port): "
read ip_vm
echo $ip_vm

echo -n "Enter Port Access: " 
read port
@gilangvperdana
gilangvperdana / README.md
Last active January 25, 2025 19:01
Remote Mikrotik from OpenVPN Client with Pritunl VPN Server

Mikrotik OpenVPN Client

If you want to make your Mikrotik to be OpenVPN Client you can follow this guide.

Goals

  • Can remote mikrotik from Pritunl VPN Server Endpoint

Environment

  • Mikrotik
  • Pritunl Server
@gilangvperdana
gilangvperdana / sysctl.conf
Last active November 15, 2022 05:33
TCP/UDP Tweak
net.ipv4.ip_nonlocal_bind=1
net.ipv6.ip_nonlocal_bind=1
net.bridge.bridge-nf-call-iptables=1
net.bridge.bridge-nf-call-ip6tables=1
net.ipv4.neigh.default.gc_thresh1=128
net.ipv4.neigh.default.gc_thresh2=28672
net.ipv4.neigh.default.gc_thresh3=32768
net.ipv6.neigh.default.gc_thresh1=128
net.ipv6.neigh.default.gc_thresh2=28672
net.ipv6.neigh.default.gc_thresh3=32768
@gilangvperdana
gilangvperdana / README.md
Last active July 1, 2025 08:31
BIND9 DNS Forwarder

Forward DNS with BIND9 and Reverse It with NGINX !

  • If you want to create a DNS forwarder Instance who will be Forward your IP DNS Private to DNS Public you can follow this guide.
  • This guide will be implemented on Ubuntu 20.04 LTS.
  • This bind9 port (53) will be forwarded too with Nginx.

Prerequisite

  • Ubuntu Server 20.04 LTS
    • 1 for BIND9
    • 1 for VM testing
    • 1 for Nginx Reverse Proxy
@gilangvperdana
gilangvperdana / README.md
Last active October 5, 2022 14:11
RSyslog for Monitor LOGS

RSyslog for Monitor LOGS

Goals

  • Use rsyslog to export log

Env

  • 172.16.1.2 is Server Collector
  • 172.16.1.3 is Client LOG

Prerequisites

  • Validates rsyslog available?
@gilangvperdana
gilangvperdana / manifests.yaml
Created September 20, 2022 02:37 — forked from tapih/manifests.yaml
Loki manifests
apiVersion: v1
kind: Namespace
metadata:
name: loki-stack
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: loki
namespace: loki-stack
@gilangvperdana
gilangvperdana / grafana_nodeexp.json
Created September 22, 2022 09:22
Grafana NodeExporter Dashboard Template
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,

Automaticly delete image dangling on Docker Image

  • Create script
nano dockerimageprune.sh
#!/bin/bash

docker image prune -a -f
@gilangvperdana
gilangvperdana / README.md
Last active March 18, 2024 19:17
Teleport behind Nginx Reverse Proxy

General Teleport

If you want to make a cluster for jump host/bastion to your server, you can install Teleport. on this guide, will be guided to install then expose with NGINX Reverse proxy.

Prerequisites

  • Ubuntu 20.04LTS
  • 1 GB RAM
  • 1 VCPU
  • 20 GB Storage

Installation Teleport