Vpn client on seperate wifi network, no vpn on the other

opkg update
opkg install vpn-policy-routing
uci set vpn-policy-routing.config.enabled="1"
uci -q delete vpn-policy-routing.config.dest_ipset
uci -q delete vpn-policy-routing.lan_vpn
uci set vpn-policy-routing.lan_vpn="policy"
uci set vpn-policy-routing.lan_vpn.src_addr="192.168.1.0/24"
uci set vpn-policy-routing.lan_vpn.dest_addr="!192.168.1.0/24"
uci set vpn-policy-routing.lan_vpn.interface="VPN"
uci commit vpn-policy-routing
/etc/init.d/vpn-policy-routing restart

VPN Policy-Based Routing + Web UI -- Discussion

1 Like