Skip to content

Commit 14d2277

Browse files
committed
👍 More fixes
1 parent d57f9ae commit 14d2277

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In this repository you will find a template of the requested [`torrc`](https://g
1010

1111
## How to create a container from this image
1212

13-
Easy, just run the command below by changing the `torrc` configuration file path:
13+
Easy, just run the command below by changing the `torrc` configuration file path and the folder where all tor generated files will be save. This folder is very important because the `fingerprint`, the ID of your relay, will be stored there. This is files are needed to restore your relay after a tor software update or if you want to move the relay to another computer.
1414

1515
```bash
1616
docker run --name='tor-relay' \
@@ -19,6 +19,7 @@ docker run --name='tor-relay' \
1919
-p '9050:9050/tcp' \
2020
-p '8024:8024/tcp' \
2121
-v '[PATH OF torrc FILE]':'/etc/tor/':'rw' \
22+
-v '[DATA DIRECTORY]':'/var/lib/tor':'rw' \
2223
'fortu/tor-relay'
2324
```
2425

torrc

+13-12
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
# See https://www.torproject.org/docs/tor-manual.html.en
22

3-
# Run Tor as a regular user (do not change this)
4-
User debian-tor
3+
# Default folder where tor generate required files (don't change it)
54
DataDirectory /var/lib/tor
65

7-
# Port to advertise for incoming Tor connections.
8-
ORPort 9001
6+
# Your public IP address. Tor will discover it bur if you have DDNS domain
7+
# put it
8+
#Address XXXX.duckdns.org OR static IP
99

10-
# Mirror directory information for others (optional, not used on bridge)
11-
DirPort 9030
10+
# Port to advertise for incoming Tor connections.
11+
ORPort 9001 IPv4Only
12+
ExtORPort
1213

13-
# Define the port to use the relay as a entry point for Tor
14-
SocksPort 0.0.0.0:9050
14+
# Define a port to use as a entry point of the tor network
15+
SocksPort 9050
1516

16-
# Set a port on the relay from it will be controlled by apps like Nyx
17+
# Set a control port to be used by external apps like Nyx
1718
Controlport 9051
1819
CookieAuthentication 1
1920

@@ -30,7 +31,7 @@ ServerTransportListenAddr obfs4 0.0.0.0:8024
3031

3132
# Set some limits
3233

33-
# Limits the max number of bytes sent and received
34+
# Limits the max number of bytes sent and received
3435
#AccountingMax 100GB
3536

3637
# Specify how long accounting periods last
@@ -39,9 +40,9 @@ ServerTransportListenAddr obfs4 0.0.0.0:8024
3940
# Limits the average incoming and outgoing bandwidth
4041
# Throttle traffic to
4142

42-
RelayBandwidthRate 768 KB
43+
RelayBandwidthRate 768 KB
4344

44-
# Limit the maximum token bucket size (also known as the burst)
45+
# Limit the maximum token bucket size (also known as the burst)
4546
RelayBandwidthBurst 1024 KB
4647

4748
# Set maximun memory usage

0 commit comments

Comments
 (0)