This commit is contained in:
Mateusz Gruszczyński committed 2026-09-29 16:53:26 +02:00
1 parent 5ec14c6157
commit d94bd7609a
11 files changed
+232 -9

No files matched your search

+32
View File
@@ -154,3 +154,35 @@ The RustProxy administration UI is reachable from other hosts by default on port
Direct `pkg add` is supported: the package post-install script restarts OPNsense `configd`, flushes the plugin cache and renders `/usr/local/etc/rustproxy/opnsense.conf` so `configctl rustproxy status/start/stop` is available immediately.
RustProxy requires its data directory to be private. The plugin enforces owner `rustproxy:rustproxy` and mode `0700` on `/var/db/rustproxy` before every start.
## FreeBSD patch set
The OPNsense builder automatically applies version-specific RustProxy patches to a temporary build copy only. The application checkout remains clean:
```bash
cd /opt/opn-rustproxy/source/RustProxy
git status
```
For RustProxy 0.20.0 the builder uses:
```text
builder/freebsd/patches/0.20.0/0001-opnsense-build.patch
```
The normal setting is:
```bash
APPLY_FREEBSD_PATCHES=1
```
During a build you should see:
```text
Applying FreeBSD/OPNsense patch set for RustProxy 0.20.0 to isolated build source...
applied: 0001-opnsense-build.patch
```
## Runtime directory
`/var/run/rustproxy` is created automatically as `rustproxy:rustproxy` with mode 0750 during package installation and before each service start. PID files are `daemon.pid` and `rustproxy.pid` inside that directory.