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
Created April 19, 2025 15:47
Create Network on Openstack without Subnet & DHCP

General

If you want to create a network on openstack with static IP (without DHCP & Subnet) cause you have an external DHCP Server, you can use this.

Assume

  • We want to create an external network named VLANAXS205 with physnet1 as Interface name & 205 as VLAN ID

Technique

openstack network create \
 --provider-network-type vlan \
@gilangvperdana
gilangvperdana / getinfovpn.sh
Created March 24, 2025 16:29
Get Info Our VPN
#!/bin/bash
echo "Profil VPN yang sedang berjalan:"
echo "-------------------------------------------------------------"
echo "TUN Interface | Profile | Subnet | Routing Table"
echo "-------------------------------------------------------------"
for conf in /etc/openvpn/*.conf; do
vpn_name=$(basename "$conf" .conf)

Migrate from Openstack to VMware

Pre-requsites

  • Ubuntu 22.04LTS
  • Glance Client CLI
  • Nova Client CLI
  • Openstack Client CLI

Install Tools

@gilangvperdana
gilangvperdana / README.md
Created January 25, 2025 07:27
Check LLDP on Linux

General

If you want to check LLDP Information from Linux Host side you can install lldpcli (makesure LLDP from your switch has been enabled)

Installation

apt update -y
apt install -y lldpcli
systemctl enable lldpd
systemctl start lldpd
@gilangvperdana
gilangvperdana / README.md
Created November 26, 2024 07:02
Check WWN FC HBA on Linux

General

If you doesn't know where to find WWN your FC HBA you can collect from Linux OS

Command

## Change host11 to antoher host, makesure the result is Online
cat /sys/class/fc_host/host11/port_state

## Check the WWN
cat /sys/class/fc_host/host11/port_name
@gilangvperdana
gilangvperdana / README.md
Last active October 29, 2024 07:05
VSCode SSH Install Offline on Ubuntu

General

If you want to pull VScode packages on Ubuntu Server, you can follow this step

Pull Offline Packages

commit_id=f06011ac164ae4dc8e753a3fe7f9549844d15e35

# Download url is: https://update.code.visualstudio.com/commit:${commit_id}/server-linux-x64/stable
curl -sSL "https://update.code.visualstudio.com/commit:${commit_id}/server-linux-x64/stable" -o vscode-server-linux-x64.tar.gz
@gilangvperdana
gilangvperdana / README.md
Last active October 13, 2024 14:48
VM Gateway on top of Openstack VM

General

You want to create an Ubuntu VM on top of openstack as a Instance Gateway

Goals

My instance in openstack must be connected to the internet (0.0.0.0/0) via VM Gateway because only from this gateway is internet connection allowed, but apart from that my instance still needs to be able to connect to the client aka be able to SSH.

Topology

  • Segment 192.168.203.0/24
  • Gateway 192.168.203.1
  • VM Gateway 192.168.203.2
@gilangvperdana
gilangvperdana / README.md
Last active November 26, 2024 09:10
All About Squid Proxy

General

I just curios about Proxy, so i will install Squid for Proxy Server & Connect it to client

Squid Installation

apt update -y
apt install -y squid

Squid Configuration

@gilangvperdana
gilangvperdana / README.md
Last active April 18, 2025 13:15
Port Forwarding on Windows Server

General

If you want to forward packet from your windows server to local server you can use this command

Command

Use case : i want to forward If user call 192.168.100.233 port 8006 it will be forwarded to 192.168.100.254 port 8006

netsh interface portproxy add v4tov4 listenport=8006 listenaddress=192.168.100.233 connectport=8006 connectaddress=192.168.100.254
@gilangvperdana
gilangvperdana / README.md
Last active November 26, 2024 07:05
Openstack with Virt-Manager

General

If you have an issue while deploying an ISO to Openstack (maybe need some drive like VirtIO on Windows ISO, etc) you can use 3rd party KVM Management like virt-manager.

Case

We failed to deploy an Windows Server directly from ISO, disk not detected while first setup on Openstack & it's same when we try to deploy RHEL & Ubuntu desktop. We need to try attach the ISO from CDROM on Console, but on openstack it not supported.

Virt-manager

Virt-manager are powerfull tools to contact the KVM virtualization to organize your Instance deployment like Ordering your bootable, attach CDROM, change Protocol for Storage, CDROM to SATA/ISCSI/etc.

Unfortunately