Just an update.
I have managed to setup following:
1. WiFi network (magnet-vpn) where all clients are routed over my wireguard VPN (using this Network I'm always at home).
2. Guest WiFi network (magnet-guest) where all clients are routed over WAN and have no access to my home network / vpn.
To setup it, you have to login into shell and execute:
opkg update
opkg install vpn-policy-routing
uci set vpn-policy-routing.config.enabled="1"
while uci -q delete [email protected][0]; do :; done
uci add vpn-policy-routing policy
uci set [email protected][-1].name="Ignore_wireguard_VPN"
uci set [email protected][-1].dest_addr="my.wireguard.hostname.com"
uci set [email protected][-1].interface="ignore"
uci add vpn-policy-routing policy
uci set [email protected][-1].name="Ignore_Guest"
uci set [email protected][-1].src_addr="192.168.46.1/24"
uci set [email protected][-1].interface="ignore"
uci add vpn-policy-routing policy
uci set [email protected][-1].name="AllWireguard"
uci set [email protected][-1].src_addr="0.0.0.0/0"
uci set [email protected][-1].interface="magnets"
uci commit
/etc/init.d/vpn-policy-routing restart
2. create guest network as described here: https://wiki.teltonika-networks.com/view/How_to_set_up_a_guest_WiFi_network_on_RUTX
Please note: I'm using my own subclass: 192.168.46.1.
3. Important: in wireguard Settings define Allowed IP's as: 0.0.0.0/0 BUT do not enable:Route Allowed IPs option (the vpn-policy-routing Plugin will create these routing entries)
So far I'm happy. will try to setup killswitch today.