Add core router integration for network analysis in Firewall component
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user