Using a VPN for packets coming from a specific IP and going to a specific IP range

Hi. I need to route some packets coming from the IP 192.168.1.100 of my LAN through a VPN tunnel. I'd like to route through the VPN only packets addressed to specific IP range(s). Is that feasible?

Yes, using policy based routing. See https://openwrt.org/docs/guide-user/network/routing/pbr

6 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.