Firewall

Firewall Status

Enable or disable the firewall for this virtual machine

Disabled Enabled

Network Adapters

Enable or disable firewall for each network adapter

@if(count($networkAdapters) > 0)
@foreach($networkAdapters as $adapter)

{{ $adapter['name'] }}

{{ ucfirst($adapter['model'] ?? 'Unknown') }}
@if($adapter['mac'])
MAC: {{ $adapter['mac'] }}
@endif

Enables or disables the firewall ability for this network adapter

Network Adapter Firewall
Disabled Enabled
@endforeach
@else

No network adapters found

@endif
@if($firewallEnabled)

Firewall Rules

Manage allow and block rules for network traffic

@if(count($rules) > 0)
@foreach($rules as $index => $rule) @endforeach
Order Action Source Destination Protocol Port Status Actions
{{ $rule['pos'] ?? '-' }} @php $actionClass = match($rule['action'] ?? '') { 'ACCEPT' => 'bg-success/20 text-success', 'REJECT' => 'bg-warning/20 text-warning', 'DROP' => 'bg-error/20 text-error', default => '' }; @endphp {{ $rule['action'] ?? '-' }}
{{ $rule['source'] ?? '-' }} @if($rule['source'] && $rule['source'] !== '-' && window.isPublicIP($rule['source']))
@endif
{{ $rule['dest'] ?? '-' }} @if($rule['dest'] && $rule['dest'] !== '-' && window.isPublicIP($rule['dest']))
@endif
{{ strtoupper($rule['proto'] ?? 'any') }} {{ $rule['dport'] ?? $rule['sport'] ?? '-' }} @if(isset($rule['enable']) && $rule['enable'] == 0) Disabled @else Enabled @endif
@else

No firewall rules configured

@endif

Firewall Logs

Recent firewall activity and blocked/allowed connections ({{ count($firewallLogs) }} entries loaded)

@if(!empty($logError))

{{ $logError }}

@endif @if(count($firewallLogs) > 0)
Policy:
Protocol:
Showing of
Page /
Actions

No logs matched your search.

@elseif(empty($logError))

No firewall logs available

Ensure firewall logging is enabled in Proxmox (Datacenter > Firewall > Options)

@endif
@else

Firewall is Disabled

Enable the firewall above to manage firewall rules.

@endif
@script @endscript
@if($error && $showErrorModal)

Firewall Error

{{ $error }}

@endif @if($showRuleForm)

{{ $editingRulePos !== null ? 'Edit Rule' : 'Create New Rule' }}

@endif @if($showDeleteModal && $deletingRulePos !== null) @php $ruleToDelete = collect($rules)->firstWhere('pos', $deletingRulePos); @endphp

Delete Firewall Rule

Are you sure you want to delete this firewall rule? This action cannot be undone and may affect your network security.

@if($ruleToDelete)
Action: {{ $ruleToDelete['action'] ?? '-' }}
@if(!empty($ruleToDelete['source']))
Source: {{ $ruleToDelete['source'] }}
@endif @if(!empty($ruleToDelete['dest']))
Destination: {{ $ruleToDelete['dest'] }}
@endif @if(!empty($ruleToDelete['proto']))
Protocol: {{ strtoupper($ruleToDelete['proto']) }}
@endif @if(!empty($ruleToDelete['dport']))
Port: {{ $ruleToDelete['dport'] }}
@endif @if(!empty($ruleToDelete['comment']))
Comment: {{ $ruleToDelete['comment'] }}
@endif
@endif
@endif