Redirect Whonix-Workstation Ports or Unix Domain Socket Files to Whonix-Gateway

Tried port redirection with no success (if it is working).

I discovered /usr/share/anon-ws-disable-stacked-tor/systemd-unit-files-generator is not even installed on Whonix 15. I had to add the script manually.

Also is the command correct for this? How would it know what port to redirect if it is not specified in the unix domain socket file?

file_port_tuples+=" /var/run/anon-ws-disable-stacked-tor/unix-domain-socket-file.sock#9050 "



From an application using unix domain socket files, it does not define any port numbers, since, well, it is using unix domain socket files. So we have to make it up. For Tor Browser I’ve arbitrarily chosen the port numbers it used to use before Tor Browser was changed to be using unix domain socket files by Tor Project.

A port can be picked as per https://www.whonix.org/wiki/Stream_Isolation. Depending on the application, we might have to add new ports.

Should be good enough for development for for production we might have to use a different port as per above.

1 Like

Instructions clarified.


Reboot required
(or this patch - until package gets upgraded.)

Pretty sure any quirks for manual run be sorted. This is essential for Tor Browser connectivity (so this is working) and manual run and instructions therefore surely can be sorted.

1 Like