Setup VPN for specific device(s) only

I want to set up VPN only for my Smart TV, can anyone help me how to do it? I can use Open VPN or WireGuard which ever best or easy


Device: Asus RT-AX53U

WireGuard is more performant and much easier to setup.

Your VPN provider may have step-by-step instructions to help you setup WireGuard on OpenWrt, but you can also follow this guide using the keys they provide along with the keys you generate for your local peer.

Once that is done and proven working, you can use Policy Based Routing to specify the address of your TV such that it goes through the VPN while the rest of the devices use the normal wan.

2 Likes

I am using Surf Shark VPN, and I believe their guide is outdated.

Normal VPN is Working Now

Now I just have to set the PBR

Can you please help me with pbr setup, right now VPN on for every device and i want vpn only on my TV (Assigned Local IP: 192.168.50.200)

I assume you mean OpenVPN. If so:

  1. Disable gateway redirection.
  2. Create a network interface.
  3. Add the following to /etc/config/network.
config rule
        option src '192.168.50.200/32'
        option lookup '100'

config route
        option target '0.0.0.0/0'
        option interface 'vpn' # Correct logical ifname here
        option table '100'
  1. Restart the affected services or reboot the device.

No, I'm using WireGuard

Then just disable route_allowed_ips and add the suggested ip rule/route.

1 Like

After turning off route_allowed_ips my internet stopped working IP was set at 0.0.0.0/0

Never mind, done!

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