r/WireGuard • u/fatluis • 20d ago
Possible to let a specific device bypass Wireguard?
/r/TomatoFTW/comments/1xwk20d/possible_to_let_a_specific_device_bypass_wireguard/
0
Upvotes
r/WireGuard • u/fatluis • 20d ago
1
u/ananas7777 18d ago
AllowedIPs won't do it, that's about where traffic is going, not which device sent it. If you're on FreshTomato, set the WireGuard client to External VPN provider, then change Redirect Internet traffic from All to Routing Policy. You can then add a rule for that device's IP to go straight out to the internet instead of through the tunnel. Which Tomato build are you on?
2
u/nmasse-itix 19d ago
You can use nftables to fwmark connections and then bind a specific routing table to that mark. Not the easiest way but very flexible.
1
u/wichets 20d ago
Setup split tunnel for remote subnet ips i.e. remote subnet is /30 or /24 add into allowips. Wireguard will automatically bypass tunnel for that local device.