I'm trying to get my head around what vpn-policy-routing does and how to use it to target one device in my house to use my wireguard interface.
At the moment, I have a wireguard interface which when it is running means my whole network runs through the VPN.
When I have luci-vpn-policy-routing enabled, I see no change in behaviour, so presumably I need to set my network's default route some way? And then target the individual client to use my wg0?
How would I go about that?
Any help greatly appreciated!
/etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix '<redacted>'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.2.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'WAN'
option proto 'dhcp'
option device 'eth1.20'
option macaddr '<redacted>'
config interface 'wg0'
option proto 'wireguard'
option auto '0'
option private_key '<redacted>'
list addresses '192.168.9.3/32'
config wireguard_wg0
option description '<redacted>'
option public_key '<redacted>'
list allowed_ips '0.0.0.0/0'
option route_allowed_ips '1'
option endpoint_host '<redacted>'
option endpoint_port '51820'
option persistent_keepalive '25'