Phase 3.1: Enhanced Chore Logging and Reporting System
This commit is contained in:
55
setup_firewall.bat
Normal file
55
setup_firewall.bat
Normal file
@@ -0,0 +1,55 @@
|
||||
@echo off
|
||||
echo ========================================
|
||||
echo Family Hub - Firewall Configuration
|
||||
echo ========================================
|
||||
echo.
|
||||
echo This script will add Windows Firewall rules to allow
|
||||
echo network access to Family Hub (ports 8001 and 5173)
|
||||
echo.
|
||||
echo ⚠️ This requires Administrator privileges
|
||||
echo.
|
||||
pause
|
||||
|
||||
REM Check for admin
|
||||
net session >nul 2>&1
|
||||
if %errorLevel% NEQ 0 (
|
||||
echo.
|
||||
echo ERROR: This script must be run as Administrator
|
||||
echo.
|
||||
echo Right-click this file and select "Run as administrator"
|
||||
echo.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.
|
||||
echo Creating firewall rules...
|
||||
echo.
|
||||
|
||||
REM Add rule for backend (port 8001)
|
||||
netsh advfirewall firewall delete rule name="Family Hub Backend" >nul 2>&1
|
||||
netsh advfirewall firewall add rule name="Family Hub Backend" dir=in action=allow protocol=TCP localport=8001
|
||||
if %errorLevel% EQU 0 (
|
||||
echo ✓ Backend rule created (port 8001)
|
||||
) else (
|
||||
echo ✗ Failed to create backend rule
|
||||
)
|
||||
|
||||
REM Add rule for frontend (port 5173)
|
||||
netsh advfirewall firewall delete rule name="Family Hub Frontend" >nul 2>&1
|
||||
netsh advfirewall firewall add rule name="Family Hub Frontend" dir=in action=allow protocol=TCP localport=5173
|
||||
if %errorLevel% EQU 0 (
|
||||
echo ✓ Frontend rule created (port 5173)
|
||||
) else (
|
||||
echo ✗ Failed to create frontend rule
|
||||
)
|
||||
|
||||
echo.
|
||||
echo ========================================
|
||||
echo Firewall configuration complete!
|
||||
echo ========================================
|
||||
echo.
|
||||
echo Family Hub should now be accessible from other devices
|
||||
echo on your network.
|
||||
echo.
|
||||
pause
|
||||
Reference in New Issue
Block a user