Enable WireGuard VPN only for specific devices on LAN

Hi community,

I've installed OpenWrt on a Redmi AX6S router yesterday. I've sucessfully installed a WireGuard VPN, based on this tutorial, and my entire LAN is now on this VPN Tunnel.

Actually, there are specific devices that i really want using VPN, and all the rest outside, connected directly thorugh ISP.

How can i set this?

It would be very helpful a way of doing this directly on LUCI interface. If command-line is inevitable, please specify the way of doing this.

Thanks a lot.

1 Like

You need to do Policy Based Routing and you have 3 options:

  1. mwan3 package
  2. pbr package
  3. a set of rules/routes for each internet connection.

@trendy , thanks a lot: installed pbr package and it works great. The luci-app-pbr is excellent, helped me to setup the rules I needed.

1 Like

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