Reverse proxy¶
Publish internal web applications (Nextcloud, Home Assistant, Grafana, a NAS, Jellyfin…) under your own domain names with automatic HTTPS, without opening one port per service. fr0ntier renders an nginx configuration and obtains free Let's Encrypt certificates with dehydrated (HTTP-01 validation through the proxy itself).
flowchart LR
C[Browser] -->|https://cloud.example.org| F[fr0ntier :443 nginx]
F -->|http://192.168.10.5:8080| A[Nextcloud]
F -->|https://192.168.10.40:8123| B[Home Assistant]
LE[Let's Encrypt] -->|/.well-known/acme-challenge| F
Quick start¶
- Create DNS A/AAAA records for your names pointing to the WAN address of the firewall (or a CNAME to your dynamic DNS name).
- Network › Reverse Proxy › Settings: enable the proxy, choose where it listens
(usually
WAN), keep ports 80/443 and enter the e-mail for Let's Encrypt. - Add proxy host: name, domain(s), Forward to
http://192.168.10.5:8080, certificate Let's Encrypt. - Commit. The firewall opens 80/443 on the chosen interfaces, starts nginx with a temporary self-signed certificate and requests the real certificate in the background. The Certificates table turns from requesting… to 90 days in about a minute.
Port 80 must be reachable from the Internet for the validation (the HTTP site redirects everything else to HTTPS).
Proxy host options¶
| Option | Notes |
|---|---|
| Domain names | One or more names; each name can belong to a single host. Wildcards (*.example.org) need a custom or self-signed certificate. |
| Forward to | One or more http:// or https:// internal servers with port. Several servers are load balanced (round robin, least connections or sticky by client IP) with passive health checks (3 failures → 10 s out). |
| WebSockets | Enabled by default (Home Assistant, Proxmox, chat apps…). |
| Upstream certificate | Internal HTTPS servers are usually self-signed: verification is off unless you enable it. |
| Timeout, max upload | Read/send timeout and maximum request body (0 = unlimited). |
| Certificate | Let's Encrypt (automatic, renewed 30 days before expiry), upload (PEM certificate with chain + key, checked when saved), self-signed (testing/internal) or none (HTTP only). |
| Redirect, HSTS, HTTP/2 | Redirect HTTP to HTTPS, Strict-Transport-Security header, HTTP/2. |
| Allowed sources | Address objects, IPs, CIDRs or ranges allowed to connect (allow/deny). Empty = public. |
| Password protection | Optional user:password entries (HTTP basic authentication, salted SHA hashes). |
| Extra response headers | Name: value, e.g. X-Frame-Options: SAMEORIGIN. |
| Custom nginx directives | Added to the location / block — checked with nginx -t at commit time. |
Requests for unknown names are closed without an answer (HTTP 444, TLS handshake rejected),
so scanners hitting the IP address learn nothing.
Certificates¶
The Certificates table (also get proxy certificates in the CLI) shows issuer, expiry and
state of every host. Request / renew Let's Encrypt starts the ACME client immediately; a
daily timer renews certificates automatically. Use Let's Encrypt staging in the settings
while testing to avoid rate limits.
Files: /etc/fr0ntier/nginx/nginx.conf, /etc/fr0ntier/acme/{config,domains.txt},
certificates in /var/lib/fr0ntier/proxy/certs/<host>/, ACME account in
/var/lib/fr0ntier/acme/. Services: fr0ntier-proxy.service (nginx),
fr0ntier-acme.service + fr0ntier-acme.timer (dehydrated). The Debian nginx.service
stays disabled.
Access log¶
nginx sends every request as JSON to the fr0ntier daemon (unix socket), stored in the
proxy log stream — Monitoring › Events — and exportable to your SIEM like any other
stream: site, host, client, method, URI, status, bytes, duration, upstream, TLS version,
user agent. 5xx responses are tagged error, 4xx notice.
Security notes¶
- Publishing an application exposes it to the Internet: keep it updated, prefer Allowed sources or Password protection for admin interfaces, and combine with the VPN for anything that does not need to be public.
- The proxy only listens on the interfaces you select; the administration interface of the firewall stays on its own port (8443) and is never proxied.