I currently have a Netis N6 with owrt in dumb wireless AP mode downstream from a x86 owrt router.
My goal is to send all traffic from wireless clients through a ZeroTier VPN interface on the main router.
Presumably i cant set the "exit node" up on the wireless AP as its not doing any routing. I can use the ZT option to allowDefault=1, but that doesnt seem to work for any clients, wired and wireless, again presumably, because of the firewall.
Ive had a look at making this work using PBR but have no idea what to do there, if someone understands policy based routing in luci, a pointer would be appreciated.
Say i have a client on the main router that has an ip 192.168.10.123, and i want to send all traffic from it via the zerotier tunnel (which is set up to route everywhere through a remote client). I open Policy Routing, add a policy setting the source address to 192.168.10.123 and the remote to 0.0.0.0/0 with the interface selected as zerotier.
This does nothing in combination with zerotier setting the default route:
root@OpenWrt:~# zerotier-cli set xxxxxxxxxxxxxxx0c27 allowDefault=1
{"allowDNS":false,"allowDefault":true,"allowGlobal":false,"allowManaged":true,"assignedAddresses":["192.168.196.20/24"],"bridge":true,"broadcastEnabled":true,"dhcp":false,"dns":{"domain":"","servers":[]},"id":"xxxxxxxxxxxxx","mac":"xxxxxxxxxx29:a0","mtu":2800,"multicastSubscriptions":[{"adi":0,"mac":"xxxxxxxx00:01"},{"adi":0,"mac":"xxxxxxxx0:00:01"},{"adi":0,"mac":"xxxxxxxxx00:02"},{"adi":0,"mac":"x0:00:00"xxxxxxxxxxxx},{"adi":0,"mac":"xxxxxxxxxxxx9:a0"}],"name":"zt_net","netconfRevision":267,"nwid":"xxxxxxxx10c27","portDeviceName":"zth6rjvwdc","portError":0,"routes":[{"flags":0,"metric":0,"target":"0.0.0.0/0","via":"192.168.196.17"},{"flags":0,"metric":0,"target":"192.168.1.0/24","via":"192.168.196.1"},{"flags":0,"metric":0,"target":"192.168.10.0/23","via":"192.168.196.20"},{"flags":0,"metric":0,"target":"192.168.196.0/24","via":null}],"status":"OK","type":"PRIVATE"}