-
Notifications
You must be signed in to change notification settings - Fork 0
Security
blycr edited this page Feb 6, 2026
·
1 revision
MSP provides practical LAN-focused access control via IP filtering and PIN authentication.
- Client IP source:
RemoteAddronly. - Proxy headers such as
X-Forwarded-ForandX-Real-IPare ignored in home mode. - Session cookie:
msp_session,HttpOnly,SameSite=Lax,Secure=false(LAN HTTP default).
{
"security": {
"ipWhitelist": ["127.0.0.1", "192.168.1.0/24"],
"ipBlacklist": [],
"pinEnabled": true,
"pin": "1234"
}
}- IP whitelist is checked first (if configured).
- IP blacklist has higher priority and always denies matching clients.
- If
pinEnabled=true, API requests require a valid session token:- Header:
X-Session-Token - Cookie:
msp_session
- Header:
- Endpoint:
POST /api/pin - Request body:
{ "pin": "1234" }- Response:
{ "valid": true, "enabled": true }- Home LAN: use at least a whitelist or PIN.
- Public network exposure is not recommended by default.
- Config supports hot reload; most changes apply in about 2 seconds.