Book Image

Proxmox Cookbook

By : Wasim Ahmed, Ravi K Jangid
Book Image

Proxmox Cookbook

By: Wasim Ahmed, Ravi K Jangid

Overview of this book

Proxmox VE's intuitive interface, high availability, and unique central management system puts it on par with the world’s best virtualization platforms. Its simplicity and high quality of service is what makes it the foremost choice for most system administrators. Starting with a step-by-step installation of Proxmox nodes along with an illustrated tour of Proxmox graphical user interface where you will spend most of your time managing a cluster, this book will get you up and running with the mechanisms of Proxmox VE. Various entities such as Cluster, Storage, and Firewall are also covered in an easy to understand format. You will then explore various backup solutions and restore mechanisms, thus learning to keep your applications and servers safe. Next, you will see how to upgrade a Proxmox node with a new release and apply update patches through GUI or CLI. Monitoring resources and virtual machines is required on an enterprise level, to maintain performance and uptime; to achieve this, we learn how to monitor host machine resources and troubleshoot common issues in the setup. Finally, we will walk through some advanced configurations for VM followed by a list of commands used for Proxmox and Ceph cluster through CLI. With this focused and detailed guide you will learn to work your way around with Proxmox VE quickly and add to your skillset.
Table of Contents (18 chapters)
Proxmox Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Configuring Network Address Translation


In this recipe, we are going to see what Network Address Translation (NAT) is and how to configure it in Proxmox.

Getting ready

NAT is a networking technique that allows a node with a private IP in a network connect to the Internet through a NAT-enabled interface or router without needing an Internet-based public IP. NAT also provides security since the original IP remains hidden behind NAT.

Without NAT, each device would require a public IP in order to connect to the Internet. With the scarcity of IPv4 IP addresses and the high cost of obtaining them, NAT provides a solution for networks of all sizes.

In Proxmox, a NAT configuration can only be done through a CLI.

How to do it…

IP forwarding must be allowed in order for NAT to work. By default, it is not enabled. The following steps show how to enable IP forwarding, then configure NAT for a network interface:

  1. Use a text editor to open the /etc/sysctl.conf file:

    #nano /etc/sysctl.conf
    
  2. Uncomment the following...