aboutsummaryrefslogtreecommitdiff
path: root/roles/tor/templates
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-05-25 11:51:57 +0300
committerheqnx <root@heqnx.com>2025-05-25 11:51:57 +0300
commit8fb0b275bf00c963a24c21e1dfbaa64491c4f445 (patch)
tree28e9b4bbf0d4391f092f832d8f00d84ec20fed4f /roles/tor/templates
parent7c8ed923df3c02338dfbf826fd6fd9a23dac502e (diff)
downloadansible-playbooks-8fb0b275bf00c963a24c21e1dfbaa64491c4f445.tar.gz
ansible-playbooks-8fb0b275bf00c963a24c21e1dfbaa64491c4f445.zip
added role-based playbooks
Diffstat (limited to 'roles/tor/templates')
-rw-r--r--roles/tor/templates/torrc.j230
1 files changed, 30 insertions, 0 deletions
diff --git a/roles/tor/templates/torrc.j2 b/roles/tor/templates/torrc.j2
new file mode 100644
index 0000000..b12f93c
--- /dev/null
+++ b/roles/tor/templates/torrc.j2
@@ -0,0 +1,30 @@
+Log notice file /var/log/tor/notices.log
+Log info file /var/log/tor/info.log
+Log warn file /var/log/tor/warn.log
+SafeLogging 1
+
+RunAsDaemon 1
+
+DataDirectory /var/lib/tor
+
+UseEntryGuards 1
+
+ExitRelay 0
+
+ExcludeNodes {us},{gb},{ca},{nz},{au},{dk},{fr},{nl},{no},{de},{be},{it},{es},{se},{cn},{ru},{ir}
+StrictNodes 1
+
+SOCKSPort 127.0.0.1:9050
+
+DNSPort 127.0.0.1:5353
+TransPort 9040
+VirtualAddrNetworkIPv4 10.192.0.0/10
+AutomapHostsOnResolve 1
+
+HardwareAccel 1
+Sandbox 1
+NoExec 1
+KeepAlivePeriod 60
+ClientRejectInternalAddresses 1
+NewCircuitPeriod 30
+MaxCircuitDirtiness 600