openwrt / openwrt/packages

pbr: custom proto tunnels can't be used

Open
#27,437 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Package Name

pbr

Maintainer

Stan Grishin

OpenWrt Version

24.10.2

OpenWrt Target/Subtarget

ramips/mt7621

Steps to Reproduce
  1. Add interface with custom tunneling proto, e.g. amneziawg (from other sources)
  2. Execute ubus -S call luci.pbr getInterfaces command.
  3. Observe that there is no added amneziawg interface in the list of supported interface for PBR
Actual Behaviour

/etc/init.d/pbr contains some code to determine the supported interfaces types. This method is hardcoded and doesn't allow to add custom protocol types.

It would be cool if script contains some sort of hook which can be used to install additional criteria by other packages providing custom tunneling protos.

Confirmation Checklist

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with /etc/init.d/pbr and the interface detection used by ubus -S call luci.pbr getInterfaces. Trace how supported interface types are determined, then define a hook that other packages can use to register custom tunneling protocols. Done means an added amneziawg interface appears in the supported interface list.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.