Pushing "ip rule" configuration via OpenWisp

Hello,

As it's my first topic, I salute you all :slight_smile: I have a quick question about ip rule commands and what is the best way to do it.

Context
We are using openwisp to operate multiple openwrt devices. We have few of them that require two networking tables:

  • We created the vlan and associate it to ports
  • We created a specific routing table thanks to /etc/iproute2/rt_tables

We know have to links the two thanks to the following command

ip rule add from all iif br-LAN2 lookup 10

As far as I know, it's not possible to implement this configuration by files, is it ?
How would you do with a openwisp controller ?

Thank you,
Romain D

https://openwrt.org/docs/guide-user/network/routing/ip_rules#ipv4_rules

3 Likes