Creating a Proxmox Cloud Server with NAT on a Hetzner virtual DEDICATED VPS server - tutorial
Cloud Tech
In this video tutorial , I take you step-by-step from acquiring a Hetzner VPS, installing Proxmox on it, and then configuring it including building your own NAT based network, so the Virtual Machines it hosts are naturally protected from internet based attacks.
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 [GREATER 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.
TRANSCRIPT OF INTRODUCTION
Over the years I have tried a number of PC based virtual machine solutions, and created a number of VMs, which I still use. As a result, I now find I have virtual machines in too many places. Locally i have VMs in Virtualbox and VMware on my windows PC and QEMU on Linux. In the cloud I have multiple demonstration instances on Amazon web services because I currently have a work client who uses them, and my own web server running on the VULTR cloud provider, as I found they offer the best value for money.
So I was looking to fix all that by hosting all these local and cloud based virtual machines on a single server using a single technology, but how.
After a bit of research and thinking, I came up with the following plan, I would need a single server to put all my existing VMs on, I would use ProxMox , a free industrial strength virtual machine manager, and to prevent me having to punch holes in my routers firewall by opening up ports by for example running my web server locally, I would host it in the cloud instead.
So I needed a server which ... https://www.youtube.com/watch?v=pgV8B-u9Kps
118534969 Bytes