Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Proxmox Cookbook

You're reading from   Proxmox Cookbook Over 60 hands-on recipes to perform server virtualization and manage virtualized server solutions with Proxmox

Arrow left icon
Product type Paperback
Published in Aug 2015
Publisher
ISBN-13 9781783980901
Length 318 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
 Ahmed Ahmed
Author Profile Icon Ahmed
Ahmed
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Proxmox Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Installing Proxmox FREE CHAPTER 2. Getting to Know the Proxmox GUI 3. Cluster and VM Management 4. Network Configurations 5. Firewall Configurations 6. Storage Configurations 7. Backup and Restore 8. Updating and Upgrading Proxmox 9. Monitoring Proxmox 10. Advanced Configurations for VMs 11. The CLI Command Reference 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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images