HOWTO: uci and rt_table?

Hello

How to do the following using UCI (/etc/config/network)?

  1. Add "200 vpn" to /etc/iproute2/rt_table
  2. ip route add default via A.B.C.D table vpn
  3. ip rule add from Z.X.0.0/16 lookup vpn
  1. echo "200 vpn" >> /etc/iproute2/rt_tables (or use the table index directly)
config route
  option interface XXX   # related logical interface
  option target 0.0.0.0/0
  option gateway A.B.C.D
  option table vpn
config rule
  option src Z.X.0.0/16
  option lookup vpn
1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.