Additional tor settings

This commit is contained in:
Bob Mottram 2014-12-28 18:40:12 +00:00
parent 9706a46a6a
commit 7072822193
1 changed files with 6 additions and 0 deletions

View File

@ -7053,6 +7053,12 @@ function route_outgoing_traffic_through_tor {
echo "DNSListenAddress localhost" >> /etc/tor/torrc
fi
if ! grep -q "ClientOnly" /etc/tor/torrc; then
echo "ClientOnly" >> /etc/tor/torrc
fi
sed -i 's/#RunAsDaemon 1/RunAsDaemon 1/g' >> /etc/tor/torrc
touch /var/log/tor/notices.log
chown debian-tor /var/log/tor/notices.log
chmod 644 /var/log/tor/notices.log