I want to make my WireGuard client connect to the peer server behind a SOCKS5 proxy and only apply it to my browser, just like Tor Browser. But since WireGuard is a VPN implementation, it will create a virtual network connection, thus routing the whole system to the VPN.


1 Answer 1


You will need to place your browser inside something that provides it's own network stack thus controllable via networking rules. Usually this would be done by running your browser inside a virtual machine or container system (e.g. docker).

Android does this automatically by sand boxing every app inside it's own container and giving it a network stack. This allows system level IP routing to manage traffic from each app separately.

Some destkop app packaging systems are starting to do this as well, so you might be able to find a containerized browser that has it's own internal IP routing and could be manipulated to do this.

Otherwise your best bet is to setup a virtual machine (e.g. Virtual Box) and separate your VPN apps from the system networking that way.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .