openwrt / openwrt/packages

pbr proto based policies failed

Open
#25,546 0 comments 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.