hi guys
i have a xiaomi 4A Gigabit with Firmware Version OpenWrt 21.02.0 and kernel 5.4.143
i have just setup wireguard and it is working perfectly but i dont want my all devices go through vpn
i just only need one of them ( ps 5 ) go through vpn
there was a same topic here : Use WireGuard interface for specific devices only
but i didnt really get what he said
would u plz give me a step by step guide for a noob ! or whatever u want name me to solve this ?
change default GW for the PS5 to go through the tunnel ?
ether manually, or via DHCP - https://openwrt.org/docs/guide-user/base-system/dhcp_configuration
moein2024:
explain more ?
Yes; but I'm certain you won't get the desired effect, since this servers are managed by different providers - blocking different domains.
Also, here is the correct method (I realized option dns was a Boolean value):
config host
option ip '192.168.1.2'
option mac '00:11:22:33:44:55'
option name 'mypc'
option dns '1'
option tag 'kids_dns'
config tag 'kids_dns'
list dhcp_option '6,216.239.38.120,208.67.222.123,208.67.220.123'
Hope this helps.
(You would use DHCP Option No. 3 - Router/Gateway.)
The OP needs a custom route table with the VPN's gateway s the default route
The OP will need to make a custom ip rule
listing the IPs/IP ranges to use the VPN
The we GUI Policy Based Routing app should do this; but I never installed/used it to do so.
@moein2024 ,
Hope this points you in the correct direction. There are also threads you can search about the app.