v0.42.2_fix1

This commit is contained in:
Mateusz Gruszczyński committed 2026-11-26 11:53:05 +01:00
1 parent f38a2b9e5e
commit 15c7f9ff9e
24 files changed
+464 -77

No files matched your search

+15
View File
@@ -13,6 +13,21 @@ Global restrictions add to per-vhost and path rules. Rate-limit requests are cou
- **IP/CIDR ACL:** allow or deny IPv4/IPv6 networks. Use reusable ACL profiles for settings shared by several domains. Both ordinary and Docker Vhosts use a searchable multi-select with selected badges and a preview of IP/CIDR rules, country restrictions and the default policy; the selection changes presentation only, not ACL evaluation. A Vhost can select up to eight profiles (`acl_profile_ids`, or one legacy `acl_profile_id`); Docker assignments can override or inherit the agent's profile selection.
- **DNS/DDNS:** an ACL `allow` rule may use a hostname, such as `allow office.example.ddns.net`; `deny` with DNS is not supported. Records are refreshed periodically; unknown, failed or expired resolutions authorize nobody under the allow rule. This is appropriate for a trusted, controlled DDNS record, not a replacement for login.
### Diagnose dynamic DNS access
Open **ACL profiles -> DNS/DDNS ACL resolver status -> Refresh DNS status** or request authenticated `GET /api/acl/dns-status`. The view includes every DNS rule (global, profile, Vhost and location), not just the currently selected profile. It returns the normalized hostname, `pending` / `resolved` / `failed` / `expired`, the **currently permitted A/AAAA addresses**, time of last lookup, remaining validity and the most recent failure reason. The API is restricted to the admin session or a read-scoped administrative API token.
Resolution starts when the server starts, updates after configuration changes and refreshes every 60 seconds. A successful answer is valid for up to 180 seconds, provided it remains in the active cache. Every failed refresh **immediately removes the permission** for that hostname. `resolved` does not mean that a particular visitor is allowed: the source IP seen by RustProxy must be one of the returned addresses, and all other attached ACL/country/access policies still apply. Verify whether traffic arrives through a reverse proxy, NAT or IPv6 before blaming DNS.
Resolution uses the operating system's resolver (the server running RustProxy, or the container's resolver). Check on that host:
```bash
getent ahosts office.example.ddns.net
journalctl -u rustproxy --since '10 minutes ago' | grep 'ACL DDNS'
```
Look for `ACL DDNS resolver inventory updated` and `ACL DDNS resolved` at info level in the journal. Failed lookups emit a **warning** with the hostname and actual system resolver error or timeout; if error-file logging is enabled, these warnings are written to the configured error file. The access log contains HTTP requests, not DNS refresh results. No warning after the first refresh is **not proof of a failure**; a successful lookup that resolves to the wrong address also denies access without generating a DNS error. If the status remains `pending` for more than one refresh interval while the rule exists in the active configuration, investigate whether the DNS worker started or crashed. Avoid changing the ACL default to `allow` as a workaround.
- **Country access:** allow-only or blocking based on the configured GeoIP database. Allow-only mode fails closed when a country cannot be determined. Keep the GeoIP database updated in **Settings → GeoIP updates**.
- **Cloudflare client IP:** enable the integration only when traffic really arrives through a controlled Cloudflare/trusted-proxy boundary. Never trust arbitrary client-supplied forwarding headers as an identity proof.