Skip Navigation

Firefox Only VPN through SOCKS5 Docker good idea?

I want firefox on my laptop to only go through a VPN and the easiest solution I came up with is forcing firefox SOCKS5 Proxy Docker Container which goes through a Mullvad gluetun docker container. I connect to my home server via tailscale

Browser < -tailscale- > SOCKS5 Docker < --- > gluetun Docker < --- > Internet

Is that a good idea? It seems a little overengineered, but simpler than running two VPNs on one machine?

Thanks

15 comments
  • I run my VPN and Firefox in a network namespace.

    Docker introduces latency, but network namespaces do not.

    • Docker isn't slow. I do this on linux.

      Docker is slow is a way to say that the virtualization is slow on you mac even if it costs a lot.

    1. Start a container with: bash, with --net none, with the X socket.
    2. Start the vpn
    3. Move the vpn interface to the net namespace of the container
    4. Install firefox in the container
    5. Browse
15 comments