Go inside a proxmox node

Add a new interface in the System > network tab

Buat VM Bridge interface

Bebas mau kasi ip brp, cuma di ak kasi 192.168.100.1

Akses CLI Proxmoxnya, trus ke /etc/network

nano interface

auto vmbr1
iface vmbr1 inet static
        address 192.168.100.1
        netmask 255.255.255.0
        bridge-ports none
        bridge-stp off
        bridge-fd 0

# NAT Settings
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.100.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.100.0/24' -o vmbr0 -j MASQUERADE
systemctl restart networking

Ubuntu Debian

nano /etc/netplan/00-installer-config
# This is the network config written by 'subiquity'
network:
  ethernets:
    ens18:
      addresses:
      - 192.168.100.15/24
      nameservers:
        addresses: [1.1.1.1, 8.8.8.8]
        search: []
      routes:
      - to: default
        via: 192.168.100.1
  version: 2

Then reboot the host! → This is a must!

Buat SSH / Port Forwarding

PROXMOX_HOST_IP=<proxmox-ip>  # IP yang ga ada NAT 
VM_IP=<vm_ip>

iptables -t nat -A PREROUTING -p tcp -d $PROXMOX_HOST_IP --dport 5001 -j DNAT --to-destination $VM_IP:22
iptables -t nat -A POSTROUTING -p tcp -d $VM_IP --dport 22 -j SNAT --to-source $PROXMOX_HOST_IP

Referensi Tutorial Video:

https://www.youtube.com/watch?v=ITYMeRE455g