I have configured my openwrt with firewall +vpn like this:
Wan ->. Rejected
Vpn -> rejected
Lan -> vpn
Then all traffic IS routed through vpn
But now i want to change this for route to vpn only one Pc.
Can you help me to change my config for this?
Regards
So all the other local devices won't have internet? If so, just change the firewall rule which sends traffic from LAN to VPN to allow only specific source IP.
Separate VPN from WAN in network config, create its own firewall zone for VPN with default forwarding for LAN/WAN, disable VPN being default routing and use vpn-policy-routing to route a specific IP to VPN.
Install package vpnbypass (it is in default list of repositories, unlike vpn-policy-routing), and try it. @stangri gave mess into topic. He is author of both packages, and his answers are correct. However for methodological purpose they are not good.