#!/bin/bash

# Complete firewall refresh: clear and rebuild from database
firewallRefreshAll()
{
    isNotice "Running Complete Firewall Refresh"
    
    # Step 1: Clear existing LibrePortal rules
    firewallClearLibrePortalRules
    
    # Step 2: Rebuild from database
    firewallRebuildFromDatabase
    
    isSuccessful "Firewall database and firewall are now in sync"
}
