I don't know where to put this. If this is an inappropriate repository for this issue please close it and tell me where to request it.
This docker container already has all the functionality needed for relay operations I think. Please corretc me if I'm wrong. So not only obfs4 bridges, but also normal exit and non-exit relays. As a result I would like to have the option to specify the type of relay (bridge, middle/guard, exit) via enviroment variable and adjust the torrc config accordingly. The container already allows passing of custom variables through OBFS4V_variable. Renaming the prefix and offering to also change BridgeRelay 1 already would enable the functionality of an normal relay.
There currently is no official container available to host an tor relay on docker.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
@meskio@ahf
If you want I could contribute and create an repo and try to create an Dockerfile for guard/exit relay on the weekend. It shouldn't be that different to the one inside this repo. However I still don't know where the repo belongs. Anti-Censorship as org isn't the right place in my opinion.
@gus I'm not sure I have a clear opinion on that. It might be good to have an official image coming from tor as people know what to trust, but I'm always worried to add more stuff for us to maintain.
@Felixkruemel if you want to give it a try you can start having a repo in your own space and we'll figure out what is the best place to move it once is working. You should check the resources @gus is linking, as most of the work might be already done.
This will correctly install the latest Tor release. Just need to modify it slightly so that it gets the correct arch (this is hardcoded to amd64 which isn't good).
The only thing which I struggle with is to get the entrypoint.sh file running easily. Somehow I'm too dumb for that ^^
The dockerfile sounds good. I would only change it to have the key in the repo and use it from there, instead of download it each time from the network.
You can get inspiration on the entrypoint.sh used by the obfs4-bridge image.
I could not test anything else than middle yet, but I think everything should work.
Please have a look at it.
Would love to finally have something official. We would need to move the repository then though.
Once we have something official I need to look in how to migrate my Tor relay.
Is in my queue of things to look into, I'm sorry is taking me some time to do it. But I'm not sure I'm the right person here to review it, as I don't have much experience operating a relay.
To avoid putting Tor clients at risk, when operating multiple relays you must set a proper MyFamily value and have a valid ContactInfo in your torrc configuration. The MyFamily setting is simply telling Tor clients what Tor relays are controlled by a single entity/operator/organization, so they are not used in multiple positions in a single circuit.If you run two relays and they have fingerprints AAAAAAAAAA and BBBBBBBB, you would add the following configuration to set MyFamily:MyFamily AAAAAAAAAA,BBBBBBBBto both relays. To find your relay's fingerprint you can look into the log files when tor starts up or find the file named "fingerprint" in your tor DataDirectory.Instead of doing so manually, for big operators we recommend to automate the MyFamily setting via a configuration management solution. Manually managing MyFamily for big relay groups is error-prone and can put Tor clients at risk.
Hi @gus
I added a FAMILY envinroment var in the last two commits. Launching with it works and it also is been set correctly in torrc when specified. Sadly I can not run two relays to test it but it should work as expected.