diff --git a/extensions/Servers/Proxmox/Livewire/Firewall.php b/extensions/Servers/Proxmox/Livewire/Firewall.php index 5665d8459..2d864b808 100644 --- a/extensions/Servers/Proxmox/Livewire/Firewall.php +++ b/extensions/Servers/Proxmox/Livewire/Firewall.php @@ -1239,14 +1239,14 @@ class Firewall extends Component $this->logError = ''; try { - // Fetch all available logs without pagination to get the freshest data - // Add timestamp to prevent caching + // Proxmox returns logs with newest first when using start=0 + // Fetch a larger batch to ensure we get the most recent logs $response = $this->firewallRequest( '/nodes/' . $this->server->node->name . '/qemu/' . $this->server->vm_id . '/firewall/log', 'get', [ - 'limit' => $this->logLimit, - 'start' => 0, + 'limit' => 5000, // Fetch more logs to get the recent ones + 'start' => 0, // Start from the beginning (most recent) '_dc' => time() // Cache buster ] );