Strange issue. I'm trying to route traffic from a specific LXC (Linux container) with the MAC address BC:24:11:E4:F4:CF
(, IP 192.168.0.6
) through a WireGuard VPN on an GL-MT6000. When I select "VPN policy based on Client device" is not fully working as expected, I suspect some requests are lost. When I select "Auto detect" proxy mode - everything works but now all devices go through WG VPN and that's something I want to avoid.
Here are my tests run from LXC container:
[No VPN]
- checking torrent tracker1 port: curl -v http://188.120.242.106:2710/ - OK
- checking torrent tracker2 port: curl -v http://93.158.213.92:1337 - OK
[WireGUard with Policy based routing]
- checking torrent tracker1 port: curl -v http://188.120.242.106:2710/ - Could not connect to server
- checking torrent tracker2 port: curl -v http://93.158.213.92:1337 - OK
So one might think tracker is blocking VPN IPs, right?
However:
[WireGUard with Auto Detect proxy mode]
- checking torrent tracker1 port: curl -v http://188.120.242.106:2710/ - OK
- checking torrent tracker2 port: curl -v http://93.158.213.92:1337 - OK
And:
[Wireguard with with Policy based routing, plus manually added IP routing]
ip route add table wg_vpn default dev wgclient
ip rule add from 192.168.0.6 lookup wg_vpn
- checking torrent tracker1 port: curl -v http://188.120.242.106:2710/ - OK
- checking torrent tracker2 port: curl -v http://93.158.213.92:1337 - OK
I'm kinda at loss, IP and MAC based routing and FWs are not my strongest side and even for most of above I had to use ChatGPT.
How is that possible? How come some traffic goes though VPN but similar traffic to another destination is rejected? How come it doesn't work in Policy Based routing but works in "Auto"?