Page MenuHomeVyOS Platform

set multiple PBR rules on single interface
Closed, ResolvedPublic

Description

Dear, Developers
I have a scenario that I want to set multiple PBR rule on a single interface. I want to set PBR to route some ip ranges from one of my wan interfaces.
We really need this feature. Please help us!

Yours Sincerely!
Steve Dong

Details

Version
-

Event Timeline

dongjunbo created this object in space S1 VyOS Public.
dongjunbo updated the task description. (Show Details)

Hi @dongjunbo,

can you describe your problem a little bit more.
I do something like this in some cases maybe it match on your use case:

set interfaces ethernet eth1 policy route WAN
set policy route WAN rule 1 destination port '80,443'
set policy route WAN rule 1 protocol 'tcp'
set policy route WAN rule 1 set table '100'
set policy route WAN rule 2 destination port '8080,8443'
set policy route WAN rule 2 protocol 'tcp'
set policy route WAN rule 2 set table '101'
set protocols static table 100 route 0.0.0.0/0 next-hop 10.1.1.1
set protocols static table 101 route 0.0.0.0/0 next-hop 10.2.2.2

it also worked with destination subnet or source subnet.
https://vyos.readthedocs.io/en/latest/routing.html#policy-routing

Hi, @rob
It works! Thanks a lot. This case can be closed now.

Yours Sincerely!
Steve dong