Adding a rule and a static route to... route all packets from a host through a specific wireguard interface. How?

You need a combination of ip rule and route.

I guess it's related to your previous topic.

config rule
        option in 'lan'
        option src '172.16.1.100/32'
        option lookup '100'

config route
        option target '0.0.0.0/0'
        option interface 'wg0'
        option table '100'

Тhe local routing table has the highest priority.

1 Like