lan-proxy

Configure a Caddy reverse proxy and firewall rules to expose local services to LAN clients.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/thesobercoder/skills --skill lan-proxy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lan-proxy
Source: https://github.com/thesobercoder/skills/tree/main/lan-proxy
Command: npx skills add https://github.com/thesobercoder/skills --skill lan-proxy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables exposing local services running on a single machine to other devices on the same LAN by using Caddy as a reverse proxy and ufw for firewall control.

Core Features & Use Cases

  • LAN exposure of local services via Caddy reverse proxy.
  • Automatic port mapping and localhost binding to route traffic safely.
  • Troubleshooting guidance for connectivity issues, including Host header handling and firewall rules.

Quick Start

Run the provided setup script to expose a new local service via the LAN proxy.

Frequently Asked Questions about lan-proxy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I expose local development servers to other devices on my LAN?

To expose local development servers to your LAN, you can use a Caddy reverse proxy to route external LAN traffic to your localhost services while managing access with ufw firewall rules. This allows other devices to access your local APIs or dashboards securely.

What's the best way to configure Caddy as a reverse proxy for local network access?

Configuring Caddy as a reverse proxy for local network access involves creating a proxy configuration that binds to localhost and maps ports for your internal services. The setup script modifies ufw and Docker rules to route LAN traffic safely to Caddy.

Do I need to modify ufw firewall rules to share local APIs over the LAN?

Yes, you need to modify ufw firewall rules to share local APIs over the LAN. The process updates ufw configurations, including Docker before.rules, to allow external LAN clients to reach the Caddy reverse proxy and access your internal services.

Why is my LAN proxy not working when accessing local services from another device?

If your LAN proxy is not working, it is likely due to incorrect firewall rules or Host header handling issues. Troubleshooting involves verifying ufw configurations, checking Docker before.rules modifications, and ensuring Caddy properly routes traffic to your localhost services.

Can I use this LAN proxy setup for single-host Docker containers?

Yes, you can use this LAN proxy setup for single-host Docker containers. It modifies Docker rules via before.rules and configures Caddy to expose your local services to LAN clients, making it suitable for single-host environments running testing servers or local APIs.