Add core router integration for network analysis in Firewall component

This commit is contained in:
2025-12-10 11:47:00 -05:00
parent 369cb8a812
commit 43c31495a2
2 changed files with 6 additions and 0 deletions

View File

@@ -264,6 +264,9 @@ class Firewall extends Component
public int $perPage = 50;
public ?string $lastLogRefresh = null;
// Core Router integration for network analysis
public bool $coreRouterConfigured = false;
// Available IPs for rules
public array $availableIps = [];
@@ -272,6 +275,7 @@ class Firewall extends Component
parent::mount($server);
$this->server->loadMissing('ipAddresses');
$this->coreRouterConfigured = $this->coreRouterEnabled();
$this->loadAvailableIps();
$this->loadNetworkAdapters();
$this->loadFirewallOptions();

View File

@@ -1080,6 +1080,7 @@
$destPort = $log['destination_port'] ?? '';
$protocol = $log['protocol'] ?? '';
@endphp
@if($coreRouterConfigured && $sourceIP && $sourceIP !== '-')
<div class="relative"
x-data="{
open: false,
@@ -1290,6 +1291,7 @@
</div>
</div>
</div>
@endif
</td>
</tr>
@endforeach