Whonix VPN over Tor (Mullvad)

Hello everyone.

I installed VirtualBox and downloaded the Whonix file for VirtualBox from the official Whonix website.

My ideal setup looks like this: “Host” => “Whonix (Tor)” =**> “**VPN (Mullvad)”.

For the following reason: I want to be able to access websites that may have Tor blocked using the Tor Browser in Whonix.

Now to my approach:

  • As I said, I installed VirtualBox and then Whonix.
  • Downloaded the OpenVPN (.ovpn file) from the Mullvad website. (Port: TCP443)
  • Whonix Gateway started, a shared folder created. The (.ovpn) file was placed in the “user” folder. An “auth.txt” file was also created with the user ID for Mullvad.
  • The “chmod” command was executed on the “auth.txt” file.
  • I then slightly modified the .OVPN file using ChatGPT, as Mullvad’s version didn’t work. Here is the revised .OVPN file:

client
dev tun
proto tcp-client

Verbindung über Tor SOCKS (Whonix Gateway)

socks-proxy 127.0.0.1 9050
socks-proxy-retry

remote-random
remote 103.216.220.66 1197 # au-bne-ovpn-302
remote 103.216.220.50 1197 # au-bne-ovpn-301

resolv-retry infinite
nobind
persist-key
persist-tun

Wichtig: verhindert DNS-Leaks & Routing-Übernahme

route-nopull
pull-filter ignore “redirect-gateway”
pull-filter ignore “dhcp-option DNS”
pull-filter ignore “route-ipv6”

remote-cert-tls server
auth-user-pass /etc/openvpn/auth.txt => The auth.txt file is still located in the “user” folder.

cipher AES-256-GCM
auth SHA512
key-direction 1

verb 3
mute-replay-warnings

Stabilität über Tor

explicit-exit-notify 0
connect-timeout 60
connect-retry-max infinite

-----BEGIN CERTIFICATE----- CODE-FROM.CRT-CERTIFICATE -----END CERTIFICATE-----
  • Then I executed the following command: openvpn --config ‘/home/user/Mullvad-ChatGPT1.ovpn’ --auth-user-pass ‘/home/user/auth.txt’

I receive the following error messages:

2025-12-26 15:06:38 Socket Buffers: R=[131072->131072] S=[16384->16384]
2025-12-26 15:06:38 Attempting to establish TCP connection with [AF_INET]127.0.0.1:9050
2025-12-26 15:06:38 TCP connection established with [AF_INET]127.0.0.1:9050
2025-12-26 15:07:39 recv_socks_reply: TCP port read timeout expired: Operation now in progress (errno=115)
2025-12-26 15:07:39 SIGUSR1[soft,socks-error] received, process restarting
2025-12-26 15:07:39 Restart pause, 300 second(s)

Thank you so much for all your help and helpful comments. THANK YOU!

1 Like
2 Likes

See also:

1 Like

mullvad removes open vpn in January so uses porxies or another trusted vpn

1 Like

Or use Wireguard. Removing OpenVPN 15th January 2026 | Mullvad VPN

2 Likes

2 posts were split to a new topic: Hosting Location Hidden Services Wiki Page