In this recipe, we will see how to enable logging for the Proxmox firewall and display log entries.
Logging into the Proxmox firewall allows us to view the activities of data transmission in and out of clusters, nodes, and VMs. It is a very useful tool, not only for the Proxmox firewall, but also for any firewall to pinpoint the source and destination of traffic, and to verify that rules are working as expected. In Proxmox, we can set various levels of logging, depending on the requirements. The log option is only available for host and VM-specific firewall. There are no logging options for a datacenter or cluster-wide firewalls. Host-level logging will display all activities from all the VMs in a host. Logging for a VM only displays activities for a particular VM. Logging helps us to see not just what was denied, but also what traffic was allowed to pinpoint an intruder.