2021-06-09 22:43:44 +00:00
|
|
|
commands:
|
|
|
|
00_install_epel:
|
2021-06-09 23:01:53 +00:00
|
|
|
command: 'sudo amazon-linux-extras install epel'
|
|
|
|
01_install_tor:
|
2021-06-10 18:36:31 +00:00
|
|
|
command: 'sudo yum install -y tor'
|
2022-07-12 17:36:58 +00:00
|
|
|
02_sn_onion:
|
|
|
|
command: "sudo install -d -m 700 -o toranon -g toranon /var/lib/tor/sn"
|
2021-06-10 18:36:31 +00:00
|
|
|
files:
|
|
|
|
"/etc/tor/torrc":
|
|
|
|
mode: "000644"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
content: |
|
2021-06-10 18:50:43 +00:00
|
|
|
HTTPTunnelPort 127.0.0.1:7050
|
|
|
|
SocksPort 0
|
2021-06-10 21:09:12 +00:00
|
|
|
Log notice syslog
|
2022-07-12 16:40:44 +00:00
|
|
|
HiddenServiceDir /var/lib/tor/sn/
|
|
|
|
HiddenServicePort 80 127.0.0.1:443
|
2021-06-10 18:45:50 +00:00
|
|
|
services:
|
|
|
|
sysvinit:
|
|
|
|
tor:
|
|
|
|
enabled: "true"
|
|
|
|
ensureRunning: "true"
|
|
|
|
files:
|
|
|
|
- "/etc/tor/torrc"
|
|
|
|
packages:
|
|
|
|
yum:
|
|
|
|
tor
|