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

Commonly-used firewall CLI commands


Although almost all firewall configurations can be performed through the Proxmox GUI, sometimes it may be necessary to perform certain tasks through a CLI. In this section, we are going to see some commands that can be used to manage the Proxmox firewall.

Getting ready

Log in to the Proxmox node using SSH, or directly from a console, as a root or with any other administrative privilege.

How to do it...

Here are some of the CLI commands to manage the Proxmox VE firewall:

  1. To start a firewall service:

    # pve-firewall start
    
  2. To stop a firewall service:

    # pve-firewall stop
    
  3. To check the status of a firewall service:

    # pve-firewall status
    
  4. To view the generated iptables rules:

    # iptables-save
    
  5. To edit a cluster-specific firewall:

    # nano /etc/pve/firewall/cluster.fw
    
  6. To edit a host-specific firewall:

    # nano /etc/pve/nodes/<node_name>/host.fw
    
  7. To edit a VM-specific firewall:

    # nano /etc/pve/firewall/<vm_id>.fw
    

There's more…

For the official Proxmox Wiki on firewalls...