{2021} Demonstration creating a Hetzner virtual DEDICATED server in the cloud with Proxmox and NAT
DISK PARTITION :
PART swap swap 32G
PART /boot ext3 512M
PART / ext4 all
DESKTOP BUILD COMMANDS :
apt-get update && apt-get upgrade -y
apt-get install xfce4 htop xrdp gedit firefox-esr terminator
NAT NETWORK – APPEND TO FILE: /ETC/NETWORK/INTERFACES
auto vmbr99
#private sub network
iface vmbr99 inet static
address 10.10.10.1
netmask 255.255.255.0
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 [LESS THAN SHMBOL] /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s ‘10.10.10.0/24’ -o enp2s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s ‘10.10.10.0/24’ -o enp2s0 -j MASQUERADE
post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT –zone 1
post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT –zone 1
——————————————————————————————–
PORT FORWARDING RULES :
iptables -t nat -A PREROUTING -p tcp -d 144.76.154.55 –dport 53389 -i enp2s0 -j DNAT –to-destination 10.10.10.10:3389
iptables -t nat -A PREROUTING -p tcp -d 144.76.154.55 –dport 80 -i enp2s0 -j DNAT –to-destination 10.10.10.10:80
iptables -t nat -L –line-numbers
apt-get install iptables-persistent (not used in video, but may be make rules persist between reboots)
iptables-save = /etc/iptables/rules.v4
ipv4