Excellent. I've been wanting something like this for a while to use with Mullvad, but had to resort to docker containers instead.
This plays well with proxychains to make proxy-naive programs use SOCKS5 proxies.
This plays well with proxychains to make proxy-naive programs use SOCKS5 proxies.
> If you configure your browser, for example, to use the SOCKS5 proxy, it will direct all of your internet access via the proxy which is only accessible through Mullvad. So if you haven't turned on the app, your browser will prevent all internet access and therefore won't leak any information.
AllowedIPs = 10.64.0.1/32
in your wireguard config will only forward traffic bound to 10.64.0.1 (the IP Mullvad uses for their SOCKS5 proxies on wireguard connections) to the VPN server, which more or less achieves the same result as the OP post. You can access the SOCKS proxy without having your whole internet routed through the VPN.