hostname → cloudflared tunnel → endpoint ip address (https) → caddy (reverse proxy, now with TLS) → jellyfin server
what this does: visitors connect to your hostname over HTTPS at Cloudflare's edge. Cloudflare sends the request down a cloudflared tunnel to your PC, so no ports are open on your router. The tunnel hands it to Caddy over HTTPS on port 8080, and Caddy proxies it to Jellyfin on port 8096. Every hop except the last one, which stays on the same machine, is encrypted.
default locations: C:\caddy C:\Program Files (x86)\cloudflared\ C:\ProgramData\cloudflared\token C:\caddy\origin.pem and origin.key (TLS certificate and its private key)
the only addition is the tls line, which makes Caddy serve HTTPS on 8080 using your own certificate. be sure to use option 13 - Format Caddyfile - after each time you save it, then option 10 to reload.
cloudflare zero trust (published application route) Service URL: https://127.0.0.1:8080 Origin Server Name: your full hostname, no port TLS: either put the certificate path in CA Pool, or turn on Disable TLS certificate verification. the second is easier if you get a 502.
caddy_manager.bat (unchanged) ----------- @echo off title Caddy + Cloudflared Service Manager color 0A setlocal enabledelayedexpansion
set "_CADDY_DIR=C:\Caddy" set "NSSM=%_CADDY_DIR%\nssm.exe" set "_CADDY=%_CADDY_DIR%\caddy.exe" set "_CADDYFILE=%_CADDY_DIR%\Caddyfile" set "OUTLOG=%_CADDY_DIR%\caddy-out.log" set "ERRLOG=%_CADDY_DIR%\caddy-err.log" set "SVC=Caddy"
set "_CF_EXE=C:\Program Files (x86)\cloudflared\cloudflared.exe" set "_CF_TOKEN=C:\ProgramData\cloudflared\token" set "_CF_SVC=Cloudflared" set "_CF_DIR=C:\Program Files (x86)\cloudflared"
if not exist "%NSSM%" ( echo NSSM not found at %NSSM% echo Put nssm.exe in %_CADDY_DIR% pause exit /b 1 ) if not exist "%_CADDY%" ( echo caddy.exe not found at %_CADDY% pause exit /b 1 )
:menu cls echo ===================================================== echo Caddy + Cloudflared Control Panel [NSSM] echo ===================================================== echo. echo Caddy status: sc query %SVC% 2>nul | find "STATE" || echo Service not installed. echo. echo Cloudflared status: sc query %_CF_SVC% 2>nul | find "STATE" || echo Service not installed. (process check below) tasklist /FI "IMAGENAME eq cloudflared.exe" 2>nul | find /I "cloudflared.exe" >nul if errorlevel 1 ( echo Process: not running ) else ( echo Process: running ) echo. echo --- Caddy --- echo [1] Start Caddy echo [2] Stop Caddy echo [3] Restart Caddy echo [4] Detailed Caddy status echo [5] View Caddy logs echo [6] Open Caddyfile in Notepad echo [7] Check ports 8080 / 2019 echo [8] Install / repair Caddy service via NSSM echo [9] Uninstall Caddy service echo [10] Reload Caddyfile (admin API) echo [11] Caddy version echo [13] Format Caddyfile (caddy fmt --overwrite) echo. echo --- Cloudflared --- echo [20] Start Cloudflared service echo [21] Stop Cloudflared service echo [22] Restart Cloudflared service echo [23] Detailed Cloudflared status echo [24] Cloudflared version / tunnel info echo [25] Check Cloudflared process + ports echo [28] Check Cloudflared health (metrics / ready) echo [26] Install Cloudflared as Windows service echo [27] Uninstall Cloudflared service echo. echo [12] Exit echo. set /p choice="Enter choice: "
if "%choice%"=="1" goto start if "%choice%"=="2" goto stop if "%choice%"=="3" goto restart if "%choice%"=="4" goto status if "%choice%"=="5" goto logs if "%choice%"=="6" goto openfile if "%choice%"=="7" goto checkport if "%choice%"=="8" goto install if "%choice%"=="9" goto uninstall if "%choice%"=="10" goto reload if "%choice%"=="11" goto version if "%choice%"=="13" goto fmt if "%choice%"=="12" goto end if "%choice%"=="20" goto cf_start if "%choice%"=="21" goto cf_stop if "%choice%"=="22" goto cf_restart if "%choice%"=="23" goto cf_status if "%choice%"=="24" goto cf_version if "%choice%"=="25" goto cf_check if "%choice%"=="28" goto cf_health if "%choice%"=="26" goto cf_install if "%choice%"=="27" goto cf_uninstall echo Invalid choice. timeout /t 2 >nul goto menu
:uninstall echo. set /p sure="Remove Caddy Windows service? (Y/N): " if /I not "%sure%"=="Y" goto menu "%NSSM%" stop %SVC% >nul 2>&1 "%NSSM%" remove %SVC% confirm echo Removed. pause goto menu
:reload echo Reloading Caddyfile via admin API... "%_CADDY%" reload --config "%_CADDYFILE%" --adapter caddyfile echo. pause goto menu
:version "%_CADDY%" version echo. pause goto menu
:fmt echo Formatting Caddyfile... "%_CADDY%" fmt --overwrite "%_CADDYFILE%" echo. echo Done. You can now reload if needed (option 10). pause goto menu
:cf_start echo Starting %_CF_SVC%... if not exist "%_CF_EXE%" goto cf_missing_exe sc query %_CF_SVC% >nul 2>&1 if errorlevel 1 goto cf_start_proc net start %_CF_SVC% timeout /t 2 >nul goto menu :cf_start_proc echo Service not installed. Starting process instead... start "cloudflared" "%_CF_EXE%" tunnel run --token-file "%_CF_TOKEN%" timeout /t 2 >nul goto menu
:cf_stop echo Stopping %_CF_SVC%... sc query %_CF_SVC% >nul 2>&1 if errorlevel 1 goto cf_stop_proc net stop %_CF_SVC% timeout /t 2 >nul goto menu :cf_stop_proc echo Service not installed. Killing process if present... taskkill /IM cloudflared.exe /F >nul 2>&1 timeout /t 2 >nul goto menu
:cf_restart echo Restarting Cloudflared... sc query %_CF_SVC% >nul 2>&1 if errorlevel 1 goto cf_restart_proc net stop %_CF_SVC% timeout /t 2 >nul net start %_CF_SVC% timeout /t 2 >nul goto menu :cf_restart_proc taskkill /IM cloudflared.exe /F >nul 2>&1 timeout /t 1 >nul if not exist "%_CF_EXE%" goto cf_missing_exe start "cloudflared" "%_CF_EXE%" tunnel run --token-file "%_CF_TOKEN%" timeout /t 2 >nul goto menu
:cf_status echo. echo === sc query === sc queryex %_CF_SVC% 2>nul if errorlevel 1 echo Service "%_CF_SVC%" is not installed. echo. echo === process === tasklist /FI "IMAGENAME eq cloudflared.exe" echo. echo === token file === if exist "%_CF_TOKEN%" echo Token file exists: %_CF_TOKEN% if not exist "%_CF_TOKEN%" echo Token file MISSING: %_CF_TOKEN% echo. echo === exe === if exist "%_CF_EXE%" echo Found: %_CF_EXE% if not exist "%_CF_EXE%" echo MISSING: %_CF_EXE% echo. pause goto menu
:cf_version echo. if not exist "%_CF_EXE%" goto cf_missing_exe "%_CF_EXE%" --version echo. echo Token tunnel: no local cert, so "tunnel list" stays empty. That is normal. echo Check hostname / connector health in the Zero Trust dashboard. echo. echo Service: sc query %_CF_SVC% 2>nul | find "STATE" if errorlevel 1 echo Service not installed. echo. echo Process: tasklist /FI "IMAGENAME eq cloudflared.exe" | find /I "cloudflared.exe" if errorlevel 1 echo cloudflared.exe is not running. echo. if exist "%_CF_TOKEN%" echo Token file: present if not exist "%_CF_TOKEN%" echo Token file: MISSING echo. pause goto menu
:cf_check echo. echo cloudflared.exe processes: tasklist /FI "IMAGENAME eq cloudflared.exe" echo. echo Common listeners (metrics often 20241): netstat -ano | findstr "LISTENING" | findstr ":20241 :7844 :8080 :443" echo. echo Note: public HTTPS is Cloudflare edge :443, origin is Caddy :8080. echo. pause goto menu
:cf_health echo. echo === Cloudflared Health Check === echo. echo --- Process / Service --- sc query %_CF_SVC% 2>nul | find "STATE" || echo Service not installed. tasklist /FI "IMAGENAME eq cloudflared.exe" 2>nul | find /I "cloudflared.exe" >nul if errorlevel 1 ( echo Process: NOT RUNNING ) else ( echo Process: running ) echo. echo --- Token file --- if exist "%_CF_TOKEN%" ( echo Token: present ) else ( echo Token: MISSING - tunnel cannot start properly ) echo. echo --- Metrics endpoint (default 127.0.0.1:20241) --- powershell -NoProfile -Command ^ "try { $r = Invoke-WebRequest -Uri 'http://127.0.0.1:20241/ready' -UseBasicParsing -TimeoutSec 5; Write-Host ('/ready: ' + $r.StatusCode + ' - ' + $r.Content.Trim()) } catch { Write-Host '/ready: unreachable or error -' $_.Exception.Message }" echo. powershell -NoProfile -Command ^ "try { $m = Invoke-WebRequest -Uri 'http://127.0.0.1:20241/metrics' -UseBasicParsing -TimeoutSec 5; $lines = $m.Content -split '`n' | Where-Object { $_ -match 'cloudflared_tunnel_ha_connections|cloudflared_tunnel_total_requests|cloudflared_tunnel_request_errors' } | Select-Object -First 15; if ($lines) { $lines | ForEach-Object { Write-Host $_ } } else { Write-Host 'metrics: reachable but no matching tunnel lines (may still be OK)' } } catch { Write-Host '/metrics: unreachable or error -' $_.Exception.Message }" echo. echo Note: A healthy tunnel usually shows /ready 200 and at least one ha connection. echo Full status is also visible in the Cloudflare Zero Trust dashboard. echo. pause goto menu
:cf_install echo. if not exist "%_CF_EXE%" goto cf_missing_exe if not exist "%_CF_TOKEN%" goto cf_missing_token echo Installing Cloudflared Windows service... echo Command: tunnel run --token-file "%_CF_TOKEN%" echo. "%_CF_EXE%" service uninstall >nul 2>&1 sc stop %_CF_SVC% >nul 2>&1 sc delete %_CF_SVC% >nul 2>&1 "%_CF_EXE%" service install tunnel run --token-file "%_CF_TOKEN%" if not errorlevel 1 goto cf_install_start echo Official service install failed. Trying NSSM fallback... "%NSSM%" install %_CF_SVC% "%_CF_EXE%" "%NSSM%" set %_CF_SVC% AppParameters "tunnel run --token-file \"%_CF_TOKEN%\"" "%NSSM%" set %_CF_SVC% AppDirectory "%_CF_DIR%" "%NSSM%" set %_CF_SVC% Start SERVICE_AUTO_START "%NSSM%" set %_CF_SVC% AppExit Default Restart "%NSSM%" set %_CF_SVC% AppRestartDelay 3000 :cf_install_start echo Starting... net start %_CF_SVC% 2>nul if errorlevel 1 "%NSSM%" start %_CF_SVC% timeout /t 3 >nul sc query %_CF_SVC% echo. pause goto menu
:cf_uninstall echo. set /p sure="Remove Cloudflared Windows service? (Y/N): " if /I not "%sure%"=="Y" goto menu net stop %_CF_SVC% >nul 2>&1 if exist "%_CF_EXE%" "%_CF_EXE%" service uninstall >nul 2>&1 "%NSSM%" stop %_CF_SVC% >nul 2>&1 "%NSSM%" remove %_CF_SVC% confirm >nul 2>&1 sc delete %_CF_SVC% >nul 2>&1 echo Removed (service). pause goto menu
:cf_missing_exe echo. echo cloudflared.exe not found: echo %_CF_EXE% echo. pause goto menu
:cf_missing_token echo. echo Token file not found: echo %_CF_TOKEN% echo Place the tunnel token file there first. echo. pause goto menu
:end echo Goodbye. exit /b 0
Wednesday.25.November.2026 17:13 |
boxy
| HON HON BAGUETTE
Wednesday.25.November.2026 01:39 |
soc
| I'VE BEEN BUSY
MAYBY, NOT SURE
Tuesday.24.November.2026 08:04 |
boxy
| shit i found
i was dicking around with connectivity in my house and it's full of right angles and stairs which destroy wifi signals. it pissed me off so bad i got ai to write me a zero-admin speed monitor. all it did at the time was refresh all available endpoints on a private wifi network and do some small tests.
then it got out of hand.
now there's an assload of network tools to use. most of it is zero-admin, but there are some other things which require elevation - openssl queries, hosts editing, etc.
win10/win11 compatible.
do whatever you want with the code.
Friday.13.November.2026 09:44 |
boxy
| PTSD: THE GAME, DEVLOG 2/2
Friday.13.November.2026 07:04 |
boxy
| another flawless microsoft product
all M365 apps are down. all of them. M365 is used EXTENSIVELY by businesses and enterprise and govt.
...
Users may be unable to connect to multiple Microsoft 365 services
More info: Features of the Microsoft 365 services below that interact with Exchange Online and email services are impacted. Elements of those services that do not depend on interaction with Exchange Online remain functional.
- Exchange Online: Users may be unable to access their mailbox using Outlook on the web, Outlook desktop (MAPI), Exchange ActiveSync (EAS), or REST-based connections, and email delivery may be delayed.
- Microsoft 365 admin center: Admins may be unable to load some admin center pages.
- Microsoft 365 apps: Users may be unable to view their recently used files.
- Microsoft 365 Apps Admin Center: Multiple services including Cloud Update, Cloud Policy, and Inventory are affected.
- Microsoft 365 Education: Features including Assignments, Reading Progress, and Speaker Progress may be impacted.
- Microsoft Copilot 365: Users may be unable to load Copilot Chat or receive responses in the web and desktop apps, and Copilot experiences may be unable to access work data such as email, calendar, and files.
- Microsoft Defender for Office 365: Some Defender for Office 365 experiences that rely on Purview DLP/Information Protection signals may experience delays or failures in policy evaluation and governance action enforcement. Admins/SOCs may experience delays or failures when accessing NHI features that rely on Data Classification Sensitivity Labels, including Tenant Metrics, Policy, and Data Usage, across the Identity, OAuth, and App Governance pages in the Security portal on Microsoft Defender for Cloud Apps.
- Microsoft Defender XDR: Users may be unable to load Microsoft Defender portal pages or solution tabs.
- Microsoft Fabric: Users may encounter failures when exporting reports with sensitivity labels to PDF or PowerPoint, when updating artifacts with sensitivity labels, or opening pbix with sensitivity label in Power BI Desktop. As a workaround, users can remove the sensitivity label from the affected item to complete the operation, if their organization's data protection policies allow it.
- Microsoft Graph: API requests that access Exchange Online data, such as mail, calendar, and contacts, may time out and prevent users from managing Teams, Channels, Membership, Apps management and send activity notifications using Graph API.
- Microsoft Intune: Scenarios including device enrollment, device check-in, and device compliance policies may have been intermittently impacted.
- Microsoft Planner: Users are experiencing Plan and Task operation reliability issues.
- Microsoft Power Apps: Users may be intermittently unable to sign-in to the Power Apps or Field Service mobile apps. Affected users may be able to utilize Power Apps or Field Service on the web as a way to circumvent impact, and users who are already signed in can potentially avoid impact by not signing out, clearing app data, or reinstalling while the issue is ongoing.
- Microsoft Purview: Multiple Purview services including Authorization, auto-labeling, Data Loss Prevention (DLP) across Microsoft 365 services, Communication Compliance, Information Protection label and auto-labeling policies, Role-Based Access Control (RBAC) and Data Classification are impacted, and users may be unable to open or load Microsoft Purview portal pages or protected content. Audit searches, protected content creation, eDiscovery tasks such as search and export, Data Classification and On Demand Scan features may also be impacted.
- Microsoft Teams: Most of the core functionality including joining calls, meetings, group chats, and channel messages are not impacted. Scenarios that depend on Exchange Online, including Calendar related failures with scheduling, invites, viewing, and meeting edits. Creation of Live or Virtual events fail. Failures with Copilot responses for outlook, calendar, or M365 files, read history, or adding to new chats. Navigating to App chats, adding new contacts or syncing contacts in settings fail. Standard channels are working fine but users may experience the inability to create or delete private or shared channels.
- Microsoft To Do: The app may not load, and users may see operation failures.
- Power BI: All users may intermittently be unable to export reports with MIP sensitivity labels to PDF in Power BI.
- SharePoint Online: Some users may experience issues when sharing SharePoint Online files with people outside their organization, where external sharing is permitted by both organization-level and site-level settings. Additionally, features that depend on Exchange Online may be impacted. Accessing files stored directly in SharePoint Online remains functional.
- Universal Print: Users may encounter errors submitting print jobs or using admin features.
- Windows 365: Customers who have configured their tenant and Cloud PCs to use Microsoft Purview Customer Key for Windows 365 Cloud PCs may have users who are unable to connect to their Cloud PCs.
Current status: Were seeing encouraging recovery progress in Europe, with service availability and email delivery performance improving across a growing portion of affected Microsoft 365 infrastructure. Japan remains comparatively more stable, while North America is also improving; however, some users may still experience intermittent issues as recovery actions continue.
We're focused on addressing the remaining areas of disruption and improving service consistency across affected regions. Reducing email queues and backlogs remains a priority, and the extended 48-hour email timeout window remains in place to help protect delayed messages as delivery catches up.
At this time, we have no evidence of malicious activity associated with this incident. We will continue to treat this with urgency until full mitigation, and we will share a full Post-Incident Report with root cause and defense-in-depth actions after mitigation is complete.
Scope of impact: This issue may affect users attempting to access the affected Microsoft 365 services.
Next update by: Friday, November 13, 2026, at 1:00 PM UTC