@extends('layouts.app') @section('content') @php // Which tab should be active on load? $currentTab = request('tab', 'blacklist'); // Should the modal be open? $openModal = request()->has('create') || $errors->any(); // Default action in the modal (based on ?create=allow|deny) $presetAction = request('create') === 'allow' ? 'allow' : 'deny'; @endphp
{{-- Header --}}

Firewall Access Control

Manage blacklist and whitelist rules for incoming traffic.

? Services
{{-- Flash --}} @if(session('status'))
{{ session('status') }}
@endif {{-- Card --}}
{{-- Tabs --}}
{{-- Info strip --}}
  • Maintain blacklist and whitelist IPs and networks.
  • Quickly block abusive sources detected by Fail2Ban.
  • Whitelist trusted management IPs and office subnets.
{{-- Tab content --}}
{{-- BLACKLIST TAB --}}

Blacklist rules (action = DENY)

Add Blacklist IP
@if($blacklist->isEmpty())

No blacklist entries yet. Click Add Blacklist IP to create one.

@else
@foreach($blacklist as $row) @endforeach
Name IP / Network Description Created Actions
{{ $row->name }} {{ $row->ip_address }} {{ $row->description ?: '—' }} {{ optional($row->created_at)->format('Y-m-d H:i') }}
@csrf @method('DELETE')
@endif
{{-- WHITELIST TAB --}}

Whitelist rules (action = ALLOW)

Add Whitelist IP
@if($whitelist->isEmpty())

No whitelist entries yet. Click Add Whitelist IP to create one.

@else
@foreach($whitelist as $row) @endforeach
Name IP / Network Description Created Actions
{{ $row->name }} {{ $row->ip_address }} {{ $row->description ?: '—' }} {{ optional($row->created_at)->format('Y-m-d H:i') }}
@csrf @method('DELETE')
@endif
{{-- ADD IP MODAL --}} @if($openModal)

Add Access Rule

?
@csrf @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
Cancel
@endif
@endsection