Page MenuHomeVyOS Platform

Migrate policy local-route
In progress, LowPublicFEATURE REQUEST

Description

Migrate policy local-route as it is not used only for the local traffic, and it could confuse some users.
Initially, it was implemented to add some features to handle traffic generated from the router. Still, it was extended and used not only for local traffic but also for forwarding.

There are proposed options for new CLI (one of them)

# Original
set policy local-route rule 100 fwmark '10'
set policy local-route rule 100 set table '123'
set policy local-route6 rule 100 fwmark '66'
set policy local-route6 rule 100 set table '66'

# 1
set policy flexible-route rule 100 fwmark '10'
set policy flexible-route rule 100 set table '123'
set policy flexible-route6 rule 100 fwmark '66'
set policy flexible-route6 rule 100 set table '66'

# 2
set policy flexible-match-route rule 100 fwmark '10'
set policy flexible-match-route rule 100 set table '123'
set policy flexible-match-route6 rule 100 fwmark '66'
set policy flexible-match-route6 rule 100 set table '66'

# 3
set policy inet-route rule 100 fwmark '10'
set policy inet-route rule 100 set table '123'
set policy inet6-route rule 100 fwmark '66'
set policy inet6-route rule 100 set table '66'

# 4
set policy pbr rule 100 fwmark '10'
set policy pbr rule 100 set table '123'
set policy pbr6 rule 100 fwmark '66'
set policy pbr6 rule 100 set table '66'

# 5
set policy ip-rule rule 100 fwmark '10'
set policy ip-rule rule 100 set table '123'
set policy ip-rule6 rule 100 fwmark '66'
set policy ip-rule6 rule 100 set table '66'

# 6
set policy ipv4 ip-rule rule 100 fwmark '10'
set policy ipv4 ip-rule rule 100 set table '123'
set policy ipv6 ip-rule rule 100 fwmark '66'
set policy ipv6 ip-rule rule 100 set table '66'

Or something else.

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)