gateway as proxy for tor

ls -la /usr/share/tor/*

-rw-r--r-- 1 root root 4913550 Dec 16 09:56 /usr/share/tor/geoip
-rw-r--r-- 1 root root 3156350 Dec 16 09:56 /usr/share/tor/geoip6
lrwxrwxrwx 1 root root      35 Oct 11 00:55 /usr/share/tor/tor-service-defaults-torrc -> tor-service-defaults-torrc.anondist
-rw-r--r-- 1 root root   21243 Jan 25 08:28 /usr/share/tor/tor-service-defaults-torrc.anondist
-rw-r--r-- 1 root root     351 Dec 16 09:56 /usr/share/tor/tor-service-defaults-torrc.anondist-orig
-rw-r--r-- 1 root root     431 Dec 16 09:56 /usr/share/tor/tor-service-defaults-torrc-instances

Not by Whonix.

A symlink from

/usr/share/tor/tor-service-defaults-torrc

effectively to

/usr/share/tor/tor-service-defaults-torrc.anondist

/usr/share/tor/tor-service-defaults-torrc.anondist-orig

Original by Debian. Was /usr/share/tor/tor-service-defaults-torrc and then renamed to /usr/share/tor/tor-service-defaults-torrc.anondist-orig.

This isn’t a manual process. Using config-pacakge-dev displace action.

By Debian. Used for running multiple Tor instance which can be enabled using systemd. I haven’t researched that yet. Not used in Whonix currently.

Whonix /usr/share/tor/tor-service-defaults-torrc in the git repository is file /usr/share/tor/tor-service-defaults-torrc.anondist which config-package-dev puts into the right place in a good way.

Check folder /usr/share/tor on Debian vs Whonix.
The other files there such as tor-service-defaults-torrc-instances by Debian make it look more complicated than it ought to be.

Tor upstream doesn’t support “proper” torrc.d/*.conf support yet. See torrc.d is comming
That’s why historically Whonix had to use /usr/share/tor/tor-service-defaults-torrc.

Once ⚓ T947 Qubes-Whonix eth1 static networking is implemented, Whonix can stop modifications of /usr/share/tor/tor-service-defaults-torrc which would be cleaner.