@if($error && $showErrorModal)

Firewall Error

{{ $error }}

@endif

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

Firewall
Disabled Enabled
@endforeach
@else

No network adapters found

@endif
@if($firewallEnabled)

Firewall Rules

Manage allow and block rules for network traffic

@if($showRuleForm)

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

@endif @if(count($rules) > 0)
@foreach($rules as $rule) @endforeach
Position Action Source Destination Protocol Port Status Actions
{{ $rule['pos'] ?? '-' }} {{ $rule['action'] ?? '-' }} {{ $rule['source'] ?? '-' }} {{ $rule['dest'] ?? '-' }} {{ 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

@if(count($firewallLogs) > 0)
@foreach($firewallLogs as $log) @endforeach
Timestamp Action Source Destination Protocol Source Port Dest Port TTL ACK
{{ $log['timestamp'] ?? '-' }} {{ $log['action'] ?? '-' }} {{ $log['source'] ?? '-' }} {{ $log['destination'] ?? '-' }} {{ $log['proto'] ?? '-' }} {{ $log['spt'] ?? '-' }} {{ $log['dpt'] ?? '-' }} {{ $log['ttl'] ?? '-' }} {{ $log['ack'] ?? '-' }}
@else

No firewall logs available

@endif
@else

Firewall is Disabled

Enable the firewall above to manage firewall rules.

@endif