Skip to content

Commit 4585f5e

Browse files
committed
Add rotating tor proxy and rename role
1 parent 53191c6 commit 4585f5e

File tree

7 files changed

+37
-7
lines changed

7 files changed

+37
-7
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You can choose what you want to install with tags :
1515
- **docker** : install Docker
1616
- **jackit** : install [jackit](https://github.com/insecurityofthings/jackit) for exploit code for Mousejack
1717
- ~~**multitor** : install a proxy with multiple TOR instances with load-balancing ([trimstray/multitor](https://github.com/trimstray/multitor)) → [Known issues](https://github.com/atao/raspberrypi-setup/blob/main/roles/multitor/README.md)~~
18-
- **proxy** : install Tor and proxy tools → [README](roles/proxy/README.md)
18+
- **tor** : install Tor → [README](roles/tor/README.md)
1919
- **rfid** : install RFID tools ([libnfc](https://github.com/nfc-tools/libnfc), [mfoc](https://github.com/nfc-tools/mfoc), [mfcuk](https://github.com/nfc-tools/mfcuk)) and keys from [MifareClassicTool](https://github.com/ikarus23/MifareClassicTool/tree/master/Mifare%20Classic%20Tool/app/src/main/assets/key-files) → See [Notes](roles/rfid/README.md)
2020
- **sdr** : install SDR tools ([rtl_433](https://github.com/merbanan/rtl_433))
2121
- **web** : install nginx and certbot
@@ -24,8 +24,9 @@ You can choose what you want to install with tags :
2424
_You will need to modify [this file](roles/display/tasks/main.yml) to configure the correct display._
2525

2626
Containers :
27-
- **jd2** docker container for JDownloader 2 [jlesage/jdownloader-2](https://github.com/jlesage/docker-jdownloader-2) → See [Configuration tips'](roles/container/README.md)
27+
- **jd2** docker container for JDownloader 2 [jlesage/jdownloader-2](https://github.com/jlesage/docker-jdownloader-2) → See [Configuration tips'](roles/containers/README.md)
2828
- **portainer** Portainer CE - a lightweight service delivery platform for containerized applications [portainer/portainer-ce](https://hub.docker.com/r/portainer/portainer-ce)
29+
- **proxy** [Rotating Tor HTTP proxy container](https://github.com/zhaow-de/rotating-tor-http-proxy)
2930

3031
## Standalone
3132

playbook.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
become: true
55
become_user: atao
66
roles:
7-
- role: container
7+
- role: containers
88
- role: display
99
tags: ['display', 'never']
1010
- role: docker
1111
tags: ['docker']
1212
- role: jackit
1313
tags: ['jackit', 'never']
14-
- role: proxy
15-
tags: ['proxy']
14+
- role: tor
15+
tags: ['tor']
1616
- role: rfid
1717
tags: ['rfid']
1818
- role: sdr
File renamed without changes.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,30 @@
4444
env:
4545
"JDOWNLOADER_HEADLESS": "0"
4646
tags: jd2
47+
48+
- name: Run rotating Tor HTTP proxy container
49+
become: true
50+
become_user: root
51+
docker_container:
52+
name: rotating-tor-http-proxy
53+
image: zhaowde/rotating-tor-http-proxy
54+
ports:
55+
- "3128:3128"
56+
- "4444:4444"
57+
env:
58+
TOR_INSTANCES: "5"
59+
TOR_REBUILD_INTERVAL: "3600"
60+
restart_policy: always
61+
tags: proxy
62+
63+
- name: Get list of containers
64+
become: true
65+
become_user: root
66+
command: docker ps -a
67+
register: docker_containers
68+
tags: always
69+
70+
- name: Show state of Docker containers
71+
debug:
72+
var: docker_containers.stdout_lines
73+
tags: always
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
I chose to remove [multitor](../multitor/tasks/main.yml) from the project.
2-
It's replaced by the "proxy" tag that will install Tor and others.
2+
It's replaced by the "proxy" tag that will install Tor.
33

44
An alternative way to change your ip quickly, run commands :
55

66
```
77
watch python check_tor.py
88
watch -n 60 sudo service tor reload
9-
```
9+
```
10+
11+
You can also install [Rotating Tor HTTP proxy container](https://github.com/zhaow-de/rotating-tor-http-proxy) with tag **proxy**.

0 commit comments

Comments
 (0)