<package-name>: <short description>
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 40/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- linux
- Domain
- networking, security
Research direction
The payload names no files, so start with the tinyproxy and nordvpnlite package directories and their init or firewall configuration. Confirm the running Tinyproxy's effective UID on a device, then check whether it is 65534. Done means a dedicated tinyproxy account with its own UID, nftables OUTPUT rules that match that UID, and fail-closed behaviour that survives reboot and firewall reload.
Written by the indexing model from the issue text.
Description
Package Name
tinyproxy, nordvpnlite
Maintainer
@openwrt
OpenWrt Version
25.12.6
OpenWrt Target/Subtarget
mediatek/filogic
Steps to Reproduce
Observed behavior and configuration
The default Tinyproxy runtime identity is nobody (UID 65534). The inspected nftables rules were scoped to UID 65534:
meta skuid 65534 oifname "lo" accept comment "Tinyproxy DNS loopback"
meta skuid 65534 oifname "nordvpnobonlite" accept comment "Tinyproxy VPN only"
meta skuid 65534 drop comment "Tinyproxy fail closed"
Because UID 65534 is the shared nobody identity, these rules do not uniquely identify Tinyproxy. Other processes using that UID are subject to the same restrictions, and the rules cannot provide a dedicated per-proxy security boundary. The earlier investigation also identified the need to ensure the rules match Tinyproxy's actual post-privilege-drop UID.
Expected behavior
Tinyproxy should run under its own dedicated tinyproxy account, whose UID is not 65534. Only that account's outbound traffic should be permitted to use loopback for DNS and the NordVPN interface for Internet access. If VPN egress is unavailable, Tinyproxy must fail closed without falling back to WAN.
Recommended correction
- Create a dedicated
tinyproxyuser (and group if required by the package) with a UID other than 65534. - Configure Tinyproxy to use that account after startup/privilege drop, and verify its effective UID on the running system.
- Update all Tinyproxy-specific nftables OUTPUT rules to match the dedicated UID, not 65534. Keep the loopback DNS allow, NordVPN-interface allow, and fail-closed drop scoped to that UID.
- Verify that unrelated services running as
nobodyare no longer captured by the Tinyproxy-specific policy. - Test with VPN active: users with UID 65535 gets no VPN connection, users with other UID can access the VPN connection.
- Check that the account, Tinyproxy privilege-drop setting, and firewall rules persist across reboot and firewall reload.
if it help https://buymeacoffee.com/andrewlev
Actual Behaviour
Tinyproxy runs by default as user nobody, UID 65534. On this OpenWrt router, nftables OUTPUT rules use the process UID to restrict Tinyproxy to loopback DNS and the NordVPN interface, with a fail-closed drop for other egress. Using the shared nobody UID for that policy is the wrong identity boundary: unrelated processes can also run as nobody, while the proxy does not have its own dedicated account.
The solution is to create a dedicated tinyproxy user with a UID other than 65534, configure Tinyproxy to drop privileges to that account, and make the VPN-only / fail-closed nftables rules match the dedicated UID.
Environment
- Device: OpenWrt router
- OpenWrt Version: 25.12.6
- Proxy: Tinyproxy
- VPN interface: nordvpnlite
- Firewall: nftables custom OUTPUT chain
- Docker-Container client: at 172.30.200.2; proxy endpoint 172.30.200.1:8888
Confirmation Checklist
- The package is maintained in this repository.
- I understand that issues related to the base OpenWrt repository or LuCI repository will be closed.
- I am reporting an issue for OpenWrt, not an unsupported fork.
- Dominant language
- Makefile
- Stars
- 4.7k
- Forks
- 4k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 251
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openwrt/packages
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
openwrt/packages#31307 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
openwrt/packages#31306 · 1 comment ·
Maintainers usually reply within 1 day
All issues in openwrt/packages
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
webtorrent/webtorrent#3131 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100