Skip to content

Commit

Permalink
Munge /etc/tor/torrc in sd-whonix's /rw/config
Browse files Browse the repository at this point in the history
This removes the duplicate directive from /etc/tor/torrc on boot.

Because anon-connection-wizard is the process that will clean up and repopulated the torrc, we must run it at boot and restart tor manually, bypassing anon-connection-wizard.

This should be resolved once anon-connection-wizard 4.2 is released upstream, see https://forums.whonix.org/t/configuring-onion-service/9042/37
  • Loading branch information
emkll committed Mar 10, 2020
1 parent b6b721a commit 49a64ab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dom0/sd-whonix-rsyslog-enable.sls
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ sd-rc-enable-logging:
ln -sf /rw/config/sdlog.conf /etc/rsyslog.d/sdlog.conf
fi
systemctl restart rsyslog
# Munge torrc file and restart tor on boot instead of upstream's anon-connection-wizard
# see https://forums.whonix.org/t/configuring-onion-service/9042/37
sudo sed -i 's,^\%include /etc/torrc.d/95_whonix.conf,,' /etc/tor/torrc
sudo service tor restart
cmd.run:
- name: ln -sf /rw/config/sd-rsyslog.conf /etc/sd-rsyslog.conf && systemctl restart rsyslog


- name: /rw/config/rc.local

0 comments on commit 49a64ab

Please sign in to comment.