pbr proto based policies failed
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
Maintainer: @stangri
Environment: 23.05.5
Description:
Hello!
I'm using pbr to filter all udp packets using my external IP so torrenting can work properly (using direct IP not NAT IP). Simple rule should be fine:
config policy
option proto 'udp'
option interface 'wanext'
But it failed with : ERROR: Policy 'Untitled' has no source/destination parameters!
Following rule works fine:
config policy
option dest_port '0-65535'
option proto 'udp'
option interface 'wanext'
Booth rules should be accepted.
Another issue: when policy name specified, error will be ommited:
ERROR:
udp routing
Contributor 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.
Research direction
Start with the pbr policy validation path and reproduce the failure using the shown proto/interface-only UCI policy on OpenWrt 23.05.5. Compare it with the equivalent rule containing dest_port, and verify that both policies are accepted and that named-policy errors retain their context.
Written by the indexing model from the issue text.
Assessment
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100