2024-06-21 18:53:44 +00:00
|
|
|
# tor-ctr
|
|
|
|
|
2024-06-21 18:56:40 +00:00
|
|
|
This container with `NET_ADMIN` and `NET_RAW` privileges is fully inside the tor router that it spins up.
|
|
|
|
|
|
|
|
Which is nice for itself, but then other container can link and use the network as well.
|
|
|
|
|
|
|
|
Used the prior work of [tor-box](https://git.batts.cloud/vbatts/tor-box).
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
```shell
|
|
|
|
cd tor-ctr/
|
|
|
|
docker-compose up --build
|
|
|
|
```
|
|
|
|
|
|
|
|
Then from another shell:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
docker run -it --rm --network=container:tor-ctr_tor_1 r.batts.cloud/debian:bookworm
|
|
|
|
curl ip.batts.cloud/json
|
|
|
|
```
|