diff --git a/extensions/Servers/Proxmox/Livewire/Firewall.php b/extensions/Servers/Proxmox/Livewire/Firewall.php index 68045e75b..dcbd38723 100644 --- a/extensions/Servers/Proxmox/Livewire/Firewall.php +++ b/extensions/Servers/Proxmox/Livewire/Firewall.php @@ -25,8 +25,6 @@ class Firewall extends Component // Firewall Options (policies, filters) public string $policyIn = 'DROP'; public string $policyOut = 'ACCEPT'; - public bool $ipFilter = true; - public bool $macFilter = true; public bool $showPolicyInfoModal = false; // Rules Management @@ -368,8 +366,6 @@ class Firewall extends Component $this->firewallEnabled = ($options['enable'] ?? 0) == 1; $this->policyIn = strtoupper($options['policy_in'] ?? 'DROP'); $this->policyOut = strtoupper($options['policy_out'] ?? 'ACCEPT'); - $this->ipFilter = ($options['ipfilter'] ?? 1) == 1; - $this->macFilter = ($options['macfilter'] ?? 1) == 1; } } catch (\Exception $e) { Log::error('Failed to load firewall options: ' . $e->getMessage()); @@ -383,14 +379,14 @@ class Firewall extends Component try { $newState = !$this->firewallEnabled; - // Always force DHCP and NDP (router advertisements) to 0 for security + // Always force DHCP disabled and NDP enabled $response = $this->firewallRequest( '/nodes/' . $this->server->node->name . '/qemu/' . $this->server->vm_id . '/firewall/options', 'put', [ 'enable' => $newState ? 1 : 0, 'dhcp' => 0, // Always disabled - 'ndp' => 0, // Always disabled (prevents router advertisements) + 'ndp' => 1, // Always enabled (allows router advertisements) ] ); @@ -423,10 +419,8 @@ class Firewall extends Component [ 'policy_in' => $this->policyIn, 'policy_out' => $this->policyOut, - 'ipfilter' => $this->ipFilter ? 1 : 0, - 'macfilter' => $this->macFilter ? 1 : 0, 'dhcp' => 0, // Always disabled - 'ndp' => 0, // Always disabled + 'ndp' => 1, // Always enabled (allows router advertisements) ] ); diff --git a/extensions/Servers/Proxmox/views/firewall.blade.php b/extensions/Servers/Proxmox/views/firewall.blade.php index 2fe28ca96..545e2a690 100644 --- a/extensions/Servers/Proxmox/views/firewall.blade.php +++ b/extensions/Servers/Proxmox/views/firewall.blade.php @@ -196,18 +196,7 @@
Default action for outgoing traffic not matching any rule
-